diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2016-03-09 13:30:36 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-03-31 14:26:53 +1100 |
commit | 634add7df941011816cd65e03507e1d9e69e38f5 (patch) | |
tree | b58204e6a915a871ec3ed6f036a05e4f21dc8ea6 /external/xscom-utils/Makefile | |
parent | 618a201ebf33382fadc3f5353a47ac11ab8a2a9b (diff) | |
download | talos-skiboot-634add7df941011816cd65e03507e1d9e69e38f5.tar.gz talos-skiboot-634add7df941011816cd65e03507e1d9e69e38f5.zip |
external: use skiboot make_version script
Let's version like skiboot and other external tools do. There is no
need to generate a version.c file. Defining VERSION on the compile
commande line is enough.
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
[stewart@linux.vnet.ibm.com: fix makefile CFLAGS so can be overwritten]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external/xscom-utils/Makefile')
-rw-r--r-- | external/xscom-utils/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/external/xscom-utils/Makefile b/external/xscom-utils/Makefile index b5d0d1cd..f944ff3a 100644 --- a/external/xscom-utils/Makefile +++ b/external/xscom-utils/Makefile @@ -1,7 +1,8 @@ all: getscom putscom getsram -VERSION=0.1 -CFLAGS=-O2 -g -Wall -m64 -DVERSION=$(VERSION) +XSCOM_VERSION ?= $(shell ../../make_version.sh xscom-utils) +CFLAGS?=-O2 -g -Wall -m64 +override CFLAGS += -DVERSION=\"$(XSCOM_VERSION)\" getscom: getscom.c xscom.c $(CC) $(CFLAGS) -o $@ $^ |