aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-06-11 23:28:26 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-06-11 23:28:26 +0000
commit463cb5921c379924c1576d2d8895317cf7f60b09 (patch)
treea1c0f61eece4333236e055b2f2f666e9979dda34 /target/linux
parentf1012a75d21750008ab2211bd54345928d466a35 (diff)
downloadupstream-463cb5921c379924c1576d2d8895317cf7f60b09.tar.gz
upstream-463cb5921c379924c1576d2d8895317cf7f60b09.tar.bz2
upstream-463cb5921c379924c1576d2d8895317cf7f60b09.zip
make the kernel compile process more generic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1207 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/linux-2.4/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/target/linux/linux-2.4/Makefile b/target/linux/linux-2.4/Makefile
index acbd2e1299..5997275e88 100644
--- a/target/linux/linux-2.4/Makefile
+++ b/target/linux/linux-2.4/Makefile
@@ -24,7 +24,6 @@ LINUX_KCONFIG:=./config/$(BOARD)
LINUX_BUILD_DIR:=$(BUILD_DIR)/linux-2.4-$(BOARD)
LINUX_TARGET_DIR:=$(LINUX_BUILD_DIR)/root
LINUX_KERNEL:=$(LINUX_BUILD_DIR)/vmlinux
-LINUX_FORMAT=zImage
LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
-e 's/mipsel/mips/' \
-e 's/powerpc/ppc/' \
@@ -33,7 +32,6 @@ LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
LINUX_BINARY_DRIVER_SITE := http://openwrt.org/downloads/
LINUX_SOURCE := linux-$(LINUX_VERSION).tar.bz2
-LINUX_BINLOC := arch/$(LINUX_KARCH)/bcm947xx/compressed/piggy
LINUX_SOURCE_DIR := $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)
MODULES_DIR := $(LINUX_BUILD_DIR)/modules/$(MODULES_SUBDIR)
TARGET_MODULES_DIR := $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)
@@ -188,11 +186,11 @@ $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) dep
touch $(LINUX_DIR)/.depend_done
-$(LINUX_DIR)/$(LINUX_BINLOC): $(LINUX_DIR)/.depend_done
- $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(LINUX_FORMAT)
+$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.depend_done
+ $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH)
-$(LINUX_KERNEL): $(LINUX_DIR)/$(LINUX_BINLOC)
- cp -fa $< $@
+$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
+ $(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@
touch -c $(LINUX_KERNEL)
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)