diff --git a/stand/Makefile b/stand/Makefile index 7ac848f4076a..8fd981cd21f1 100644 --- a/stand/Makefile +++ b/stand/Makefile @@ -1,91 +1,94 @@ # $FreeBSD$ .include # For amd64 we have to build 32 and 64 bit versions of things. For # others we don't. LIB32LIST is a list of libraries, which if # included, need to be built 32-bit as well. .if ${MACHINE_ARCH} == "amd64" LIB32LIST=libsa .if ${MK_FORTH} != "no" LIB32LIST+= ficl .endif .if ${MK_LOADER_LUA} != "no" LIB32LIST+= liblua .endif .endif S.yes+= libsa S.${MK_LOADER_OFW}+= libofw S.${MK_FDT}+= fdt S.${MK_FORTH}+= ficl S.${MK_FORTH}+= forth S.${MK_LOADER_LUA}+= liblua S.${MK_LOADER_LUA}+= lua S.yes+= defaults S.yes+= fonts S.yes+= images S.yes+= man .if ${MK_FORTH} != "no" INTERP_DEPENDS+= forth .endif .if ${MK_LOADER_LUA} != "no" INTERP_DEPENDS+= lua .endif .include S.${MK_EFI}+= efi +.if ${MK_FDT} != "no" +S.${MK_LOADER_KBOOT}+= kboot +.endif S.${MK_LOADER_UBOOT}+= uboot .if defined(LIB32LIST) LIB32DEPENDS= ${LIB32LIST:S/$/32/} .endif .if exists(${.CURDIR}/${MACHINE}/.) S.yes+= ${MACHINE} SUBDIR_DEPEND_${MACHINE}+= ${INTERP_DEPENDS} .if ${MK_FDT} != "no" SUBDIR_DEPEND_${MACHINE}+= fdt .endif .if ${MK_LOADER_UBOOT} != "no" SUBDIR_DEPEND_${MACHINE}+= uboot .endif .if ${MK_LOADER_OFW} != "no" SUBDIR_DEPEND_${MACHINE}+= libofw .endif .endif # Build the actual subdir list from S.yes, adding in the 32-bit # variant if necessary. .for _x in ${S.yes} SUBDIR+=${_x} .if defined(LIB32LIST) && ${LIB32LIST:M${_x}} SUBDIR+=${_x}32 .endif .if ${_x} != "libsa" SUBDIR_DEPEND_${_x}+= libsa SUBDIR_DEPEND_${_x}32+= libsa32 .endif .endfor # Remaining dependencies SUBDIR_DEPEND_forth+= ficl SUBDIR_DEPEND_lua+= liblua SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS} .if ${MK_FDT} != "no" SUBDIR_DEPEND_efi+= fdt .endif SUBDIR_DEPEND_uboot+= ${INTERP_DEPENDS} .if ${MK_FDT} != "no" SUBDIR_DEPEND_uboot+= fdt .endif SUBDIR_PARALLEL= yes .include diff --git a/stand/powerpc/kboot/Makefile b/stand/kboot/Makefile similarity index 100% rename from stand/powerpc/kboot/Makefile rename to stand/kboot/Makefile diff --git a/stand/powerpc/kboot/conf.c b/stand/kboot/conf.c similarity index 100% rename from stand/powerpc/kboot/conf.c rename to stand/kboot/conf.c diff --git a/stand/powerpc/kboot/host_syscall.S b/stand/kboot/host_syscall.S similarity index 100% rename from stand/powerpc/kboot/host_syscall.S rename to stand/kboot/host_syscall.S diff --git a/stand/powerpc/kboot/host_syscall.h b/stand/kboot/host_syscall.h similarity index 100% rename from stand/powerpc/kboot/host_syscall.h rename to stand/kboot/host_syscall.h diff --git a/stand/powerpc/kboot/hostcons.c b/stand/kboot/hostcons.c similarity index 100% rename from stand/powerpc/kboot/hostcons.c rename to stand/kboot/hostcons.c diff --git a/stand/powerpc/kboot/hostdisk.c b/stand/kboot/hostdisk.c similarity index 100% rename from stand/powerpc/kboot/hostdisk.c rename to stand/kboot/hostdisk.c diff --git a/stand/powerpc/kboot/kbootfdt.c b/stand/kboot/kbootfdt.c similarity index 100% rename from stand/powerpc/kboot/kbootfdt.c rename to stand/kboot/kbootfdt.c diff --git a/stand/powerpc/kboot/kerneltramp.S b/stand/kboot/kerneltramp.S similarity index 100% rename from stand/powerpc/kboot/kerneltramp.S rename to stand/kboot/kerneltramp.S diff --git a/stand/powerpc/kboot/ldscript.powerpc b/stand/kboot/ldscript.powerpc similarity index 100% rename from stand/powerpc/kboot/ldscript.powerpc rename to stand/kboot/ldscript.powerpc diff --git a/stand/powerpc/kboot/main.c b/stand/kboot/main.c similarity index 100% rename from stand/powerpc/kboot/main.c rename to stand/kboot/main.c diff --git a/stand/powerpc/kboot/ppc64_elf_freebsd.c b/stand/kboot/ppc64_elf_freebsd.c similarity index 100% rename from stand/powerpc/kboot/ppc64_elf_freebsd.c rename to stand/kboot/ppc64_elf_freebsd.c diff --git a/stand/powerpc/kboot/version b/stand/kboot/version similarity index 100% rename from stand/powerpc/kboot/version rename to stand/kboot/version diff --git a/stand/powerpc/Makefile b/stand/powerpc/Makefile index b5d11dd6cf57..d0c5830e4042 100644 --- a/stand/powerpc/Makefile +++ b/stand/powerpc/Makefile @@ -1,13 +1,9 @@ # $FreeBSD$ NO_OBJ=t .include SUBDIR.yes= boot1.chrp ofw -.if "${MACHINE_ARCH}" == "powerpc64" -SUBDIR.${MK_FDT}+= kboot -.endif - .include