aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-08-01 18:50:25 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-08-01 18:50:25 +1000
commit5944cc73defa1464ae2aa58be91bcb805cd71b79 (patch)
treed345b24c2b468c17597ae00cd961fe5018a1fe46 /external
parent19861d35ae10815404a6e947446cf0221d0c1316 (diff)
downloadskiboot-5944cc73defa1464ae2aa58be91bcb805cd71b79.zip
skiboot-5944cc73defa1464ae2aa58be91bcb805cd71b79.tar.gz
skiboot-5944cc73defa1464ae2aa58be91bcb805cd71b79.tar.bz2
Adopt libtool rules for soname versioning for libflash
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/shared/rules.mk19
1 files changed, 18 insertions, 1 deletions
diff --git a/external/shared/rules.mk b/external/shared/rules.mk
index a4976a1..147c38f 100644
--- a/external/shared/rules.mk
+++ b/external/shared/rules.mk
@@ -1 +1,18 @@
-SHARED_NAME=libflash.so.$(shell ../../make_version.sh)
+# NOTE: shared lib versioning has *NOTHING* to do with software package version
+#
+# If source code has changed, revision++
+# if any interfaces have been added, removed, or changed, current++, revision=0
+# if any interfaces have been added, age++
+# if any interfaces have been removed or changed, age=0
+#
+# i.e. AGE refers to backwards compatibility.
+# e.g. If we start with 5.3.0 and we're releasing new version:
+# - bug fix no api change: 5.4.0
+# - new API call, backwards compatible otherwise: 6.0.1
+# - API removed, or changed (i.e. not backwards compat): 6.0.0
+
+LIBFLASH_VERSION_CURRENT=5
+LIBFLASH_VERSION_REVISION=3
+LIBFLASH_VERSION_AGE=0
+
+SHARED_NAME=libflash.so.${LIBFLASH_VERSION_CURRENT}.${LIBFLASH_VERSION_REVISION}.${LIBFLASH_VERSION_AGE}