Add NO_OBJ to those directories that don't make anything.

For directories that don't many anything, add NO_OBJ=t just before we
include bsd.init.mk. This prevents them from creating an OBJ
directory. In addition, prevent defs.mk from creating the machine
related links in these cases. They aren't needed and break, at least
on stable, the read-only src tree build.
This commit is contained in:
Warner Losh 2018-02-26 03:16:04 +00:00
parent e6939726ef
commit 0c38f15ac7
8 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
SUBDIR= uboot
.include <bsd.subdir.mk>

View File

@ -163,6 +163,7 @@ CLEANFILES+=${_ILINKS}
all: ${PROG}
.if !defined(NO_OBJ)
beforedepend: ${_ILINKS}
beforebuild: ${_ILINKS}
@ -190,5 +191,5 @@ ${_ILINKS}:
path=`(cd $$path && /bin/pwd)` ; \
${ECHO} ${.TARGET:T} "->" $$path ; \
ln -fhs $$path ${.TARGET:T}
.endif
.endif # __BOOT_DEFS_MK__

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
.include <bsd.init.mk>
# In-tree GCC does not support __attribute__((ms_abi)), but gcc newer

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
.include <bsd.init.mk>
MAN+= beastie.4th.8 \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
.include <bsd.init.mk>
SUBDIR= mbr pmbr boot0 boot0sio btx boot2 cdboot gptboot \

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
SUBDIR= uboot
#

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
.include <bsd.init.mk>
SUBDIR= boot1.chrp ofw uboot

View File

@ -1,5 +1,7 @@
# $FreeBSD$
NO_OBJ=t
.include <bsd.init.mk>
SUBDIR= boot1 loader