summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-07 23:11:26 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-06-13 15:20:28 +0200
commitfa2a311b7756fc458ae55b5aa90ac865cef6c498 (patch)
treee26e263565b0ac81c1b9399f1c95e4b18c69d840
parent6cc9d936a978d558211a0553ba3cdf9113ab9c96 (diff)
linux: fix dependency on mkimage
After the rework of the U-Boot configuration/compilation process, we need to slightly rework how target/linux/Makefile.in.advanced depends on mkimage on the host to produce an uImage. target/linux/Makefile.in doesn't need to be fixed as it just doesn't handle this dependency for the moment. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--target/linux/Config.in.advanced1
-rw-r--r--target/linux/Makefile.in.advanced10
2 files changed, 2 insertions, 9 deletions
diff --git a/target/linux/Config.in.advanced b/target/linux/Config.in.advanced
index d6c855944..645ed2e3a 100644
--- a/target/linux/Config.in.advanced
+++ b/target/linux/Config.in.advanced
@@ -383,7 +383,6 @@ config BR2_LINUX_BIN_BZIMAGE
config BR2_LINUX_BIN_UIMAGE
bool "uImage"
depends on BR2_PACKAGE_LINUX
- select BR2_TARGET_UBOOT
config BR2_LINUX_BIN_VMLINUX
bool "vmlinux"
diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced
index 86d94ca40..9cbbd2c74 100644
--- a/target/linux/Makefile.in.advanced
+++ b/target/linux/Makefile.in.advanced
@@ -123,7 +123,6 @@ endif
# -----------------------------------------------------------------------------
# Has to be set by the target/device
-LINUX26_MKIMAGE_DIR:=
LINUX26_MKIMAGE_DEP:=
# --------------
@@ -137,8 +136,7 @@ endif
# --------------
# UIMAGE
ifeq ($(LINUX26_FORMAT),uImage)
-LINUX26_MKIMAGE_DIR:=$(BUILD_DIR)/u-boot-tools
-LINUX26_MKIMAGE_DEP:=$(LINUX26_MKIMAGE_DIR)/mkimage
+LINUX26_MKIMAGE_DEP:=$(MKIMAGE)
ifeq ($(LINUX26_BINLOC),)
LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT)
endif
@@ -186,7 +184,7 @@ LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \
CROSS_COMPILE=$(TARGET_CROSS) \
LDFLAGS="$(TARGET_LDFLAGS)" \
LZMA="$(LZMA)" \
- PATH=$(LINUX26_MKIMAGE_DIR):$(PATH)
+ PATH=$(PATH)
# =============================================================================
# ifneq ($(strip $(LINUX26_VERSION)),$(strip $(LINUX_HEADERS_VERSION)))
@@ -449,10 +447,6 @@ $(BUILD_DIR)/.linux-version: $(LINUX26_KERNEL)
echo $(LINUX26_VERSION_PROBED) > $(BUILD_DIR)/.linux-version
echo LINUX_MODULES=`$(LINUX26_VERSION_PROBED)`
-$(LINUX26_MKIMAGE_DIR)/mkimage: $(U_BOOT_TOOLS)
- mkdir -p $(LINUX26_MKIMAGE_DIR)
- cp $(MKIMAGE) $(LINUX26_MKIMAGE_DIR)
-
linux26: $(LINUX26_TARGETS)
linux26-version: $(BUILD_DIR)/.linux-version