X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fcore-updates;h=d3492696726578c4b015c06e407ea2a88ffeb444;hp=0dd2ecccbc5a20a2e1c939fdacc011154a22eb56;hb=27267889aa791b5c4683f62fe823ab96fb42fe8a;hpb=0df2024f29c9e955dd0bfe4df84afce757d40e26 diff --git a/lfs/core-updates b/lfs/core-updates index 0dd2ecccbc..d349269672 100644 --- a/lfs/core-updates +++ b/lfs/core-updates @@ -26,8 +26,9 @@ include Config VER = ipfire -THISAPP = core-updates -TARGET = $(DIR_INFO)/$(THISAPP) +THISAPP = core-updates +TARGET = $(DIR_INFO)/$(THISAPP) +TAR_OPTIONS = --xz ############################################################################### # Top-level Rules @@ -49,13 +50,19 @@ CORE = $(patsubst $(DIR_SRC)/config/rootfiles/%,%,$(wildcard $(DIR_SRC)/config/r $(TARGET) : $(CORE) +.PHONY: core/%: rm -rf /install/packages/package mkdir -p /install/packages/package eval $$(cat /usr/src/config/rootfiles/$@/meta) - #Generate ROOTFILES from filelists - find $(DIR_SRC)/config/rootfiles/$@/filelists/* -maxdepth 1 | xargs cat >> /tmp/ROOTFILES.tmp + #Generate ROOTFILES from filelists + BUILD_ARCH=$(BUILD_ARCH) BUILDTARGET=$(BUILDTARGET) KVER=$(KVER) \ + $(DIR_SRC)/src/scripts/archive.files \ + $(DIR_SRC)/config/rootfiles/$@/filelists \ + $(DIR_SRC)/config/rootfiles/$@/files \ + $(DIR_SRC)/config/rootfiles/$@/files.$(BUILD_ARCH) \ + > /tmp/ROOTFILES.tmp #remove excluded files from ROOTFILES grep -f $(DIR_SRC)/config/rootfiles/$@/exclude -v /tmp/ROOTFILES.tmp > /tmp/ROOTFILES @@ -72,7 +79,7 @@ core/%: mv -f /tmp/ROOTFILES /install/packages/package/ROOTFILES tar -p --numeric-owner -x -C /tmp -f /$(SNAME).tar rm -f /$(SNAME).tar - cd /tmp && tar cf /install/packages/package/files * && rm -rf * + cd /tmp && XZ_OPT="$(XZ_OPT)" tar cJf /install/packages/package/files.tar.xz $(TAR_OPTIONS) * && rm -rf * cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp rm /install/packages/package/ROOTFILES mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES @@ -83,8 +90,8 @@ core/%: #Change xxxKVERxxx to Kernelversion sed -e "s/xxxKVERxxx/$(KVER)/g" -i /install/packages/package/update.sh - cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \ - update.sh files ROOTFILES + cd /install/packages/package && XZ_OPT="$(XZ_OPT)" tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire $(TAR_OPTIONS) \ + update.sh files.tar.xz ROOTFILES rm -rf /install/packages/package sed -e "s/NAME/core-upgrade/g" \ -e "s/VER/$(VERSION)/g" \