aboutsummaryrefslogtreecommitdiff
path: root/targets/pseudo/userland/misc/Makefile.depend
diff options
context:
space:
mode:
Diffstat (limited to 'targets/pseudo/userland/misc/Makefile.depend')
-rw-r--r--targets/pseudo/userland/misc/Makefile.depend11
1 files changed, 8 insertions, 3 deletions
diff --git a/targets/pseudo/userland/misc/Makefile.depend b/targets/pseudo/userland/misc/Makefile.depend
index a4723e8dff1b..203e446dca50 100644
--- a/targets/pseudo/userland/misc/Makefile.depend
+++ b/targets/pseudo/userland/misc/Makefile.depend
@@ -1,4 +1,3 @@
-# $FreeBSD$
# This file is not autogenerated - take care!
@@ -6,6 +5,8 @@
.include <src.opts.mk>
.endif
+DEP_MACHINE?= ${MACHINE}
+
_sys_boot_efi= stand/efi/loader stand/efi/boot1
.if ${MK_FDT} != "no"
_sys_boot_fdt= stand/fdt stand/efi/fdt
@@ -85,9 +86,13 @@ DIRDEPS.arm= ${_sys_boot_fdt} ${_sys_boot_efi}
DIRDEPS.arm64= ${_sys_boot_fdt} ${_sys_boot_efi}
DIRDEPS.i386= ${DIRDEPS.x86sys} ${_sys_boot_efi}
DIRDEPS.powerpc= ${_sys_boot_fdt} stand/libsa32 stand/ofw stand/uboot
-DIRDEPS.sparc64= stand/ofw ${_sys_boot_zfs}
.endif
-DIRDEPS+= ${DIRDEPS.${MACHINE}:U}
+DIRDEPS+= ${DIRDEPS.${DEP_MACHINE}:U}
+
+.if ${DEP_MACHINE} == "amd64"
+# do not build stand/i386 for amd64
+DIRDEPS:= ${DIRDEPS:Nstand/i386*} ${DIRDEPS:Mstand/i386*:S/$/.i386,i386/}
+.endif
.include <dirdeps.mk>