Date: Fri, 23 Dec 2011 14:05:50 -0800 From: Adrian Chadd <adrian@freebsd.org> To: freebsd-arch@freebsd.org Cc: freebsd-current <freebsd-current@freebsd.org> Subject: [patch] allow local-tools to include local directories Message-ID: <CAJ-Vmok0a-QAV_p8Eoj6QvaovZCLZnHMMSSgTgEQDHnhaoVhqg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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@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} \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmok0a-QAV_p8Eoj6QvaovZCLZnHMMSSgTgEQDHnhaoVhqg>