summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-12-07 15:01:54 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-12-18 22:18:37 +0100
commit555c9f9252c40f54ce74f7b01d8e40825dbd7bda (patch)
treededdd3d8ee31eb2bf5e03cd8a003280df3fc29e0 /src
parent211b1d8a87d076acd0929300a1cb8fa825f6560d (diff)
downloadcoreboot-555c9f9252c40f54ce74f7b01d8e40825dbd7bda.tar.xz
ti/beaglebone: Define arch for omap-header build
Required to add rules.h as default include, otherwise we get error: ./src/include/rules.h:128:5: error: "__COREBOOT_ARM_ARCH__" is not defined [-Werror=undef] Previously, rules.h was not included in omap-header build at all. Change-Id: I75265916856f2f21f7966619ea65d63acd599e2f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17746 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/ti/am335x/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cpu/ti/am335x/Makefile.inc b/src/cpu/ti/am335x/Makefile.inc
index 3bfb0fe964..5b91981d7a 100644
--- a/src/cpu/ti/am335x/Makefile.inc
+++ b/src/cpu/ti/am335x/Makefile.inc
@@ -21,6 +21,8 @@ endif
$(call add-class,omap-header)
$(eval $(call create_class_compiler,omap-header,arm))
+omap-header-generic-ccopts += -D__COREBOOT_ARM_ARCH__=7
+
real-target: $(obj)/MLO
header_ld := $(call src-to-obj,omap-header,$(dir)/header.ld)