>Number:         162724
>Category:       misc
>Synopsis:       make whereobj doesn't work after make buildenv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 21 16:40:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Monthadar
>Release:        Current
>Organization:
>Environment:
FreeBSD panter.freebsd 9.0-CURRENT FreeBSD 9.0-CURRENT #58: Sun Feb 20 06:00:42 
UTC 2011     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to