mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-21 07:15:49 +00:00
loader.kboot: Build on amd64
But comment out FDT stuff for amd64 built inside kboot. This also restricts a bit the powerpc platforms we build on to powerpc64. Sponsored by: Netflix
This commit is contained in:
parent
d70230783a
commit
d2434697bc
@ -37,7 +37,7 @@ INTERP_DEPENDS+= lua
|
||||
.include <bsd.arch.inc.mk>
|
||||
|
||||
S.${MK_EFI}+= efi
|
||||
.if ${MK_FDT} != "no"
|
||||
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "aarch64" || ${MACHINE_ARCH} == "powerpc64"
|
||||
S.${MK_LOADER_KBOOT}+= kboot
|
||||
.endif
|
||||
S.${MK_LOADER_UBOOT}+= uboot
|
||||
|
@ -24,12 +24,15 @@ SRCS= \
|
||||
hostdisk.c \
|
||||
hostfs.c \
|
||||
init.c \
|
||||
kbootfdt.c \
|
||||
main.c \
|
||||
seg.c \
|
||||
util.c \
|
||||
vers.c
|
||||
|
||||
.if ${MK_FDT} != "no"
|
||||
SRCS+= kbootfdt.c
|
||||
.endif
|
||||
|
||||
.if ${MK_LOADER_ZFS} != "no"
|
||||
CFLAGS+= -I${ZFSSRC}
|
||||
CFLAGS+= -I${SYSDIR}/contrib/openzfs/include
|
||||
|
@ -26,7 +26,9 @@
|
||||
#include <stand.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/boot.h>
|
||||
#ifdef LOADER_FDT_SUPPORT
|
||||
#include <fdt_platform.h>
|
||||
#endif
|
||||
|
||||
#include <machine/cpufunc.h>
|
||||
#include <bootstrap.h>
|
||||
@ -620,6 +622,7 @@ kboot_zfs_probe(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef LOADER_FDT_SUPPORT
|
||||
/*
|
||||
* Since proper fdt command handling function is defined in fdt_loader_cmd.c,
|
||||
* and declaring it as extern is in contradiction with COMMAND_SET() macro
|
||||
@ -634,4 +637,4 @@ command_fdt(int argc, char *argv[])
|
||||
}
|
||||
|
||||
COMMAND_SET(fdt, "fdt", "flattened device tree handling", command_fdt);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user