aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-06-28 11:08:01 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-06-28 11:08:01 +0000
commit83d6e44ce06d8de9947a5211ab93b87156b80664 (patch)
treea0c58ee9d7d57af7d73644747b872638f92a7535
parent43ace503eee373a98c9cc9c22f2ead235430a37b (diff)
downloadupstream-83d6e44ce06d8de9947a5211ab93b87156b80664.tar.gz
upstream-83d6e44ce06d8de9947a5211ab93b87156b80664.tar.bz2
upstream-83d6e44ce06d8de9947a5211ab93b87156b80664.zip
Prior to kernel 2.6.23, architecture path was i386, allow that when switching kernel version
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11594 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/rdc/image/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/rdc/image/Makefile b/target/linux/rdc/image/Makefile
index 4da96b7e18..a8ad099668 100644
--- a/target/linux/rdc/image/Makefile
+++ b/target/linux/rdc/image/Makefile
@@ -7,8 +7,14 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
+ifeq ($(CONFIG_LINUX_2_6_23),y)
+ARCH_PATH=i386
+else
+ARCH_PATH=x86
+endif
+
define Image/Prepare
- $(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
+ $(CP) $(LINUX_DIR)/arch/$(ARCH_PATH)/boot/bzImage $(KDIR)/bzImage
endef
define trxalign/jffs2-128k