Date: Mon, 21 Nov 2011 16:32:19 GMT From: Monthadar <monthadar@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/162724: make whereobj doesn't work after make buildenv Message-ID: <201111211632.pALGWJiT006302@red.freebsd.org> Resent-Message-ID: <201111211640.pALGe8ns062759@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 root@panter.freebsd:/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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111211632.pALGWJiT006302>