aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Chris Lesiak <chris.lesiak@licor.com>2018-01-23 17:13:50 -0600
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-01-28 21:45:19 +0100
commit5f2dc44590b824a72730f257a00a20216e40d552 (patch)
tree2b1b60d040166247d5c5ec41189e0c6bf087f30d /Makefile
parent6e43a52aa8a971a4e328335ce993f6868b4c51a4 (diff)
downloadbuildroot-5f2dc44590b824a72730f257a00a20216e40d552.tar.gz
buildroot-5f2dc44590b824a72730f257a00a20216e40d552.tar.bz2
Makefile: Store OS release in /usr/lib/os-release
It is recommended that vendor trees store OS release information in /usr/lib/os-release and that /etc/os-release should be a relative symlink to /usr/lib/os-release. For more details, see: http://0pointer.de/public/systemd-man/os-release.html [Peter: don't hide command, simplify ln invocation] Signed-off-by: Chris Lesiak <chris.lesiak@licor.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7d8ab51a8c..1825d0af81 100644
--- a/Makefile
+++ b/Makefile
@@ -729,7 +729,8 @@ endif
echo "ID=buildroot"; \
echo "VERSION_ID=$(BR2_VERSION)"; \
echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \
- ) > $(TARGET_DIR)/etc/os-release
+ ) > $(TARGET_DIR)/usr/lib/os-release
+ ln -sf ../usr/lib/os-release $(TARGET_DIR)/etc
@$(call MESSAGE,"Sanitizing RPATH in target tree")
$(TOPDIR)/support/scripts/fix-rpath target