]> Git Repo - buildroot-mgba.git/commitdiff
Makefile: reinstate /etc/br-version
authorPeter Korsgaard <[email protected]>
Wed, 30 Sep 2009 15:40:24 +0000 (17:40 +0200)
committerPeter Korsgaard <[email protected]>
Wed, 30 Sep 2009 15:40:24 +0000 (17:40 +0200)
Got lost in the recent cleanup, but is handy to know BR version.

Signed-off-by: Peter Korsgaard <[email protected]>
Makefile

index a7f0b887a341adccd5429c84b7cc830fd6e68500..7fe30a7bea365cc49354ada70685767e6dc5b177 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -404,6 +404,10 @@ endif
        find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
        $(TARGET_LDCONFIG) -r $(TARGET_DIR) 2>/dev/null
 
+       mkdir -p $(TARGET_DIR)/etc
+       echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) > \
+               $(TARGET_DIR)/etc/br-version
+
 ifneq ($(BR2_ROOTFS_POST_BUILD_SCRIPT),"")
        $(BR2_ROOTFS_POST_BUILD_SCRIPT) $(TARGET_DIR)
 endif
This page took 0.031346 seconds and 4 git commands to generate.