MF tbemd: move to using specific architecture makefiles

This commit is contained in:
imp 2010-08-23 01:48:07 +00:00
parent dab222df9b
commit 5d0150b96a
9 changed files with 27 additions and 20 deletions

View File

@ -1,31 +1,13 @@
# $FreeBSD$
.include <bsd.own.mk>
.include <bsd.arch.inc.mk>
.if ${MK_FORTH} != "no"
# Build the add-in FORTH interpreter.
SUBDIR+= ficl
.endif
# Build EFI library.
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || ${MACHINE_ARCH} == "ia64"
SUBDIR+= efi
.endif
# Build Open Firmware library.
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "sparc64"
SUBDIR+= ofw
.endif
# Build U-Boot library.
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "arm"
SUBDIR+= uboot
.endif
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386"
SUBDIR+= zfs
.endif
.if ${MK_FDT} != "no"
SUBDIR+= fdt
.endif

4
sys/boot/Makefile.amd64 Normal file
View File

@ -0,0 +1,4 @@
# $FreeBSD$
SUBDIR+= efi
SUBDIR+= zfs

3
sys/boot/Makefile.arm Normal file
View File

@ -0,0 +1,3 @@
# $FreeBSD$
SUBDIR+= uboot

4
sys/boot/Makefile.i386 Normal file
View File

@ -0,0 +1,4 @@
# $FreeBSD$
SUBDIR+= efi
SUBDIR+= zfs

3
sys/boot/Makefile.ia64 Normal file
View File

@ -0,0 +1,3 @@
# $FreeBSD$
SUBDIR+= efi

4
sys/boot/Makefile.pc98 Normal file
View File

@ -0,0 +1,4 @@
# $FreeBSD$
# Blank, to override Makefile.i386 since Makefile.$MACHINE is included before
# Makefile.$MACHINE_ARCH

View File

@ -0,0 +1,4 @@
# $FreeBSD$
SUBDIR+= ofw
SUBDIR+= uboot

View File

@ -0,0 +1,3 @@
# $FreeBSD$
SUBDIR+= ofw

View File

@ -7,7 +7,7 @@ SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
libefi.c time.c
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_ARCH:S/amd64/i386/}
CFLAGS+= -I${.CURDIR}/../include/${MACHINE_CPUARCH:S/amd64/i386/}
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
# Pick up the bootstrap header for some interface items