From 362b07685bc7d3c529db12370e550543a6e9c4ae Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Sun, 3 Jun 2018 20:15:14 +1000 Subject: Add API version, FW version and system signature registers Signed-off-by: Benjamin Herrenschmidt --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.1