[patch] allow local-tools to include local directories

Adrian Chadd adrian at freebsd.org
Fri Dec 23 22:05:51 UTC 2011


Hi,

This patch allows for user-defined extra local tools directories, a la
what LOCAL_DIRS does for adding local build directories to the source.

This is needed for cross-compiling as some local tools may need to be
first built.

I've used this successfully to cross-compile my busybox stuff.

Thanks,


Adrian

--

[adrian at pcbsd-macvm] ~/work/freebsd/head/src> svn diff Makefile.inc1
Index: Makefile.inc1
===================================================================
--- Makefile.inc1       (revision 228757)
+++ Makefile.inc1       (working copy)
@@ -15,6 +15,8 @@
 #      -DNO_WWWUPDATE do not update www in ${MAKE} update
 #      -DNO_CTF do not run the DTrace CTF conversion tools on built objects
 #      LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
+#      LOCAL_TOOL_DIRS="list of dirs" to add additional dirs to the build-tools
+#          list
 #      TARGET="machine" to crossbuild world for a different machine type
 #      TARGET_ARCH= may be required when a TARGET supports multiple endians

@@ -104,6 +106,8 @@
 CLEANDIR=      cleandir
 .endif

+LOCAL_TOOL_DIRS?=      ''
+
 CVS?=          cvs
 CVSFLAGS?=     -A -P -d -I!
 SVN?=          svn
@@ -1102,6 +1106,7 @@
     bin/csh \
     bin/sh \
     ${_rescue} \
+    ${LOCAL_TOOL_DIRS} \
     lib/ncurses/ncurses \
     lib/ncurses/ncursesw \
     ${_share} \


More information about the freebsd-current mailing list