summaryrefslogtreecommitdiffstats
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/project.mk14
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)