On 10/16/2019 10:18 AM, Brooks Davis wrote: > On Wed, Oct 16, 2019 at 01:20:36PM +0000, Warner Losh wrote: >> Author: imp >> Date: Wed Oct 16 13:20:36 2019 >> New Revision: 353639 >> URL: https://svnweb.freebsd.org/changeset/base/353639 >> >> Log: >> bsd.compat.mk isn't setup to be included outside of Makefile.inc so >> comment it >> out here until that's sorted out. Otherwise the build is broken. when >> TARGET_ARCH isn't defined. > > Thanks for committing this workaround. I forgot to test bare builds (not > buildworld/buildenv/...) because I almost always cross build (either for a > different arch or targeting CURRENT from STABLE). > > I'm currently testing a switch from TARGET_ARCH to MACHINE_ARCH and > TARGET_CPUTYPE to CPUTYPE. > > -- Brooks >
As a hack you could do .if defined(SRCTOP) .include <bsd.compat.mk> .endif Or rename it src.compat.mk and remove from Makefile and do .sinclude <src.compat.mk> -- Regards, Bryan Drewery
signature.asc
Description: OpenPGP digital signature