summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-07-23 07:23:33 +0000
committerimp <imp@FreeBSD.org>2008-07-23 07:23:33 +0000
commit33e1957f1b9052d1e64c4283a91608e520dfff23 (patch)
tree5322b3762e55ca35b1591c8bf8f89fb3cbf9cbdc /sys/boot
parent89fba4c0a95438ab235451eb0437a0e75180a9ea (diff)
downloadFreeBSD-src-33e1957f1b9052d1e64c4283a91608e520dfff23.zip
FreeBSD-src-33e1957f1b9052d1e64c4283a91608e520dfff23.tar.gz
Only descend into the boot directory for the architecture if it
actually exists and is a directory or symlink to a directory.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/boot/Makefile b/sys/boot/Makefile
index 75663df..acd46c6 100644
--- a/sys/boot/Makefile
+++ b/sys/boot/Makefile
@@ -23,6 +23,9 @@ SUBDIR+= uboot
.endif
# Pick the machine-dependent subdir based on the target architecture.
-SUBDIR+= ${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
+ADIR= ${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
+.if exists(${.CURDIR}/${ADIR}/.)
+SUBDIR+= ${ADIR}
+.endif
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud