summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-04-06 17:27:32 +0000
committerEric Andersen <andersen@codepoet.org>2006-04-06 17:27:32 +0000
commit5c08468027f868f1c301075c3a288208168bbbd0 (patch)
tree5223563ba47d67a0817bce68544ed4a49ef3d7d1 /package
parentfd6cc8b1b2c2cd591272e48f28faa8f8e02a1e06 (diff)
downloadbuildroot-novena-5c08468027f868f1c301075c3a288208168bbbd0.tar.gz
buildroot-novena-5c08468027f868f1c301075c3a288208168bbbd0.zip
patch from bjdooks:
mtd.mk is ignoring the set ($DL_DIR), which means fit will fail when DL_DIR is set to something other than dl
Diffstat (limited to 'package')
-rw-r--r--package/mtd/mtd.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk
index ac9d90b6b..fb26de240 100644
--- a/package/mtd/mtd.mk
+++ b/package/mtd/mtd.mk
@@ -37,7 +37,8 @@ $(DL_DIR)/$(MTD_SOURCE):
$(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE_GENERIC)
$(MTD_UNZIP) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
- mv $(TOOL_BUILD_DIR)/$(shell tar tjf dl/$(MTD_SOURCE) | head -n 1 | xargs basename) $(MTD_HOST_DIR)
+ mv $(TOOL_BUILD_DIR)/$(shell tar tjf $(DL_DIR)/$(MTD_SOURCE) \
+ | head -n 1 | xargs basename) $(MTD_HOST_DIR)
touch $(MTD_HOST_DIR)/.unpacked
else
ifneq ($(MTD_SOURCE),)
@@ -47,7 +48,8 @@ endif
$(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
$(MTD_UNZIP) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) -
- mv $(TOOL_BUILD_DIR)/$(shell tar tzf dl/$(MTD_SOURCE) | head -n 1 | xargs basename) $(MTD_HOST_DIR)
+ mv $(TOOL_BUILD_DIR)/$(shell tar tzf $(DL_DIR)/$(MTD_SOURCE) | head -n 1 \
+ | xargs basename) $(MTD_HOST_DIR)
toolchain/patch-kernel.sh $(MTD_HOST_DIR) \
package/mtd \*.patch
touch $(MTD_HOST_DIR)/.unpacked
@@ -75,10 +77,12 @@ mtd-host-dirclean:
$(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE)
$(MTD_UNZIP) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
ifeq ($(strip $(BR2_PACKAGE_MTD_SNAPSHOT)),y)
- mv $(BUILD_DIR)/$(shell tar tjf dl/$(MTD_SOURCE) | head -n 1 | xargs basename) $(MTD_DIR)
+ mv $(BUILD_DIR)/$(shell tar tjf $(DL_DIR)/$(MTD_SOURCE) \
+ | head -n 1 | xargs basename) $(MTD_DIR)
touch $(MTD_DIR)/.unpacked
else
- mv $(BUILD_DIR)/$(shell tar tzf dl/$(MTD_SOURCE) | head -n 1 | xargs basename) $(MTD_DIR)
+ mv $(BUILD_DIR)/$(shell tar tzf $(DL_DIR)/$(MTD_SOURCE) \
+ | head -n 1 | xargs basename) $(MTD_DIR)
toolchain/patch-kernel.sh $(MTD_DIR) \
package/mtd \*.patch
touch $(MTD_DIR)/.unpacked