summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-12-21 19:25:27 +0000
committeremaste <emaste@FreeBSD.org>2015-12-21 19:25:27 +0000
commita989874001d0c4a0dc8a628f98b7bef8fe8c3b4a (patch)
tree94c63320dd7e561dc4f121e58d56c4a8c5befea5
parent7295d680ea42c53cb36aab414ad609e2cf13e59e (diff)
downloadFreeBSD-src-a989874001d0c4a0dc8a628f98b7bef8fe8c3b4a.zip
FreeBSD-src-a989874001d0c4a0dc8a628f98b7bef8fe8c3b4a.tar.gz
MFC r280047: build x86-specific files in amd64 loader.efi
This was originally done for the arm and arm64 loader.efi and is MFC'd here to ease future UEFI loader MFCs. Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/boot/amd64/efi/Makefile4
-rw-r--r--sys/boot/efi/libefi/Makefile4
2 files changed, 3 insertions, 5 deletions
diff --git a/sys/boot/amd64/efi/Makefile b/sys/boot/amd64/efi/Makefile
index faece5d..bb32623 100644
--- a/sys/boot/amd64/efi/Makefile
+++ b/sys/boot/amd64/efi/Makefile
@@ -26,6 +26,8 @@ SRCS= autoload.c \
vers.c
SRCS+= amd64_tramp.S \
start.S
+SRCS+= nullconsole.c \
+ comconsole.c
CFLAGS+= -fPIC
CFLAGS+= -I.
@@ -53,7 +55,7 @@ CFLAGS+= -DEFI_STAGING_SIZE=${EFI_STAGING_SIZE}
# Always add MI sources
.PATH: ${.CURDIR}/../../common
-# For smbios.c
+# For smbios.c, nullconsole.c, comconsole.c
.PATH: ${.CURDIR}/../../i386/libi386
.include "${.CURDIR}/../../common/Makefile.inc"
CFLAGS+= -I${.CURDIR}/../../common
diff --git a/sys/boot/efi/libefi/Makefile b/sys/boot/efi/libefi/Makefile
index bd753cf..99c2e9b 100644
--- a/sys/boot/efi/libefi/Makefile
+++ b/sys/boot/efi/libefi/Makefile
@@ -5,8 +5,6 @@ INTERNALLIB=
SRCS= delay.c efi_console.c efinet.c efipart.c errno.c handles.c \
libefi.c time.c
-.PATH: ${.CURDIR}/../../i386/libi386
-SRCS+= nullconsole.c comconsole.c
.if ${MACHINE_ARCH} == "amd64"
CFLAGS+= -fPIC -mno-red-zone
@@ -18,8 +16,6 @@ CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${.CURDIR}/../../common
-CFLAGS+= -DNO_PCI
-
# Suppress warning from clang for FreeBSD %b and %D formats
CFLAGS+= -fformat-extensions
OpenPOWER on IntegriCloud