diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-31 19:50:05 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-03-31 19:50:05 +0000 |
commit | bd6561e7813f8d080492bdd7f4c77d306387c918 (patch) | |
tree | 5b73199b27c3baf0a0cb3c586268d096385179d5 /project | |
parent | 1b6ffcb7edd3b308bd4b212b7ad3beebe9dc0df6 (diff) | |
download | buildroot-novena-bd6561e7813f8d080492bdd7f4c77d306387c918.tar.gz buildroot-novena-bd6561e7813f8d080492bdd7f4c77d306387c918.zip |
buildroot: add /etc/br-version with version info to target dir
Diffstat (limited to 'project')
-rw-r--r-- | project/project.mk | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/project/project.mk b/project/project.mk index 79a03ab9d..c2d478b10 100644 --- a/project/project.mk +++ b/project/project.mk @@ -3,17 +3,21 @@ PROJECT_FILE:=$(LOCAL)/$(PROJECT)/$(PROJECT).config .PHONY: target-host-info saveconfig getconfig -target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname +target-host-info: $(TARGET_DIR)/etc/issue $(TARGET_DIR)/etc/hostname $(TARGET_DIR)/etc/br-version $(TARGET_DIR)/etc/issue: .config mkdir -p $(TARGET_DIR)/etc - echo "" > $(TARGET_DIR)/etc/issue - echo "" >> $(TARGET_DIR)/etc/issue - echo "$(BANNER)" >> $(TARGET_DIR)/etc/issue + echo "" > $@ + echo "" >> $@ + echo "$(BANNER)" >> $@ $(TARGET_DIR)/etc/hostname: .config mkdir -p $(TARGET_DIR)/etc - echo "$(TARGET_HOSTNAME)" > $(TARGET_DIR)/etc/hostname + echo "$(TARGET_HOSTNAME)" > $@ + +$(TARGET_DIR)/etc/br-version: .config + mkdir -p $(TARGET_DIR)/etc + echo $(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) >$@ saveconfig: $(CONFIG)/conf mkdir -p $(LOCAL)/$(PROJECT) |