Need a build target
All, Just wanted some confirmation, but I have a need where I need to build just the kernel toolchain, kernel and the full toolchain and include files. The first two I can do via 'make kernel-toolchain' and 'make buildkernel'. However, to get the complete build toolchain and include files, suitable for building user applications, I still need to do a full 'buildworld'. As you are probably inferring, this is for a cross-compile environment. I have looked through both src/Makefile and src/Makefile.inc1 and cannot see a target that will give me that capability. I think I need to a target to do this for me. WTOOLSMAKE_TGTS= .if !defined(SUBDIR_OVERRIDE) WTOOLSMAKE_TGTS+= _worldtmp _legacy _bootstrap-tools .endif WTOOLSMAKE_TGTS+= _cleanobj _obj _build_tools .if !defined(SUBDIR_OVERRIDE) WTOOLSMAKE_TGTS+= _cross-tools .endif WTOOLSMAKE_TGTS+= _includes _libraries buildworldtools: buildwtools_prologue ${WTOOLSMAKE_TGTS} buildwtools_epilogue .ORDER buildwtools_prologue ${WTOOLSMAKE_TGTS} buildwtools_epilogue buildwtools_prologue: @echo "--" @echo ">>> World build tools started on `LC_ALL=C date`" @echo "--" buildwtools_epilogue: @echo "--" @echo ">>> World build tools started on `LC_ALL=C date`" @echo "--" This should then build the complete set of binutils, compiler, libraries and include files, yes? Thanks for any direction, Patrick ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Need a build target
On Sunday 07 March 2010 3:57:43 pm Patrick Mahan wrote: > > All, > > Just wanted some confirmation, but I have a need where I need > to build just the kernel toolchain, kernel and the full toolchain > and include files. The first two I can do via 'make kernel-toolchain' > and 'make buildkernel'. However, to get the complete build toolchain > and include files, suitable for building user applications, I still > need to do a full 'buildworld'. Perhaps 'make toolchain' would work? You can then use 'make buildenv' to do interactive builds. I think you can use SUBDIR_OVERRIDE with 'make buildworld' to build specific subdirectories. -- John Baldwin ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
Re: Need a build target
> On Sunday 07 March 2010 3:57:43 pm Patrick Mahan wrote: > > > > All, > > > > Just wanted some confirmation, but I have a need where I need > > to build just the kernel toolchain, kernel and the full toolchain > > and include files. The first two I can do via 'make kernel-toolchain' > > and 'make buildkernel'. However, to get the complete build toolchain > > and include files, suitable for building user applications, I still > > need to do a full 'buildworld'. > > Perhaps 'make toolchain' would work? You can then use 'make buildenv' > to do interactive builds. I think you can use SUBDIR_OVERRIDE with 'make > buildworld' to build specific subdirectories. > I believe you are correct. This should build exactly what I need. As always, this list helps me when I'm stuck, Patrick ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"