commit 39f1f69637bff2387ad2487f23a258f659d3fd9a
parent 1def07a9a421a53eb4a1d8c9d6863f2355b3e05c
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date: Fri, 12 Oct 2018 15:06:38 +0100
[scripts] Don't check the data/bss size for non bare metal targets
We need to make sure that for arm64-none, the size of data/bss is 0.
We do not have this requirement for other configs, like arm64-linux or
amd64-linux.
Change-Id: I7b82d9818f299d13dcec36fdfb337044cbdf6de6
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
@@ -10,6 +10,9 @@ LIBDEP = $(LIBDIR)/librmu.a $(LIBDIR)/libc.a
all: $(TARGET)
+$(BINDIR)/ramfw.bin: $(BINDIR)/ramfw.tst
+$(BINDIR)/romfw.bin: $(BINDIR)/romfw.tst
+
crt-none.s: cdeps
./cdeps | ed -s $@
diff --git a/scripts/rules.mk b/scripts/rules.mk
@@ -61,11 +61,9 @@ FORCE:
.elf.bin:
$(OC) -O binary $< $@
-$(BINDIR)/ramfw.bin: $(BINDIR)/ramfw.tst
-$(BINDIR)/romfw.bin: $(BINDIR)/romfw.tst
-
.elf.tst:
- @size $< | \
+ @test $(SYS) != "none" && exit; \
+ size $< | \
awk 'NR == 2 {\
if ($$2 != 0 || $$3 != 0) {\
printf("image %s with data section!\n",\