summaryrefslogtreecommitdiffstats
path: root/hdata/test/Makefile.check
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-08-14 18:24:46 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-08-15 13:03:08 +1000
commitc0515b6361b03d18cffcbc358d0f6109cd684031 (patch)
tree088ff25d2614f7cab5a89629d1a44eae7439c163 /hdata/test/Makefile.check
parent8058a51e2d17055cc68ca4c96c69269fdf9e9016 (diff)
downloadblackbird-skiboot-c0515b6361b03d18cffcbc358d0f6109cd684031.tar.gz
blackbird-skiboot-c0515b6361b03d18cffcbc358d0f6109cd684031.zip
hdata/test: Fix broken tests
Commit e810dcbc (ATTN: Set up attention area to handle attention) broke tests, as the familiy of CPU_TO_BEXX macros are not compile time constant. hdata/test/../spira.c:60:4: error: initializer element is not constant .addr = CPU_TO_BE64((unsigned long)&(cpu_ctl_spat_area) + SKIBOOT_BASE) There is no test coverage of this code, so for now we can comment out these areas in order to allow the tests to pass. Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'hdata/test/Makefile.check')
-rw-r--r--hdata/test/Makefile.check2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/test/Makefile.check b/hdata/test/Makefile.check
index e03a021a..63fcb4a9 100644
--- a/hdata/test/Makefile.check
+++ b/hdata/test/Makefile.check
@@ -10,7 +10,7 @@ hdata/test/stubs.o: hdata/test/stubs.c
$(HOSTCC) $(HOSTCFLAGS) -g -c -o $@ $<
hdata/test/hdata_to_dt: hdata/test/hdata_to_dt.c hdata/test/stubs.o
- $(HOSTCC) $(HOSTCFLAGS) -O0 -g -I hdata -I include -I . -I libfdt -o $@ $< hdata/test/stubs.o
+ $(HOSTCC) $(HOSTCFLAGS) -DTEST -O0 -g -I hdata -I include -I . -I libfdt -o $@ $< hdata/test/stubs.o
clean: hdata-test-clean
OpenPOWER on IntegriCloud