Browse Source

- target-rootfs: fix apollo/shiner rootfs tarball creation

master
vanhofen 3 years ago
parent
commit
76886ffe44
  1. 4
      make/environment-image.mk
  2. 9
      make/target-rootfs.mk

4
make/environment-image.mk

@ -7,8 +7,8 @@
DEBUG ?= no DEBUG ?= no
# Versioning # Versioning
GITTAG=$(shell git tag -l "NI-*" | tail -n1) GITTAG = $(shell git tag -l "NI-*" | tail -n1)
GITREV=$(shell git rev-list $(GITTAG)..HEAD --count) GITREV = $(shell git rev-list $(GITTAG)..HEAD --count)
# *Must* be a one-digit number # *Must* be a one-digit number
IMAGE_VERSION_MAJOR = 4 IMAGE_VERSION_MAJOR = 4

9
make/target-rootfs.mk

@ -163,6 +163,15 @@ ROOTFS_TARBALL_EXCLUDE = \
rootfs-tarball: $(ROOTFS_TARBALL) rootfs-tarball: $(ROOTFS_TARBALL)
$(ROOTFS_TARBALL): $(ROOTFS_TARBALL):
tar czf $(@) -C $(ROOTFS) $(foreach exclude,$(ROOTFS_TARBALL_EXCLUDE),--exclude='$(exclude)' ) . tar czf $(@) -C $(ROOTFS) $(foreach exclude,$(ROOTFS_TARBALL_EXCLUDE),--exclude='$(exclude)' ) .
ifeq ($(BOXMODEL),$(filter $(BOXMODEL),apollo shiner))
ifeq ($(BOXMODEL),apollo)
# create rootfs tarball for shiner too when building apollo
$(INSTALL_COPY) $(@) $(subst apollo,shiner,$(@))
else ifeq ($(BOXMODEL),shiner)
# create rootfs tarball for apollo too when building shiner
$(INSTALL_COPY) $(@) $(subst shiner,apollo,$(@))
endif
endif
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------

Loading…
Cancel
Save