On Fri, 23 Dec 2011 16:42:06 -0800 Adrian Chadd <adrian_at_freebsd.org> wrote: > Hi, > > Here are two patches which implement some useful features for crunch > building: > > * Add LOCAL_TOOLS_DIR in src/Makefile.inc1, which adds entries to the > 'build-tools' target. This is needed for cross-building bsdbox (and > any external directory added by LOCAL_DIRS) That makes me happy :) > * If CRUNCH_SUPPRESS_ALL_LINKS is set to 'yes', don't auto-populate > the crunch-gen hard links. > > I may end up changing the latter to CRUNCH_GENERATE_LINKS and default > that to yes, then allow the bsdbox build system to change that to > 'no', but the intent is the same. > > I'd like to commit this tomorrow if possible, so I can then follow it > up with the bsdbox import. > > Thanks, > > > Adrian Do it Adrian :) > > [adrian_at_pcbsd-macvm] ~/work/freebsd/head/src> svn diff Makefile.inc1 > share/mk Index: Makefile.inc1 > =================================================================== > --- Makefile.inc1 (revision 228757) > +++ Makefile.inc1 (working copy) > _at__at_ -15,6 +15,8 _at__at_ > # -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 > > _at__at_ -104,6 +106,8 _at__at_ > CLEANDIR= cleandir > .endif > > +LOCAL_TOOL_DIRS?= '' > + > CVS?= cvs > CVSFLAGS?= -A -P -d -I! > SVN?= svn > _at__at_ -1102,6 +1106,7 _at__at_ > bin/csh \ > bin/sh \ > ${_rescue} \ > + ${LOCAL_TOOL_DIRS} \ > lib/ncurses/ncurses \ > lib/ncurses/ncursesw \ > ${_share} \ > Index: share/mk/bsd.crunchgen.mk > =================================================================== > --- share/mk/bsd.crunchgen.mk (revision 228757) > +++ share/mk/bsd.crunchgen.mk (working copy) > _at__at_ -22,6 +22,8 _at__at_ > # Specific links can be suppressed by setting > # CRUNCH_SUPPRESS_LINK_$(NAME) to 1. > # > +# If CRUNCH_SUPPRESS_ALL_LINKS is set to yes, no links will be > generated. +# > > # $FreeBSD$ > > _at__at_ -39,6 +41,7 _at__at_ > .else > CANONICALOBJDIR:= /usr/obj${.CURDIR} > .endif > +CRUNCH_SUPPRESS_ALL_LINKS?= no > > CLEANFILES+= $(CONF) *.o *.lo *.c *.mk *.cache *.a *.h > > _at__at_ -51,6 +54,7 _at__at_ > .else > $(OUTPUTS): $(.CURDIR)/../../$(D)/$(P)/Makefile > .endif > +.if ${CRUNCH_SUPPRESS_ALL_LINKS} != "yes" > .ifndef CRUNCH_SUPPRESS_LINK_${P} > LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(P) > .endif > _at__at_ -59,6 +63,7 _at__at_ > LINKS+= $(BINDIR)/$(PROG) $(BINDIR)/$(A) > .endif > .endfor > +.endif > .endfor > .endfor > _______________________________________________ > freebsd-arch_at_freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to > "freebsd-arch-unsubscribe_at_freebsd.org" -- Aleksandr Rybalko <ray_at_ddteam.net>Received on Sun Jan 01 2012 - 11:58:25 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:22 UTC