summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbner Chang <abner.chang@hpe.com>2019-06-29 11:18:05 +0300
committerAnup Patel <anup@brainfault.org>2019-06-29 16:56:26 +0300
commit08b196956d684678e930850bc1b54d602dfff555 (patch)
treeeb14144504deb6e793fac1ef24fc07e67eec62be /Makefile
parentfa6fd6bf86e97140cf3c991f605cf04a0b24ab50 (diff)
downloadopensbi-08b196956d684678e930850bc1b54d602dfff555.tar.xz
include: Add version info to struct sbi_platform
Add version control of sbi_platform structure - Add opensbi_version, this gives information of opensbi revision on which the sbi_platform table was created. - Add platform_version field in sbi_platform structure for platform level version control. Signed-off-by: Abner Chang <abner.chang@hpe.com> Acked-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3c3b046..78c28c0 100644
--- a/Makefile
+++ b/Makefile
@@ -63,8 +63,8 @@ export libsbiutils_dir=$(CURDIR)/lib/utils
export firmware_dir=$(CURDIR)/firmware
# Find library version
-OPENSBI_VERSION_MAJOR=`grep MAJOR $(include_dir)/sbi/sbi_version.h | sed 's/.*MAJOR.*\([0-9][0-9]*\)/\1/'`
-OPENSBI_VERSION_MINOR=`grep MINOR $(include_dir)/sbi/sbi_version.h | sed 's/.*MINOR.*\([0-9][0-9]*\)/\1/'`
+OPENSBI_VERSION_MAJOR=`grep "define OPENSBI_VERSION_MAJOR" $(include_dir)/sbi/sbi_version.h | sed 's/.*MAJOR.*\([0-9][0-9]*\)/\1/'`
+OPENSBI_VERSION_MINOR=`grep "define OPENSBI_VERSION_MINOR" $(include_dir)/sbi/sbi_version.h | sed 's/.*MINOR.*\([0-9][0-9]*\)/\1/'`
# Setup compilation commands
ifdef CROSS_COMPILE