mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 15:43:25 +00:00
target/sdk: Switch to xz compression instead of bz2
Switch to xz compression instead of using bz2. This makes a considerable difference in size, ar71xx SDK from 60M to 35M. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
This commit is contained in:
parent
8f2c2f94cf
commit
9f61ccd9e3
@ -65,7 +65,7 @@ KERNEL_FILES := $(patsubst $(TOPDIR)/%,%,$(wildcard $(addprefix $(LINUX_DIR)/,$(
|
|||||||
|
|
||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
$(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
|
$(BIN_DIR)/$(SDK_NAME).tar.xz: clean
|
||||||
mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
|
mkdir -p $(SDK_BUILD_DIR)/dl $(SDK_BUILD_DIR)/package
|
||||||
$(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
|
$(CP) -L $(INCLUDE_DIR) $(SCRIPT_DIR) $(TOPDIR)/docs $(SDK_BUILD_DIR)/
|
||||||
$(TAR) -cf - -C $(TOPDIR) \
|
$(TAR) -cf - -C $(TOPDIR) \
|
||||||
@ -124,13 +124,13 @@ $(BIN_DIR)/$(SDK_NAME).tar.bz2: clean
|
|||||||
find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
|
find $(SDK_BUILD_DIR) -name .svn | $(XARGS) rm -rf
|
||||||
find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf
|
find $(SDK_BUILD_DIR) -name CVS | $(XARGS) rm -rf
|
||||||
(cd $(BUILD_DIR); \
|
(cd $(BUILD_DIR); \
|
||||||
tar cfj $@ $(SDK_NAME); \
|
tar -I 'xz -7e' -cf $@ $(SDK_NAME); \
|
||||||
)
|
)
|
||||||
|
|
||||||
download:
|
download:
|
||||||
prepare:
|
prepare:
|
||||||
compile: $(BIN_DIR)/$(SDK_NAME).tar.bz2
|
compile: $(BIN_DIR)/$(SDK_NAME).tar.xz
|
||||||
install: compile
|
install: compile
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.bz2
|
rm -rf $(SDK_BUILD_DIR) $(BIN_DIR)/$(SDK_NAME).tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user