summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 20:15:14 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-03 20:15:14 +1000
commit362b07685bc7d3c529db12370e550543a6e9c4ae (patch)
tree000fd5c8c4228dd2b00d154c73188935f1b3886e /Makefile
parentfdff87f432c8be208323bd3ab8826b6468e15eda (diff)
downloadcf-fsi-362b07685bc7d3c529db12370e550543a6e9c4ae.tar.gz
cf-fsi-362b07685bc7d3c529db12370e550543a6e9c4ae.zip
Add API version, FW version and system signature registers
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6374a3a..5269b5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
# Main debug switch
DEBUG ?= 0
+# FW version
+FW_VERSION = 1
+
# ARM compiler for userspace test code
CROSS_COMPILE ?= arm-linux-
CC = $(CROSS_COMPILE)gcc
@@ -12,8 +15,10 @@ M68KAS=$(M68KCROSS)as
M68KLD=$(M68KCROSS)ld
M68KOC=$(M68KCROSS)objcopy
+M68KCPPFLAGS = -DFW_VERSION=$(FW_VERSION)
+
ifeq ($(DEBUG),1)
-M68KCPPFLAGS = -DENABLE_TRACE
+M68KCPPFLAGS += -DENABLE_TRACE
endif
M68KAFLAGS = -march=isac
M68KLDFLAGS = -Ttext 0
OpenPOWER on IntegriCloud