From 22ec7fc3a2c62d2215af4ce25f5290d2a5b29bb7 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 16 Feb 2007 18:32:20 +0000 Subject: [PATCH] - fix build for the host --- package/mtd/mtd.mk | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/package/mtd/mtd.mk b/package/mtd/mtd.mk index 8b1a36afe3..d57922d642 100644 --- a/package/mtd/mtd.mk +++ b/package/mtd/mtd.mk @@ -40,7 +40,7 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE_GENERIC) $(MTD_CAT) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - mv $(TOOL_BUILD_DIR)/$(shell tar tjf $(DL_DIR)/$(MTD_SOURCE) \ | head -n 1 | xargs basename) $(MTD_HOST_DIR) - touch $(MTD_HOST_DIR)/.unpacked + touch $@ else ifneq ($(MTD_SOURCE),) $(DL_DIR)/$(MTD_SOURCE): @@ -51,14 +51,13 @@ $(MTD_HOST_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE) $(MTD_CAT) $(DL_DIR)/$(MTD_SOURCE) | tar -C $(TOOL_BUILD_DIR) $(TAR_OPTIONS) - 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 + toolchain/patch-kernel.sh $(MTD_HOST_DIR) package/mtd \*.patch + touch $@ endif $(MTD_HOST_DIR)/util/mkfs.jffs2: $(MTD_HOST_DIR)/.unpacked - CC="$(HOSTCC)" CROSS= CFLAGS=-I$(LINUX_HEADERS_DIR)/include \ - $(MAKE) LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR)/util mkfs.jffs2 + CFLAGS=-I$(LINUX_HEADERS_DIR)/include $(MAKE) CC="$(HOSTCC)" CROSS= \ + LINUXDIR=$(LINUX_DIR) -C $(MTD_HOST_DIR)/util mkfs.jffs2 mtd-host: $(MKFS_JFFS2) @@ -80,13 +79,13 @@ $(MTD_DIR)/.unpacked: $(DL_DIR)/$(MTD_SOURCE) ifeq ($(strip $(BR2_PACKAGE_MTD_SNAPSHOT)),y) mv $(BUILD_DIR)/$(shell tar tjf $(DL_DIR)/$(MTD_SOURCE) \ | head -n 1 | xargs basename) $(MTD_DIR) - touch $(MTD_DIR)/.unpacked + touch $@ else 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 + touch $@ endif MTD_TARGETS_n := -- 2.30.2