4 # For amd64 we have to build 32 and 64 bit versions of things. For
5 # others we don't. LIB32LIST is a list of libraries, which if
6 # included, need to be built 32-bit as well.
7 .if ${MACHINE_ARCH} == "amd64"
9 .if ${MK_FORTH} != "no"
12 .if ${MK_LOADER_LUA} != "no"
19 S.${MK_LOADER_OFW}+= libofw
24 S.${MK_LOADER_LUA}+= liblua
25 S.${MK_LOADER_LUA}+= lua
31 .if ${MK_FORTH} != "no"
32 INTERP_DEPENDS+= forth
34 .if ${MK_LOADER_LUA} != "no"
38 .include <bsd.arch.inc.mk>
42 S.${MK_LOADER_KBOOT}+= kboot
44 S.${MK_LOADER_UBOOT}+= uboot
46 .if defined(LIB32LIST)
47 LIB32DEPENDS= ${LIB32LIST:S/$/32/}
50 .if exists(${.CURDIR}/${MACHINE}/.)
52 SUBDIR_DEPEND_${MACHINE}+= ${INTERP_DEPENDS}
54 SUBDIR_DEPEND_${MACHINE}+= fdt
56 .if ${MK_LOADER_UBOOT} != "no"
57 SUBDIR_DEPEND_${MACHINE}+= uboot
59 .if ${MK_LOADER_OFW} != "no"
60 SUBDIR_DEPEND_${MACHINE}+= libofw
64 # Build the actual subdir list from S.yes, adding in the 32-bit
65 # variant if necessary.
68 .if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
72 SUBDIR_DEPEND_${_x}+= libsa
73 SUBDIR_DEPEND_${_x}32+= libsa32
77 # Remaining dependencies
78 SUBDIR_DEPEND_forth+= ficl
79 SUBDIR_DEPEND_lua+= liblua
81 SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
82 SUBDIR_DEPEND_kboot+= ${INTERP_DEPENDS}
84 SUBDIR_DEPEND_efi+= fdt
85 SUBDIR_DEPEND_kboot+= fdt
88 SUBDIR_DEPEND_uboot+= ${INTERP_DEPENDS}
90 SUBDIR_DEPEND_uboot+= fdt
95 .include <bsd.subdir.mk>
97 # Simplified way to build-test the most important build combinations for the
100 sh ${SRCTOP}/tools/boot/universe.sh