5 # For amd64 we have to build 32 and 64 bit versions of things. For
6 # others we don't. LIB32LIST is a list of libraries, which if
7 # included, need to be built 32-bit as well.
8 .if ${MACHINE_ARCH} == "amd64"
10 .if ${MK_FORTH} != "no"
13 .if ${MK_LOADER_LUA} != "no"
20 S.${MK_LOADER_OFW}+= libofw
25 S.${MK_LOADER_LUA}+= liblua
26 S.${MK_LOADER_LUA}+= lua
32 .if ${MK_FORTH} != "no"
33 INTERP_DEPENDS+= forth
35 .if ${MK_LOADER_LUA} != "no"
39 .include <bsd.arch.inc.mk>
43 S.${MK_LOADER_KBOOT}+= kboot
45 S.${MK_LOADER_UBOOT}+= uboot
47 .if defined(LIB32LIST)
48 LIB32DEPENDS= ${LIB32LIST:S/$/32/}
51 .if exists(${.CURDIR}/${MACHINE}/.)
53 SUBDIR_DEPEND_${MACHINE}+= ${INTERP_DEPENDS}
55 SUBDIR_DEPEND_${MACHINE}+= fdt
57 .if ${MK_LOADER_UBOOT} != "no"
58 SUBDIR_DEPEND_${MACHINE}+= uboot
60 .if ${MK_LOADER_OFW} != "no"
61 SUBDIR_DEPEND_${MACHINE}+= libofw
65 # Build the actual subdir list from S.yes, adding in the 32-bit
66 # variant if necessary.
69 .if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
73 SUBDIR_DEPEND_${_x}+= libsa
74 SUBDIR_DEPEND_${_x}32+= libsa32
78 # Remaining dependencies
79 SUBDIR_DEPEND_forth+= ficl
80 SUBDIR_DEPEND_lua+= liblua
82 SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
83 SUBDIR_DEPEND_kboot+= ${INTERP_DEPENDS}
85 SUBDIR_DEPEND_efi+= fdt
86 SUBDIR_DEPEND_kboot+= fdt
89 SUBDIR_DEPEND_uboot+= ${INTERP_DEPENDS}
91 SUBDIR_DEPEND_uboot+= fdt
96 .include <bsd.subdir.mk>
98 # Simplified way to build-test the most important build combinations for the
101 sh ${SRCTOP}/tools/boot/universe.sh