summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-08 00:47:24 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-08 00:47:24 (EDT)
commit15d9adb034e3197f681eb91b56c7ce4a7907c286 (patch)
treed3a328da0435cffc0d6efb1dd35db61e5d6cc91f /build
parentee1cc89c2a231627d8f9fe54e358b73e68a1295e (diff)
build: Add package revision to Linux release version
Will show up in `uname -r`, etc.
Diffstat (limited to 'build')
-rwxr-xr-xbuild2
1 files changed, 2 insertions, 0 deletions
diff --git a/build b/build
index 8e6d600..768d274 100755
--- a/build
+++ b/build
@@ -13,6 +13,8 @@ menuconfig:
build:
set -e; \
if [ 'x$(OPK_HOST_PLAT)' != 'xdev' ]; then \
+ printf '%s\n' '$(OPK_SOURCE_VERSION)' | sed 's/^.*-/-/;' \
+ 1>src/localversion; \
read img_src img_dest <image; \
oh-autobuild -T "$${img_src}" -- -j "$${JOBS:-1}"; \
fi