Bug 162724 - make whereobj doesn't work after make buildenv
Summary: make whereobj doesn't work after make buildenv
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2011-11-21 16:40 UTC by Monthadar
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Monthadar 2011-11-21 16:40:08 UTC
I have written a custom kernel module residing in my home path (e.g /root/mymodule), and created an obj directory. running 'make whereobj' gives out the path inside my module /root/mymodule/obj.

But after running 'make buildenv' (for cross compiling to another architecture) 'make whereobj' gives out only /root/mymodule and not /root/mymodule/obj!!

How-To-Repeat: Create a simple loadable kernel module with the standard makefile:
.PATH:	${.CURDIR}/src
# Declare Name of kernel module
KMOD    =  pci_rf_speedtest
# Enumerate Source files for kernel module
SRCS    =  pci_rf_speedtest_module.c
# Include kernel module makefile
.include <bsd.kmod.mk>

cd /path/to/mymodule
make whereobj
cd /usr/src
make buildenv
cd /path/to/mymodule
make whereobj

and you will get different outputs.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:33 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped