summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-02-14 12:58:25 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2012-02-14 13:08:23 +0100
commit451a887894faddef019e9a0628c21b5f2e9eee56 (patch)
treeeea4985aecc9cf19e652825d60407225dcf9bd8e
parentcf2486bf317e4bbf88c801fb96183ba62be78cc8 (diff)
downloadbuildroot-novena-451a887894faddef019e9a0628c21b5f2e9eee56.tar.gz
buildroot-novena-451a887894faddef019e9a0628c21b5f2e9eee56.zip
Makefile: use /etc/os-release for version info rather than /etc/br-version
/etc/os-release is becoming a standard interface for distribution name/version info, so let's use that instead of the nonstandard /etc/br-version. Format of the file is something like: NAME=Buildroot VERSION=2012.02-rc1-00003-g2d10e81 ID=buildroot VERSION_ID=2012.02-rc1 PRETTY_NAME="Buildroot 2012.02-rc1" For more details, see: http://0pointer.de/public/systemd-man/os-release.html Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7d8dd2ed2..8a8b6760c 100644
--- a/Makefile
+++ b/Makefile
@@ -477,7 +477,13 @@ endif
else \
/sbin/ldconfig -r $(TARGET_DIR); \
fi
- echo $(BR2_VERSION_FULL) > $(TARGET_DIR)/etc/br-version
+ ( \
+ echo "NAME=Buildroot"; \
+ echo "VERSION=$(BR2_VERSION_FULL)"; \
+ echo "ID=buildroot"; \
+ echo "VERSION_ID=$(BR2_VERSION)"; \
+ echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \
+ ) > $(TARGET_DIR)/etc/os-release
ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
$(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)