Browse Source

- back to good old .version file

master
vanhofen 6 years ago
parent
commit
66bdd32450
  1. 9
      make/rootfs.mk

9
make/rootfs.mk

@ -3,15 +3,15 @@
# #
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
target-finish: image-version update.urls target-finish: .version update.urls
ifeq ($(BOXTYPE), armbox) ifeq ($(BOXTYPE), armbox)
make e2-multiboot make e2-multiboot
endif endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
image-version: $(TARGET_DIR)/etc/image-version .version: $(TARGET_DIR)/.version
$(TARGET_DIR)/etc/image-version: | $(TARGET_DIR) $(TARGET_DIR)/.version: | $(TARGET_DIR)
echo "distro=NI" > $@ echo "distro=NI" > $@
echo "imagename=NI \o/ Neutrino-Image" >> $@ echo "imagename=NI \o/ Neutrino-Image" >> $@
echo "imageversion=$(IMAGE_VERSION_STRING)" >> $@ echo "imageversion=$(IMAGE_VERSION_STRING)" >> $@
@ -42,6 +42,8 @@ e2-multiboot:
# #
mkdir -p $(TARGET_DIR)/var/lib/opkg mkdir -p $(TARGET_DIR)/var/lib/opkg
touch $(TARGET_DIR)/var/lib/opkg/status touch $(TARGET_DIR)/var/lib/opkg/status
#
cp -a $(TARGET_DIR)/.version $(TARGET_DIR)/etc/image-version
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -112,7 +114,6 @@ endif
# create softlinks in root filesystem # create softlinks in root filesystem
rootfs-softlinks: $(ROOTFS) rootfs-softlinks: $(ROOTFS)
pushd $(ROOTFS) && \ pushd $(ROOTFS) && \
ln -sf /etc/image-version .version && \
ln -sf /var/root root ln -sf /var/root root
ifeq ($(BOXSERIES), hd51) ifeq ($(BOXSERIES), hd51)
pushd $(ROOTFS) && \ pushd $(ROOTFS) && \

Loading…
Cancel
Save