Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Where does the kernel get built?



On 11-11-29 09:50 AM, Alan Barrett wrote:
.OBJDIR handling is one of the wartiest parts of make. By the time
mk.conf is parsed, make has already decided which .OBJDIR to use.

Would this harm anything?  How about a more selective method involving
grep?  I tried it and it built tools correctly.  It does depend on
finding a working tr though.  Pardon the line wrap.
Index: build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.251
diff -u -r1.251 build.sh
--- build.sh    17 Oct 2011 16:22:12 -0000      1.251
+++ build.sh    29 Nov 2011 15:13:51 -0000
@@ -2013,4 +2013,5 @@
        fi
 }

+[ -f /etc/mk.conf ] && grep MAKEOBJDIRPREFIX /etc/mk.conf|tr -d ' '|${HOST_SH}
 main "$@"


--
D'Arcy J.M. Cain <darcy%NetBSD.org@localhost>
http://www.NetBSD.org/


Home | Main Index | Thread Index | Old Index