3 # For amd64 we have to build 32 and 64 bit versions of things. For
4 # others we don't. LIB32LIST is a list of libraries, which if
5 # included, need to be built 32-bit as well.
6 .if
${MACHINE_ARCH} == "amd64"
8 .if
${MK_FORTH} != "no"
11 .if
${MK_LOADER_LUA} != "no"
18 S.
${MK_LOADER_OFW}+= libofw
23 S.
${MK_LOADER_LUA}+= liblua
24 S.
${MK_LOADER_LUA}+= lua
30 .if
${MK_FORTH} != "no"
31 INTERP_DEPENDS
+= forth
33 .if
${MK_LOADER_LUA} != "no"
37 .
include <bsd.arch.inc.mk
>
40 S.
${MK_LOADER_KBOOT}+= kboot
41 S.
${MK_LOADER_UBOOT}+= uboot
43 .if defined
(LIB32LIST
)
44 LIB32DEPENDS
= ${LIB32LIST
:S
/$/32/}
47 .if exists
(${.CURDIR
}/${MACHINE}/.
)
49 SUBDIR_DEPEND_
${MACHINE}+= ${INTERP_DEPENDS}
51 SUBDIR_DEPEND_
${MACHINE}+= fdt
53 .if
${MK_LOADER_UBOOT} != "no"
54 SUBDIR_DEPEND_
${MACHINE}+= uboot
56 .if
${MK_LOADER_OFW} != "no"
57 SUBDIR_DEPEND_
${MACHINE}+= libofw
61 # Build the actual subdir list from S.yes, adding in the 32-bit
62 # variant if necessary.
65 .if defined
(LIB32LIST
) && ${LIB32LIST
:M
${_x}}
67 INTERP_DEPENDS
+=${_x}32
70 SUBDIR_DEPEND_
${_x}+= libsa
71 SUBDIR_DEPEND_
${_x}32+= libsa32
75 # Remaining dependencies
76 SUBDIR_DEPEND_forth
+= ficl
77 SUBDIR_DEPEND_lua
+= liblua
79 SUBDIR_DEPEND_efi
+= ${INTERP_DEPENDS}
80 SUBDIR_DEPEND_kboot
+= ${INTERP_DEPENDS}
82 SUBDIR_DEPEND_efi
+= fdt
83 SUBDIR_DEPEND_kboot
+= fdt
86 SUBDIR_DEPEND_uboot
+= ${INTERP_DEPENDS}
88 SUBDIR_DEPEND_uboot
+= fdt
93 .
include <bsd.subdir.mk
>
95 # Simplified way to build-test the most important build combinations for the
98 sh
${SRCTOP}/tools
/boot
/universe.sh