summaryrefslogtreecommitdiff
path: root/payloads/libpayload/sample
diff options
context:
space:
mode:
authorAsami Doi <doiasami1219@gmail.com>2019-06-07 16:22:03 +0900
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 09:16:36 +0000
commitd97591c34571b66157c540355457c4fea794a611 (patch)
tree9ac1808fe89fe9554147c72f651e12af93f7e3dc /payloads/libpayload/sample
parent7d881b5189efea7e9ee3f64e36964c951001e1a1 (diff)
downloadcoreboot-d97591c34571b66157c540355457c4fea794a611.tar.xz
payloads/libpayload: Update a Makefile for sample libpayload
and make a configuraton for QEMU/ARM. This CL allows building a sample libpayload for QEMU/ARM. Change-Id: Ia32872c43a99357aa966de3582f6fdb2e2652517 Signed-off-by: Asami Doi <doiasami1219@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33287 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'payloads/libpayload/sample')
-rw-r--r--payloads/libpayload/sample/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/payloads/libpayload/sample/Makefile b/payloads/libpayload/sample/Makefile
index 5931d5eb11..18121dfe80 100644
--- a/payloads/libpayload/sample/Makefile
+++ b/payloads/libpayload/sample/Makefile
@@ -28,19 +28,20 @@
##
# Sample libpayload Makefile.
-include ../.xcompile
include ../.config
+include ../.xcompile
-ARCH-$(CONFIG_LP_ARCH_ARMV) := arm
-ARCH-$(CONFIG_LP_ARCH_POWERPC) := powerpc
-ARCH-$(CONFIG_LP_ARCH_X86) := i386
+ARCH-$(CONFIG_LP_ARCH_ARM) := arm
+ARCH-$(CONFIG_LP_ARCH_X86) := x86_32
+ARCH-$(CONFIG_LP_ARCH_ARM64) := arm64
+ARCH-$(CONFIG_LP_ARCH_MIPS) := mips
CC := $(CC_$(ARCH-y))
AS := $(AS_$(ARCH-y))
LIBPAYLOAD_DIR := ../install/libpayload
XCC := CC="$(CC)" $(LIBPAYLOAD_DIR)/bin/lpgcc
XAS := AS="$(AS)" $(LIBPAYLOAD_DIR)/bin/lpas
-CFLAGS := -Wall -Werror -Os
+CFLAGS := -fno-builtin -Wall -Werror -Os
TARGET := hello
OBJS := $(TARGET).o