Index: make/linux/kernel.mk
===================================================================
--- make/linux/kernel.mk (revision 5137)
+++ make/linux/kernel.mk (working copy)
@@ -27,7 +27,7 @@
mkdir -p $(KERNEL_BUILD_DIR)
@$(call _ECHO,checking structure... )
@KERNEL_SOURCE_CONTENT=` \
- tar \
+ $(TAR) \
-t$(AVM_UNPACK__INT_$(suffix $(strip $(FREETZ_DL_KERNEL_SOURCE)))) \
-f $(DL_FW_DIR)/$(FREETZ_DL_KERNEL_SOURCE)| \
grep -m 1 -e '^.*\/\(GPL-\(release_\|\)kernel\.tar\.gz\|linux-2\.6\...\..\/\)$$'`; \
@@ -36,15 +36,15 @@
else \
$(call _ECHO, unpacking... ) \
if [ ! -z $$(echo "$$KERNEL_SOURCE_CONTENT"|grep -e '.*\/GPL-\(release_\|\)kernel\.tar\.gz') ]; then \
- tar -O $(VERBOSE) \
+ $(TAR) -O $(VERBOSE) \
-x$(AVM_UNPACK__INT_$(suffix $(strip $(FREETZ_DL_KERNEL_SOURCE)))) \
-f $(DL_FW_DIR)/$(FREETZ_DL_KERNEL_SOURCE) \
--wildcards "*/$${KERNEL_SOURCE_CONTENT##*/}" | \
- tar -C $(KERNEL_BUILD_DIR) $(VERBOSE) \
+ $(TAR) -C $(KERNEL_BUILD_DIR) $(VERBOSE) \
-xz \
--transform="s|^.*\(linux-2\.6\...\..\/\)|\1|g" --show-transformed; \
else \
- tar -C $(KERNEL_BUILD_DIR) $(VERBOSE) \
+ $(TAR) -C $(KERNEL_BUILD_DIR) $(VERBOSE) \
-x$(AVM_UNPACK__INT_$(suffix $(strip $(FREETZ_DL_KERNEL_SOURCE)))) \
-f $(DL_FW_DIR)/$(FREETZ_DL_KERNEL_SOURCE) \
--transform="s|^.*\(linux-2\.6\...\..\/\)|\1|g" --show-transformed \
Index: make/Makefile.in
===================================================================
--- make/Makefile.in (revision 5137)
+++ make/Makefile.in (working copy)
@@ -585,8 +585,8 @@
define PKG_UNPACK__INT
$(if $(PKG_UNPACK__INT_$(suffix $(strip $1))),,$(error Unknown filetype in "$(strip $1)"))
$(if $(patsubst %.zip,%,$(suffix $(strip $1))),
- tar -C $($(PKG)_SOURCE_DIR) $(VERBOSE) -x$(PKG_UNPACK__INT_$(suffix $(strip $1)))f $(strip $1),
- unzip $(QUIETSHORT) -u $(strip $1) -d $($(PKG)_SOURCE_DIR)
+ $(TAR) -C $($(PKG)_SOURCE_DIR) $(VERBOSE) -x$(PKG_UNPACK__INT_$(suffix $(strip $1)))f $(strip $1),
+ $(UNZIP) $(QUIETSHORT) -u $(strip $1) -d $($(PKG)_SOURCE_DIR)
)
endef
Index: Makefile
===================================================================
--- Makefile (revision 5137)
+++ Makefile (working copy)
@@ -53,6 +53,8 @@
TOOLCHAIN_BUILD_DIR:=$(TOOLCHAIN_DIR)/$(BUILD_DIR)
SED:=sed
+TAR:=tar
+UNZIP:=unzip
MAKE1=make
MAKE=make -j$(FREETZ_JLEVEL)