aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux/linux.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2005-02-12 02:42:04 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2005-02-12 02:42:04 +0000
commitd87ae6b724e22ee829203fd3df3adf6c4ee16dd0 (patch)
treefaa03fb6f039b7b67acc490b03dcca8571dcfc07 /package/linux/linux.mk
parent18c9eb049c9fb06c08f590a4da251cb212562b8c (diff)
downloadupstream-d87ae6b724e22ee829203fd3df3adf6c4ee16dd0.tar.gz
upstream-d87ae6b724e22ee829203fd3df3adf6c4ee16dd0.tar.bz2
upstream-d87ae6b724e22ee829203fd3df3adf6c4ee16dd0.zip
makefile cleanup, new directory name for linksys kernel stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@235 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux/linux.mk')
-rw-r--r--package/linux/linux.mk17
1 files changed, 9 insertions, 8 deletions
diff --git a/package/linux/linux.mk b/package/linux/linux.mk
index 9a1670f2d3..49a1278093 100644
--- a/package/linux/linux.mk
+++ b/package/linux/linux.mk
@@ -39,8 +39,9 @@ LINUX_BINLOC=arch/$(LINUX_KARCH)/brcm-boards/bcm947xx/compressed/vmlinuz
# Used by pcmcia-cs and others
LINUX_SOURCE_DIR=$(LINUX_DIR)
-LINKSYS_SITE=openwrt.openbsd-geek.de
-LINKSYS_TGZ=linksys-3.37.2.tgz
+# kernel stuff extracted from linksys firmware GPL sourcetree
+# WRT54GS_3_37_2_1109_US (shared,include,wl,et)
+LINKSYS_KERNEL_TGZ=linksys-kernel.tar.gz
TARGET_MODULES_DIR=$(TARGET_DIR)/lib/modules/$(LINUX_VERSION)
@@ -49,19 +50,19 @@ $(DL_DIR)/linux.tar.bz2:
(cd $(DL_DIR); cvs -d :pserver:cvs:cvs@$(LINUX_SITE):/home/cvs login)
(cd $(DL_DIR); cvs -z3 -d :pserver:cvs:cvs@$(LINUX_SITE):/home/cvs co -D $(LINUX_CVS_DATE) -r$(LINUX_CVS_BRANCH) linux)
(cd $(DL_DIR); tar jcvf linux.tar.bz2 linux && rm -rf linux)
- $(WGET) -P $(DL_DIR) $(LINKSYS_SITE)/$(LINKSYS_TGZ)
-$(LINUX_DIR)/.unpacked: $(DL_DIR)/linux.tar.bz2
+$(DL_DIR)/$(LINKSYS_KERNEL_TGZ):
+ $(WGET) -P $(DL_DIR) $(LINKSYS_TGZ_SITE)/$(LINKSYS_KERNEL_TGZ)
+
+$(LINUX_DIR)/.unpacked: $(DL_DIR)/linux.tar.bz2 $(DL_DIR)/$(LINKSYS_KERNEL_TGZ)
-mkdir -p $(BUILD_DIR)
- #-(cp -a $(DL_DIR)/linux $(BUILD_DIR)/linux)
(cd $(BUILD_DIR); tar jxvf $(DL_DIR)/linux.tar.bz2)
-mkdir -p $(TOOL_BUILD_DIR)
-(cd $(TOOL_BUILD_DIR); ln -sf $(BUILD_DIR)/linux linux)
toolchain/patch-kernel.sh $(LINUX_DIR) package/linux/kernel-patches
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
- # extract linksys binary kernel modules and include/shared files
- -mkdir -p $(BUILD_DIR)/binary
- tar -C $(BUILD_DIR)/binary -xzvf $(DL_DIR)/linksys-3.37.2.tgz
+ # extract linksys binary kernel stuff and include/shared files
+ zcat $(DL_DIR)/$(LINKSYS_KERNEL_TGZ) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
touch $(LINUX_DIR)/.unpacked
$(LINUX_KCONFIG):