Bug 162724

Summary: make whereobj doesn't work after make buildenv
Product: Base System Reporter: Monthadar <monthadar>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

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>

run:
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