large target/linux cleanup
SVN-Revision: 2877
This commit is contained in:
parent
60cc7e45d7
commit
ea35a1edbe
120 changed files with 387 additions and 608 deletions
|
@ -67,58 +67,8 @@ config BR2_LINUX_PCMCIA_SUPPORT
|
||||||
|
|
||||||
comment "Device specific modules"
|
comment "Device specific modules"
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_BRCM_ET
|
source "target/linux/*-2.[46]/Config.in"
|
||||||
prompt "kmod-brcm-et...................... Broadcom Ethernet Driver"
|
|
||||||
tristate
|
|
||||||
depends BR2_LINUX_2_4_BRCM
|
|
||||||
default m
|
|
||||||
help
|
|
||||||
Proprietary driver for Broadcom Ethernet chipsets (obsolete)
|
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_BRCM_WL
|
|
||||||
prompt "kmod-brcm-wl...................... Broadcom Wireless Network Driver"
|
|
||||||
tristate
|
|
||||||
depends BR2_LINUX_2_4_BRCM
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
Proprietary driver for Broadcom Wireless chipsets
|
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_BRCM_WL2
|
|
||||||
prompt "kmod-brcm-wl2..................... Broadcom Wireless Network Driver (new)"
|
|
||||||
tristate
|
|
||||||
depends BR2_LINUX_2_4_BRCM
|
|
||||||
default m
|
|
||||||
help
|
|
||||||
Proprietary driver for Broadcom Wireless chipsets
|
|
||||||
New version with Multi-BSS capability
|
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_CPMAC
|
|
||||||
prompt "kmod-cpmac........................ AR7 CPMAC Network Driver"
|
|
||||||
tristate
|
|
||||||
default y
|
|
||||||
depends BR2_LINUX_2_4_AR7
|
|
||||||
help
|
|
||||||
Driver for the AR7 CPMAC network chip
|
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_SANGAM_ATM_A
|
|
||||||
prompt "kmod-sangam-atm-annex-a........... AR7 Sangam ADSL Driver (Annex A)"
|
|
||||||
tristate
|
|
||||||
default m
|
|
||||||
depends BR2_LINUX_2_4_AR7
|
|
||||||
select BR2_PACKAGE_KMOD_ATM
|
|
||||||
help
|
|
||||||
ATM driver for the Sangam ADSL chip on AR7
|
|
||||||
Annex A version
|
|
||||||
|
|
||||||
config BR2_PACKAGE_KMOD_SANGAM_ATM_B
|
|
||||||
prompt "kmod-sangam-atm-annex-b........... AR7 Sangam ADSL Driver (Annex B)"
|
|
||||||
tristate
|
|
||||||
default y
|
|
||||||
depends BR2_LINUX_2_4_AR7
|
|
||||||
select BR2_PACKAGE_KMOD_ATM
|
|
||||||
help
|
|
||||||
ATM driver for the Sangam ADSL chip on AR7
|
|
||||||
Annex B version
|
|
||||||
|
|
||||||
comment "Networking modules"
|
comment "Networking modules"
|
||||||
|
|
||||||
|
@ -126,7 +76,7 @@ config BR2_PACKAGE_KMOD_ATM
|
||||||
prompt "kmod-atm.......................... ATM support"
|
prompt "kmod-atm.......................... ATM support"
|
||||||
tristate
|
tristate
|
||||||
default y if BR2_LINUX_2_4_AR7
|
default y if BR2_LINUX_2_4_AR7
|
||||||
default m if BR2_LINUX_2_6_BRCM
|
default m
|
||||||
help
|
help
|
||||||
ATM support
|
ATM support
|
||||||
|
|
||||||
|
@ -164,7 +114,6 @@ config BR2_PACKAGE_KMOD_PPPOATM
|
||||||
prompt "kmod-pppoatm.................... PPPoA (PPP over ATM) kernel support"
|
prompt "kmod-pppoatm.................... PPPoA (PPP over ATM) kernel support"
|
||||||
tristate
|
tristate
|
||||||
default y if BR2_LINUX_2_4_AR7
|
default y if BR2_LINUX_2_4_AR7
|
||||||
default m if BR2_LINUX_2_6_BRCM
|
|
||||||
default m
|
default m
|
||||||
depends BR2_PACKAGE_KMOD_PPP
|
depends BR2_PACKAGE_KMOD_PPP
|
||||||
select BR2_PACKAGE_KMOD_ATM
|
select BR2_PACKAGE_KMOD_ATM
|
||||||
|
|
|
@ -10,23 +10,23 @@ define kernel_template
|
||||||
|
|
||||||
$(1)/$(2)-clean:
|
$(1)/$(2)-clean:
|
||||||
@$(TRACE) target/linux/linux-$(1)/clean
|
@$(TRACE) target/linux/linux-$(1)/clean
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" clean
|
$(MAKE) -C $(2)-$(1) BOARD="$(2)" clean
|
||||||
|
|
||||||
$(1)/$(2)-prepare:
|
$(1)/$(2)-prepare:
|
||||||
@$(TRACE) target/linux/linux-$(1)/prepare
|
@$(TRACE) target/linux/linux-$(1)/prepare
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" prepare
|
$(MAKE) -C $(2)-$(1) BOARD="$(2)" prepare
|
||||||
|
|
||||||
$(1)/$(2)-compile:
|
$(1)/$(2)-compile:
|
||||||
@$(TRACE) target/linux/linux-$(1)/compile
|
@$(TRACE) target/linux/linux-$(1)/compile
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" compile
|
$(MAKE) -C $(2)-$(1) BOARD="$(2)" compile
|
||||||
|
|
||||||
$(1)/$(2)-rebuild:
|
$(1)/$(2)-rebuild:
|
||||||
@$(TRACE) target/linux/linux-$(1)/rebuild
|
@$(TRACE) target/linux/linux-$(1)/rebuild
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" rebuild
|
$(MAKE) -C $(2)-$(1) BOARD="$(2)" rebuild
|
||||||
|
|
||||||
$(1)/$(2)-install:
|
$(1)/$(2)-install:
|
||||||
@$(TRACE) target/linux/linux-$(1)/install
|
@$(TRACE) target/linux/linux-$(1)/install
|
||||||
$(MAKE) -C linux-$(1) KERNEL="$(1)" BOARD="$(2)" install
|
$(MAKE) -C $(2)-$(1) BOARD="$(2)" install
|
||||||
|
|
||||||
$(1)/$(2)-image: $(1)/$(2)-install
|
$(1)/$(2)-image: $(1)/$(2)-install
|
||||||
@$(TRACE) target/linux/image/install
|
@$(TRACE) target/linux/image/install
|
||||||
|
|
17
openwrt/target/linux/ar531x-2.4/Makefile
Normal file
17
openwrt/target/linux/ar531x-2.4/Makefile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
LINUX_VERSION:=2.4.32
|
||||||
|
LINUX_RELEASE:=1
|
||||||
|
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
||||||
|
|
||||||
|
include ../rules.mk
|
||||||
|
include ./config
|
||||||
|
include ../generic-$(KERNEL)/modules.mk
|
||||||
|
include ../kernel.mk
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
|
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
|
||||||
|
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
|
||||||
|
@cp config $(LINUX_DIR)/.config
|
||||||
|
touch $@
|
||||||
|
|
|
@ -1,13 +1,48 @@
|
||||||
#############################################################
|
include $(TOPDIR)/rules.mk
|
||||||
# $Id$
|
|
||||||
#
|
LINUX_VERSION:=2.4.32
|
||||||
# Makefile for the AR7-specific kernel/driver stuff
|
LINUX_RELEASE:=1
|
||||||
#
|
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
||||||
#############################################################
|
|
||||||
|
include ../rules.mk
|
||||||
|
include ./config
|
||||||
|
|
||||||
|
ATM_FIRMWARE_VERSION:=0.4
|
||||||
|
ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION)
|
||||||
|
|
||||||
|
$(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
|
||||||
|
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
||||||
|
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
||||||
|
cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
|
||||||
|
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
||||||
|
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
||||||
|
cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
|
||||||
|
))
|
||||||
|
|
||||||
|
$(eval $(call KMOD_template,CPMAC,cpmac,\
|
||||||
|
$(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
|
||||||
|
,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
|
||||||
|
|
||||||
|
include ../generic-$(KERNEL)/modules.mk
|
||||||
|
include ../kernel.mk
|
||||||
|
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
|
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
|
||||||
|
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
|
||||||
|
@cp config $(LINUX_DIR)/.config
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
|
||||||
|
###############################################
|
||||||
|
# ATM firmware for the DSL modem
|
||||||
|
###############################################
|
||||||
|
|
||||||
DOWNLOAD_SITE=http://openwrt.org/downloads/sources
|
DOWNLOAD_SITE=http://openwrt.org/downloads/sources
|
||||||
# extracted from netgear DG834B V1.0.5 GPL release
|
# extracted from netgear DG834B V1.0.5 GPL release
|
||||||
ATM_FIRMWARE_DIR=sangam-atm-firmware-0.4
|
|
||||||
ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
|
ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
|
||||||
ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
|
||||||
|
|
||||||
|
@ -29,19 +64,3 @@ drivers-clean:
|
||||||
rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
|
rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
|
||||||
|
|
||||||
|
|
||||||
$(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
|
|
||||||
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
|
||||||
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
|
||||||
cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
|
|
||||||
$(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
|
|
||||||
,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
|
|
||||||
cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call KMOD_template,CPMAC,cpmac,\
|
|
||||||
$(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
|
|
||||||
,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
|
|
||||||
|
|
18
openwrt/target/linux/brcm-2.4/Config.in
Normal file
18
openwrt/target/linux/brcm-2.4/Config.in
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
config BR2_PACKAGE_KMOD_BRCM_WL
|
||||||
|
prompt "kmod-brcm-wl...................... Broadcom Wireless Network Driver"
|
||||||
|
tristate
|
||||||
|
depends BR2_LINUX_2_4_BRCM
|
||||||
|
default y
|
||||||
|
help
|
||||||
|
Proprietary driver for Broadcom Wireless chipsets
|
||||||
|
|
||||||
|
config BR2_PACKAGE_KMOD_BRCM_WL2
|
||||||
|
prompt "kmod-brcm-wl2..................... Broadcom Wireless Network Driver (new)"
|
||||||
|
tristate
|
||||||
|
depends BR2_LINUX_2_4_BRCM
|
||||||
|
default m
|
||||||
|
help
|
||||||
|
Proprietary driver for Broadcom Wireless chipsets
|
||||||
|
New version with Multi-BSS capability
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
#############################################################
|
include $(TOPDIR)/rules.mk
|
||||||
# $Id$
|
|
||||||
#
|
LINUX_VERSION:=2.4.32
|
||||||
# Makefile for the proprietary Broadcom drivers
|
LINUX_RELEASE:=1
|
||||||
#
|
LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
|
||||||
#############################################################
|
|
||||||
|
include ../rules.mk
|
||||||
|
include ./config
|
||||||
|
|
||||||
# broadcom specific kmod packages
|
# broadcom specific kmod packages
|
||||||
$(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
|
$(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
|
||||||
|
@ -14,10 +16,6 @@ $(eval $(call KMOD_template,BRCM_WL2,brcm-wl2,\
|
||||||
$(BUILD_DIR)/wl/wl2/wl.o \
|
$(BUILD_DIR)/wl/wl2/wl.o \
|
||||||
,CONFIG_WL,,20,wl))
|
,CONFIG_WL,,20,wl))
|
||||||
|
|
||||||
$(eval $(call KMOD_template,BRCM_ET,brcm-et,\
|
|
||||||
$(MODULES_DIR)/kernel/drivers/net/et/et.o \
|
|
||||||
,CONFIG_ET,,10,et))
|
|
||||||
|
|
||||||
$(eval $(call KMOD_template,LP,lp,\
|
$(eval $(call KMOD_template,LP,lp,\
|
||||||
$(MODULES_DIR)/kernel/drivers/parport/parport.o \
|
$(MODULES_DIR)/kernel/drivers/parport/parport.o \
|
||||||
$(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
|
$(MODULES_DIR)/kernel/drivers/parport/parport_splink.o \
|
||||||
|
@ -25,20 +23,30 @@ $(eval $(call KMOD_template,LP,lp,\
|
||||||
$(MODULES_DIR)/kernel/drivers/char/ppdev.o \
|
$(MODULES_DIR)/kernel/drivers/char/ppdev.o \
|
||||||
,CONFIG_PARPORT,,50,parport parport_splink lp))
|
,CONFIG_PARPORT,,50,parport parport_splink lp))
|
||||||
|
|
||||||
|
include ../generic-$(KERNEL)/modules.mk
|
||||||
|
include ../kernel.mk
|
||||||
|
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
|
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
|
||||||
|
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
|
||||||
|
@cp config $(LINUX_DIR)/.config
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
|
||||||
|
###############################################
|
||||||
|
# Proprietary driver for BCM43xx
|
||||||
|
###############################################
|
||||||
|
|
||||||
LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/sources
|
LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/sources
|
||||||
# proprietary driver, extracted from Linksys GPL sourcetree WRT54GS 4.70.6
|
# proprietary driver, extracted from Linksys GPL sourcetree WRT54GS 4.70.6
|
||||||
LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.5.tar.gz
|
LINUX_BINARY_WL_DRIVER=kernel-binary-wl-0.5.tar.gz
|
||||||
LINUX_BINARY_WL_MD5SUM=78e839842bdc04022bb44469f92b1131
|
LINUX_BINARY_WL_MD5SUM=78e839842bdc04022bb44469f92b1131
|
||||||
LINUX_ET_DRIVER=kernel-source-et-0.13.tar.gz
|
|
||||||
LINUX_ET_MD5SUM=b2072f26a4f25a7d6bc2669c4fe6419d
|
|
||||||
|
|
||||||
$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
|
$(DL_DIR)/$(LINUX_BINARY_WL_DRIVER):
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_BINARY_WL_DRIVER) $(LINUX_BINARY_WL_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
$(DL_DIR)/$(LINUX_ET_DRIVER):
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER)
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_ET_DRIVER) $(LINUX_ET_MD5SUM) $(LINUX_BINARY_DRIVER_SITE) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) $(DL_DIR)/$(LINUX_ET_DRIVER)
|
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
|
$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
|
||||||
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.drivers-installed
|
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.drivers-installed
|
||||||
|
@ -48,12 +56,8 @@ $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
|
||||||
zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
zcat $(DL_DIR)/$(LINUX_BINARY_WL_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
zcat $(DL_DIR)/$(LINUX_ET_DRIVER) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
# copy binary wlan driver
|
# copy binary wlan driver
|
||||||
mkdir -p $(LINUX_DIR)/drivers/net/{et,wl}
|
mkdir -p $(LINUX_DIR)/drivers/net/wl
|
||||||
cp -fpR $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
|
cp -fpR $(BUILD_DIR)/wl/*.o $(LINUX_DIR)/drivers/net/wl
|
||||||
# copy proprietary et source
|
|
||||||
cp -fpR $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et
|
|
||||||
mkdir -p $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
|
||||||
cp -fpR $(BUILD_DIR)/et/*.h $(LINUX_DIR)/arch/mips/bcm947xx/include/
|
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
|
$(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
|
||||||
|
@ -64,4 +68,4 @@ $(LINUX_DIR)/.drivers-installed: $(LINUX_DIR)/.modules_done
|
||||||
linux-dirclean: drivers-clean
|
linux-dirclean: drivers-clean
|
||||||
|
|
||||||
drivers-clean:
|
drivers-clean:
|
||||||
rm -rf $(BUILD_DIR)/{wl,et}
|
rm -rf $(BUILD_DIR)/wl
|
|
@ -763,7 +763,6 @@ CONFIG_NET_PCI=y
|
||||||
# CONFIG_ADAPTEC_STARFIRE is not set
|
# CONFIG_ADAPTEC_STARFIRE is not set
|
||||||
# CONFIG_APRICOT is not set
|
# CONFIG_APRICOT is not set
|
||||||
CONFIG_B44=y
|
CONFIG_B44=y
|
||||||
CONFIG_ET=m
|
|
||||||
# CONFIG_CS89x0 is not set
|
# CONFIG_CS89x0 is not set
|
||||||
# CONFIG_TULIP is not set
|
# CONFIG_TULIP is not set
|
||||||
# CONFIG_DE4X5 is not set
|
# CONFIG_DE4X5 is not set
|
|
@ -14673,39 +14673,6 @@ diff -Nur linux-2.4.32/drivers/net/Config.in linux-2.4.32-brcm/drivers/net/Confi
|
||||||
source drivers/net/arcnet/Config.in
|
source drivers/net/arcnet/Config.in
|
||||||
|
|
||||||
tristate 'Dummy net driver support' CONFIG_DUMMY
|
tristate 'Dummy net driver support' CONFIG_DUMMY
|
||||||
@@ -173,6 +175,7 @@
|
|
||||||
|
|
||||||
dep_tristate ' Apricot Xen-II on board Ethernet' CONFIG_APRICOT $CONFIG_ISA
|
|
||||||
dep_tristate ' Broadcom 4400 ethernet support (EXPERIMENTAL)' CONFIG_B44 $CONFIG_PCI $CONFIG_EXPERIMENTAL
|
|
||||||
+ dep_tristate ' Proprietary Broadcom 10/100 Ethernet support' CONFIG_ET $CONFIG_PCI
|
|
||||||
dep_tristate ' CS89x0 support' CONFIG_CS89x0 $CONFIG_ISA
|
|
||||||
dep_tristate ' DECchip Tulip (dc21x4x) PCI support' CONFIG_TULIP $CONFIG_PCI
|
|
||||||
if [ "$CONFIG_TULIP" = "y" -o "$CONFIG_TULIP" = "m" ]; then
|
|
||||||
diff -Nur linux-2.4.32/drivers/net/et/Makefile linux-2.4.32-brcm/drivers/net/et/Makefile
|
|
||||||
--- linux-2.4.32/drivers/net/et/Makefile 1970-01-01 01:00:00.000000000 +0100
|
|
||||||
+++ linux-2.4.32-brcm/drivers/net/et/Makefile 2005-12-16 23:39:11.284858000 +0100
|
|
||||||
@@ -0,0 +1,21 @@
|
|
||||||
+#
|
|
||||||
+# Makefile for the Broadcom et driver
|
|
||||||
+#
|
|
||||||
+# Copyright 2004, Broadcom Corporation
|
|
||||||
+# All Rights Reserved.
|
|
||||||
+#
|
|
||||||
+# THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
|
|
||||||
+# KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
|
|
||||||
+# SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
+# FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
|
|
||||||
+#
|
|
||||||
+# $Id: Makefile,v 1.1 2005/03/16 13:50:00 wbx Exp $
|
|
||||||
+#
|
|
||||||
+
|
|
||||||
+EXTRA_CFLAGS := -I$(TOPDIR)/arch/mips/bcm947xx/include -DBCM47XX_CHOPS -DDMA -DBCMDRIVER
|
|
||||||
+
|
|
||||||
+O_TARGET := et.o
|
|
||||||
+obj-y := et_linux.o etc.o etc47xx.o etc_robo.o etc_adm.o
|
|
||||||
+obj-m := $(O_TARGET)
|
|
||||||
+
|
|
||||||
+include $(TOPDIR)/Rules.make
|
|
||||||
diff -Nur linux-2.4.32/drivers/net/hnd/bcmsrom.c linux-2.4.32-brcm/drivers/net/hnd/bcmsrom.c
|
diff -Nur linux-2.4.32/drivers/net/hnd/bcmsrom.c linux-2.4.32-brcm/drivers/net/hnd/bcmsrom.c
|
||||||
--- linux-2.4.32/drivers/net/hnd/bcmsrom.c 1970-01-01 01:00:00.000000000 +0100
|
--- linux-2.4.32/drivers/net/hnd/bcmsrom.c 1970-01-01 01:00:00.000000000 +0100
|
||||||
+++ linux-2.4.32-brcm/drivers/net/hnd/bcmsrom.c 2005-12-16 23:39:11.284858000 +0100
|
+++ linux-2.4.32-brcm/drivers/net/hnd/bcmsrom.c 2005-12-16 23:39:11.284858000 +0100
|
||||||
|
@ -21875,26 +21842,22 @@ diff -Nur linux-2.4.32/drivers/net/Makefile linux-2.4.32-brcm/drivers/net/Makefi
|
||||||
obj-y :=
|
obj-y :=
|
||||||
obj-m :=
|
obj-m :=
|
||||||
obj-n :=
|
obj-n :=
|
||||||
@@ -39,6 +41,9 @@
|
@@ -39,6 +41,8 @@
|
||||||
obj-$(CONFIG_ISDN) += slhc.o
|
obj-$(CONFIG_ISDN) += slhc.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
+subdir-$(CONFIG_HND) += hnd
|
+subdir-$(CONFIG_HND) += hnd
|
||||||
+subdir-$(CONFIG_ET) += et
|
|
||||||
+subdir-$(CONFIG_WL) += wl
|
+subdir-$(CONFIG_WL) += wl
|
||||||
subdir-$(CONFIG_NET_PCMCIA) += pcmcia
|
subdir-$(CONFIG_NET_PCMCIA) += pcmcia
|
||||||
subdir-$(CONFIG_NET_WIRELESS) += wireless
|
subdir-$(CONFIG_NET_WIRELESS) += wireless
|
||||||
subdir-$(CONFIG_TULIP) += tulip
|
subdir-$(CONFIG_TULIP) += tulip
|
||||||
@@ -69,6 +74,16 @@
|
@@ -69,6 +74,13 @@
|
||||||
obj-$(CONFIG_MYRI_SBUS) += myri_sbus.o
|
obj-$(CONFIG_MYRI_SBUS) += myri_sbus.o
|
||||||
obj-$(CONFIG_SUNGEM) += sungem.o
|
obj-$(CONFIG_SUNGEM) += sungem.o
|
||||||
|
|
||||||
+ifeq ($(CONFIG_HND),y)
|
+ifeq ($(CONFIG_HND),y)
|
||||||
+ obj-y += hnd/hnd.o
|
+ obj-y += hnd/hnd.o
|
||||||
+endif
|
+endif
|
||||||
+ifeq ($(CONFIG_ET),y)
|
|
||||||
+ obj-y += et/et.o
|
|
||||||
+endif
|
|
||||||
+ifeq ($(CONFIG_WL),y)
|
+ifeq ($(CONFIG_WL),y)
|
||||||
+ obj-y += wl/wl.o
|
+ obj-y += wl/wl.o
|
||||||
+endif
|
+endif
|
||||||
|
@ -21902,14 +21865,6 @@ diff -Nur linux-2.4.32/drivers/net/Makefile linux-2.4.32-brcm/drivers/net/Makefi
|
||||||
obj-$(CONFIG_MACE) += mace.o
|
obj-$(CONFIG_MACE) += mace.o
|
||||||
obj-$(CONFIG_BMAC) += bmac.o
|
obj-$(CONFIG_BMAC) += bmac.o
|
||||||
obj-$(CONFIG_GMAC) += gmac.o
|
obj-$(CONFIG_GMAC) += gmac.o
|
||||||
@@ -265,6 +280,7 @@
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
+
|
|
||||||
include $(TOPDIR)/Rules.make
|
|
||||||
|
|
||||||
clean:
|
|
||||||
diff -Nur linux-2.4.32/drivers/net/wireless/Config.in linux-2.4.32-brcm/drivers/net/wireless/Config.in
|
diff -Nur linux-2.4.32/drivers/net/wireless/Config.in linux-2.4.32-brcm/drivers/net/wireless/Config.in
|
||||||
--- linux-2.4.32/drivers/net/wireless/Config.in 2004-11-17 12:54:21.000000000 +0100
|
--- linux-2.4.32/drivers/net/wireless/Config.in 2004-11-17 12:54:21.000000000 +0100
|
||||||
+++ linux-2.4.32-brcm/drivers/net/wireless/Config.in 2005-12-16 23:39:11.364863000 +0100
|
+++ linux-2.4.32-brcm/drivers/net/wireless/Config.in 2005-12-16 23:39:11.364863000 +0100
|
19
openwrt/target/linux/brcm-2.6/Makefile
Normal file
19
openwrt/target/linux/brcm-2.6/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
LINUX_VERSION:=2.6.15
|
||||||
|
LINUX_RELEASE:=1
|
||||||
|
LINUX_KERNEL_MD5SUM:=cdf95e00f5111e31f78e1d97304d9522
|
||||||
|
|
||||||
|
include ../rules.mk
|
||||||
|
include ./config
|
||||||
|
|
||||||
|
include ../generic-$(KERNEL)/modules.mk
|
||||||
|
include ../kernel.mk
|
||||||
|
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
||||||
|
[ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
|
||||||
|
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
|
||||||
|
@cp config $(LINUX_DIR)/.config
|
||||||
|
touch $@
|
||||||
|
|
|
@ -1,55 +1,3 @@
|
||||||
# $Id$
|
|
||||||
# Linux 2.4 kernel target for the OpenWRT project
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
include ../rules.mk
|
|
||||||
|
|
||||||
KERNEL:=2.4
|
|
||||||
LINUX_VERSION:=2.4.32
|
|
||||||
MODULES_SUBDIR:=lib/modules/$(LINUX_VERSION)
|
|
||||||
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_BINARY_DRIVER_SITE := http://openwrt.org/downloads/sources/
|
|
||||||
LINUX_SOURCE := linux-$(LINUX_VERSION).tar.bz2
|
|
||||||
LINUX_SOURCE_DIR := $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)
|
|
||||||
MODULES_DIR := $(LINUX_BUILD_DIR)/modules/$(MODULES_SUBDIR)
|
|
||||||
TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/lib/modules/$(LINUX_VERSION)
|
|
||||||
IPKG_KERNEL:=IPKG_TMP=$(BUILD_DIR)/tmp IPKG_INSTROOT=$(LINUX_TARGET_DIR) IPKG_CONF_DIR=$(LINUX_BUILD_DIR) $(SCRIPT_DIR)/ipkg -force-defaults -force-depends
|
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(LINUX_BUILD_DIR)/linux-modules
|
|
||||||
PKG_RELEASE := 2
|
|
||||||
|
|
||||||
KERNEL_IPKG:=$(LINUX_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)_$(ARCH).ipk
|
|
||||||
KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg
|
|
||||||
|
|
||||||
KPKG_MAKEOPTS:= IPKG="$(IPKG_KERNEL)" \
|
|
||||||
BOARD="$(BOARD)" \
|
|
||||||
TARGET_DIR="$(LINUX_TARGET_DIR)" \
|
|
||||||
BUILD_DIR="$(LINUX_BUILD_DIR)" \
|
|
||||||
KERNEL_DIR="$(LINUX_SOURCE_DIR)" \
|
|
||||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
|
||||||
KERNEL_RELEASE="$(PKG_RELEASE)"
|
|
||||||
|
|
||||||
include $(LINUX_KCONFIG)
|
|
||||||
|
|
||||||
INSTALL_TARGETS := $(KERNEL_IPKG)
|
|
||||||
TARGETS :=
|
|
||||||
|
|
||||||
ifeq ($(BOARD),brcm)
|
|
||||||
include ./broadcom.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BOARD),x86)
|
|
||||||
include ./x86.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BOARD),ar7)
|
|
||||||
include ./ar7.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
include ../netfilter.mk
|
include ../netfilter.mk
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
@ -374,105 +322,4 @@ $(eval $(call KMOD_template,SOFTDOG,softdog,\
|
||||||
,CONFIG_SOFT_WATCHDOG,,95,softdog))
|
,CONFIG_SOFT_WATCHDOG,,95,softdog))
|
||||||
|
|
||||||
|
|
||||||
$(TARGETS): $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
|
||||||
mkdir -p $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
|
||||||
-mkdir -p $(LINUX_BUILD_DIR)
|
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
rm -f $(LINUX_DIR)
|
|
||||||
ln -s $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
|
||||||
touch $(LINUX_DIR)/.unpacked
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
|
||||||
$(PATCH) $(LINUX_DIR) ./patches/generic $(MAKE_TRACE)
|
|
||||||
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD) $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.patched
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
|
||||||
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
|
||||||
$(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" \
|
|
||||||
$(LINUX_DIR)/Makefile \
|
|
||||||
$(LINUX_DIR)/arch/*/Makefile
|
|
||||||
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig include/linux/version.h $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.configured
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
|
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) dep $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.depend_done
|
|
||||||
|
|
||||||
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.depend_done
|
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
|
||||||
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE)
|
|
||||||
touch -c $(LINUX_KERNEL)
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)/modules
|
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules $(MAKE_TRACE)
|
|
||||||
$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.modules_done
|
|
||||||
|
|
||||||
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
|
||||||
mkdir -p $(STAGING_DIR)/include
|
|
||||||
tar -ch -C $(LINUX_DIR)/include -f - linux | tar -xf - -C $(STAGING_DIR)/include/
|
|
||||||
tar -ch -C $(LINUX_DIR)/include -f - asm | tar -xf - -C $(STAGING_DIR)/include/
|
|
||||||
|
|
||||||
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
|
||||||
@mkdir -p $(STAMP_DIR)
|
|
||||||
@$(MAKE) $(TARGETS)
|
|
||||||
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
|
||||||
@$(TRACE) target/linux/package
|
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
|
||||||
$(KPKG_MAKEOPTS) \
|
|
||||||
compile
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(TARGET_MODULES_DIR):
|
|
||||||
-mkdir -p $(TARGET_MODULES_DIR)
|
|
||||||
|
|
||||||
$(KERNEL_IPKG):
|
|
||||||
rm -rf $(KERNEL_IDIR)
|
|
||||||
mkdir -p $(KERNEL_IDIR)/etc
|
|
||||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) $(ARCH)
|
|
||||||
if [ -f ./config/$(BOARD).modules ]; then \
|
|
||||||
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
|
||||||
fi
|
|
||||||
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
source: $(DL_DIR)/$(LINUX_SOURCE)
|
|
||||||
prepare: $(LINUX_DIR)/.configured
|
|
||||||
compile:
|
|
||||||
$(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
|
|
||||||
|
|
||||||
install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)/root*
|
|
||||||
cp -fpR $(BUILD_DIR)/root $(LINUX_BUILD_DIR)/
|
|
||||||
echo -e 'dest root /\noption offline_root $(LINUX_BUILD_DIR)/root' > $(LINUX_BUILD_DIR)/ipkg.conf
|
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
|
||||||
$(KPKG_MAKEOPTS) \
|
|
||||||
install
|
|
||||||
@{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true; } $(MAKE_TRACE)
|
|
||||||
|
|
||||||
mostlyclean:
|
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
|
|
||||||
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE_TRACE)
|
|
||||||
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
|
|
||||||
|
|
||||||
rebuild:
|
|
||||||
-$(MAKE) mostlyclean
|
|
||||||
if [ -f $(LINUX_KERNEL) ]; then \
|
|
||||||
$(MAKE) clean $(MAKE_TRACE); \
|
|
||||||
fi
|
|
||||||
$(MAKE) compile $(MAKE_TRACE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)
|
|
||||||
rm -f $(TARGETS)
|
|
|
@ -1,56 +1,3 @@
|
||||||
# $Id$
|
|
||||||
# Linux 2.6 kernel target for the OpenWRT project
|
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
|
||||||
include ../rules.mk
|
|
||||||
|
|
||||||
KERNEL:=2.6
|
|
||||||
LINUX_VERSION:=2.6.15
|
|
||||||
LINUX_KERNEL_MD5SUM:=cdf95e00f5111e31f78e1d97304d9522
|
|
||||||
LINUX_SITE=http://www.fi.kernel.org/pub/linux/kernel/v2.6 \
|
|
||||||
http://www.fr.kernel.org/pub/linux/kernel/v2.6 \
|
|
||||||
http://www.kernel.org/pub/linux/kernel/v2.6 \
|
|
||||||
http://www.de.kernel.org/pub/linux/kernel/v2.6
|
|
||||||
MODULES_SUBDIR:=lib/modules/$(LINUX_VERSION)
|
|
||||||
LINUX_KCONFIG:=./config/$(BOARD)
|
|
||||||
LINUX_BUILD_DIR:=$(BUILD_DIR)/linux-2.6-$(BOARD)
|
|
||||||
LINUX_TARGET_DIR:=$(LINUX_BUILD_DIR)/root
|
|
||||||
LINUX_KERNEL:=$(LINUX_BUILD_DIR)/vmlinux
|
|
||||||
LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
|
|
||||||
-e 's/mipsel/mips/' \
|
|
||||||
-e 's/powerpc/ppc/' \
|
|
||||||
-e 's/sh[234]/sh/' \
|
|
||||||
)
|
|
||||||
|
|
||||||
LINUX_SOURCE := linux-$(LINUX_VERSION).tar.bz2
|
|
||||||
LINUX_SOURCE_DIR := $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)
|
|
||||||
MODULES_DIR := $(LINUX_BUILD_DIR)/modules/$(MODULES_SUBDIR)
|
|
||||||
TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/lib/modules/$(LINUX_VERSION)
|
|
||||||
IPKG_KERNEL:=IPKG_TMP=$(BUILD_DIR)/tmp IPKG_INSTROOT=$(LINUX_TARGET_DIR) IPKG_CONF_DIR=$(LINUX_BUILD_DIR) $(SCRIPT_DIR)/ipkg -force-defaults -force-depends
|
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(LINUX_BUILD_DIR)/linux-modules
|
|
||||||
PKG_RELEASE := 1
|
|
||||||
|
|
||||||
KERNEL_IPKG:=$(LINUX_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)_$(ARCH).ipk
|
|
||||||
KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg
|
|
||||||
|
|
||||||
KPKG_MAKEOPTS:= IPKG="$(IPKG_KERNEL)" \
|
|
||||||
BOARD="$(BOARD)" \
|
|
||||||
TARGET_DIR="$(LINUX_TARGET_DIR)" \
|
|
||||||
BUILD_DIR="$(LINUX_BUILD_DIR)" \
|
|
||||||
KERNEL_DIR="$(LINUX_SOURCE_DIR)" \
|
|
||||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
|
||||||
KERNEL_RELEASE="$(PKG_RELEASE)"
|
|
||||||
|
|
||||||
include $(LINUX_KCONFIG)
|
|
||||||
|
|
||||||
INSTALL_TARGETS := $(KERNEL_IPKG)
|
|
||||||
TARGETS :=
|
|
||||||
|
|
||||||
ifeq ($(BOARD),x86)
|
|
||||||
include ./x86.mk
|
|
||||||
endif
|
|
||||||
|
|
||||||
include ../netfilter.mk
|
include ../netfilter.mk
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
|
@ -397,101 +344,3 @@ $(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
|
||||||
,CONFIG_BLUEZ))
|
,CONFIG_BLUEZ))
|
||||||
|
|
||||||
|
|
||||||
$(TARGETS): $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
|
||||||
mkdir -p $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(DL_DIR)/$(LINUX_SOURCE):
|
|
||||||
-mkdir -p $(DL_DIR)
|
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
|
||||||
-mkdir -p $(LINUX_BUILD_DIR)
|
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
rm -f $(LINUX_DIR)
|
|
||||||
ln -s $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
|
||||||
touch $(LINUX_DIR)/.unpacked
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
|
|
||||||
$(PATCH) $(LINUX_DIR) ./patches/generic $(MAKE_TRACE)
|
|
||||||
[ -d ./patches/$(BOARD) ] && $(PATCH) $(LINUX_DIR) ./patches/$(BOARD) $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.patched
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
|
||||||
-cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config
|
|
||||||
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.configured
|
|
||||||
|
|
||||||
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.configured
|
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
|
||||||
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE)
|
|
||||||
touch -c $(LINUX_KERNEL)
|
|
||||||
|
|
||||||
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)/modules
|
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules $(MAKE_TRACE)
|
|
||||||
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install $(MAKE_TRACE)
|
|
||||||
touch $(LINUX_DIR)/.modules_done
|
|
||||||
|
|
||||||
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
|
||||||
mkdir -p $(STAGING_DIR)/include
|
|
||||||
tar -ch -C $(LINUX_DIR)/include -f - linux | tar -xf - -C $(STAGING_DIR)/include/
|
|
||||||
tar -ch -C $(LINUX_DIR)/include -f - asm | tar -xf - -C $(STAGING_DIR)/include/
|
|
||||||
|
|
||||||
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
|
||||||
@mkdir -p $(STAMP_DIR)
|
|
||||||
@$(MAKE) $(TARGETS)
|
|
||||||
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(LINUX_DIR)
|
|
||||||
@$(TRACE) target/linux/package
|
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
|
||||||
$(KPKG_MAKEOPTS) \
|
|
||||||
compile
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(TARGET_MODULES_DIR):
|
|
||||||
-mkdir -p $(TARGET_MODULES_DIR)
|
|
||||||
|
|
||||||
$(KERNEL_IPKG):
|
|
||||||
rm -rf $(KERNEL_IDIR)
|
|
||||||
mkdir -p $(KERNEL_IDIR)/etc
|
|
||||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) $(ARCH)
|
|
||||||
if [ -f ./config/$(BOARD).modules ]; then \
|
|
||||||
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
|
||||||
fi
|
|
||||||
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
|
|
||||||
|
|
||||||
source: $(DL_DIR)/$(LINUX_SOURCE)
|
|
||||||
prepare: $(LINUX_DIR)/.configured
|
|
||||||
compile:
|
|
||||||
$(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
|
|
||||||
|
|
||||||
install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)/root*
|
|
||||||
cp -fpR $(BUILD_DIR)/root $(LINUX_BUILD_DIR)/
|
|
||||||
echo -e 'dest root /\noption offline_root $(LINUX_BUILD_DIR)/root' > $(LINUX_BUILD_DIR)/ipkg.conf
|
|
||||||
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
|
||||||
$(KPKG_MAKEOPTS) \
|
|
||||||
install
|
|
||||||
@{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true; } $(MAKE_TRACE)
|
|
||||||
|
|
||||||
mostlyclean:
|
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
|
||||||
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
|
|
||||||
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE_TRACE)
|
|
||||||
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
|
|
||||||
|
|
||||||
rebuild:
|
|
||||||
-$(MAKE) mostlyclean
|
|
||||||
if [ -f $(LINUX_KERNEL) ]; then \
|
|
||||||
$(MAKE) clean $(MAKE_TRACE); \
|
|
||||||
fi
|
|
||||||
$(MAKE) compile $(MAKE_TRACE)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f $(STAMP_DIR)/.linux-compile
|
|
||||||
rm -rf $(LINUX_BUILD_DIR)
|
|
||||||
rm -f $(TARGETS)
|
|
117
openwrt/target/linux/kernel.mk
Normal file
117
openwrt/target/linux/kernel.mk
Normal file
|
@ -0,0 +1,117 @@
|
||||||
|
LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2
|
||||||
|
LINUX_SITE=http://www.fi.kernel.org/pub/linux/kernel/v$(KERNEL) \
|
||||||
|
http://www.fr.kernel.org/pub/linux/kernel/v$(KERNEL) \
|
||||||
|
http://www.kernel.org/pub/linux/kernel/v$(KERNEL) \
|
||||||
|
http://www.de.kernel.org/pub/linux/kernel/v$(KERNEL)
|
||||||
|
|
||||||
|
KERNEL_IPKG:=$(LINUX_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE)_$(ARCH).ipk
|
||||||
|
KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg
|
||||||
|
|
||||||
|
$(TARGETS): $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(PACKAGE_DIR):
|
||||||
|
mkdir -p $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
$(DL_DIR)/$(LINUX_SOURCE):
|
||||||
|
-mkdir -p $(DL_DIR)
|
||||||
|
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(LINUX_SOURCE) $(LINUX_KERNEL_MD5SUM) $(LINUX_SITE) $(MAKE_TRACE)
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
|
-mkdir -p $(LINUX_BUILD_DIR)
|
||||||
|
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(LINUX_BUILD_DIR) $(TAR_OPTIONS) -
|
||||||
|
rm -f $(BUILD_DIR)/linux
|
||||||
|
ln -s $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
ifeq ($(KERNEL),2.4)
|
||||||
|
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
||||||
|
$(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" \
|
||||||
|
$(LINUX_DIR)/Makefile \
|
||||||
|
$(LINUX_DIR)/arch/*/Makefile
|
||||||
|
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
||||||
|
$(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) oldconfig include/linux/version.h $(MAKE_TRACE)
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
|
||||||
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(LINUX_KARCH) dep $(MAKE_TRACE)
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.depend_done
|
||||||
|
else
|
||||||
|
$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched
|
||||||
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(LINUX_KARCH) oldconfig $(MAKE_TRACE)
|
||||||
|
touch $@
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.configured
|
||||||
|
$(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(MAKE_TRACE)
|
||||||
|
|
||||||
|
$(LINUX_KERNEL): $(LINUX_DIR)/vmlinux
|
||||||
|
$(TARGET_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ $(MAKE_TRACE)
|
||||||
|
touch -c $(LINUX_KERNEL)
|
||||||
|
|
||||||
|
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
|
||||||
|
rm -rf $(LINUX_BUILD_DIR)/modules
|
||||||
|
$(MAKE) -C "$(LINUX_DIR)" CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(LINUX_KARCH) PATH="$(TARGET_PATH)" modules $(MAKE_TRACE)
|
||||||
|
$(MAKE) -C "$(LINUX_DIR)" CROSS_COMPILE="$(KERNEL_CROSS)" DEPMOD=true INSTALL_MOD_PATH=$(LINUX_BUILD_DIR)/modules modules_install $(MAKE_TRACE)
|
||||||
|
touch $(LINUX_DIR)/.modules_done
|
||||||
|
|
||||||
|
$(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured
|
||||||
|
mkdir -p $(STAGING_DIR)/include
|
||||||
|
tar -ch -C $(LINUX_DIR)/include -f - linux | tar -xf - -C $(STAGING_DIR)/include/
|
||||||
|
tar -ch -C $(LINUX_DIR)/include -f - asm | tar -xf - -C $(STAGING_DIR)/include/
|
||||||
|
|
||||||
|
$(STAMP_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done
|
||||||
|
@mkdir -p $(STAMP_DIR)
|
||||||
|
@$(MAKE) $(TARGETS)
|
||||||
|
ln -sf $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux
|
||||||
|
@$(TRACE) target/linux/package
|
||||||
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
|
$(KPKG_MAKEOPTS) \
|
||||||
|
compile
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
$(TARGET_MODULES_DIR):
|
||||||
|
-mkdir -p $(TARGET_MODULES_DIR)
|
||||||
|
|
||||||
|
$(KERNEL_IPKG):
|
||||||
|
rm -rf $(KERNEL_IDIR)
|
||||||
|
mkdir -p $(KERNEL_IDIR)/etc
|
||||||
|
$(SCRIPT_DIR)/make-ipkg-dir.sh $(KERNEL_IDIR) ../control/kernel.control $(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE) $(ARCH)
|
||||||
|
if [ -f ./config/$(BOARD).modules ]; then \
|
||||||
|
cp ./config/$(BOARD).modules $(KERNEL_IDIR)/etc/modules; \
|
||||||
|
fi
|
||||||
|
$(IPKG_BUILD) $(KERNEL_IDIR) $(LINUX_BUILD_DIR) $(MAKE_TRACE)
|
||||||
|
|
||||||
|
source: $(DL_DIR)/$(LINUX_SOURCE)
|
||||||
|
prepare: $(LINUX_DIR)/.configured
|
||||||
|
compile:
|
||||||
|
$(MAKE) $(STAMP_DIR)/.linux-compile $(MAKE_TRACE)
|
||||||
|
|
||||||
|
install: compile $(TARGET_MODULES_DIR) $(KERNEL_IPKG)
|
||||||
|
rm -rf $(LINUX_BUILD_DIR)/root*
|
||||||
|
cp -fpR $(BUILD_DIR)/root $(LINUX_BUILD_DIR)/
|
||||||
|
echo -e 'dest root /\noption offline_root $(LINUX_BUILD_DIR)/root' > $(LINUX_BUILD_DIR)/ipkg.conf
|
||||||
|
$(MAKE) -C $(TOPDIR)/target/linux/package \
|
||||||
|
$(KPKG_MAKEOPTS) \
|
||||||
|
install
|
||||||
|
@{ [ "$(INSTALL_TARGETS)" != "" ] && $(IPKG_KERNEL) install $(INSTALL_TARGETS) || true; } $(MAKE_TRACE)
|
||||||
|
|
||||||
|
mostlyclean:
|
||||||
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
|
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.modules_done
|
||||||
|
rm -f $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION)/.drivers-unpacked
|
||||||
|
$(MAKE) -C $(LINUX_BUILD_DIR)/linux-$(LINUX_VERSION) clean $(MAKE_TRACE)
|
||||||
|
rm -f $(LINUX_KERNEL) $(LINUX_IMAGE)
|
||||||
|
|
||||||
|
rebuild:
|
||||||
|
-$(MAKE) mostlyclean
|
||||||
|
if [ -f $(LINUX_KERNEL) ]; then \
|
||||||
|
$(MAKE) clean $(MAKE_TRACE); \
|
||||||
|
fi
|
||||||
|
$(MAKE) compile $(MAKE_TRACE)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(STAMP_DIR)/.linux-compile
|
||||||
|
rm -rf $(LINUX_BUILD_DIR)
|
||||||
|
rm -f $(TARGETS)
|
|
@ -1,15 +0,0 @@
|
||||||
# $Id$
|
|
||||||
|
|
||||||
# x86 specific kmod packages
|
|
||||||
|
|
||||||
$(eval $(call KMOD_template,WD1100,wd1100,\
|
|
||||||
$(MODULES_DIR)/kernel/drivers/char/wd1100.o \
|
|
||||||
,CONFIG_WD1100))
|
|
||||||
|
|
||||||
|
|
||||||
$(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux
|
|
||||||
$(MAKE) -C $(LINUX_DIR) TOPDIR=$(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage $(MAKE_TRACE)
|
|
||||||
cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
compile: $(LINUX_BUILD_DIR)/bzImage
|
|
|
@ -1,10 +0,0 @@
|
||||||
# $Id$
|
|
||||||
|
|
||||||
# x86 specific kmod packages
|
|
||||||
|
|
||||||
$(LINUX_BUILD_DIR)/bzImage: $(LINUX_DIR)/vmlinux
|
|
||||||
$(MAKE) -C $(LINUX_DIR) V=1 CROSS_COMPILE=$(TARGET_CROSS) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) bzImage $(MAKE_TRACE)
|
|
||||||
cp -f $(LINUX_DIR)/arch/i386/boot/bzImage $@
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
compile: $(LINUX_BUILD_DIR)/bzImage
|
|
|
@ -1,11 +1,9 @@
|
||||||
# Main makefile for the packages
|
# Main makefile for the packages
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
include ../rules.mk
|
||||||
|
|
||||||
ifneq ($(BOARD),ar7)
|
package-y += base-files
|
||||||
ifneq ($(BOARD)-$(KERNEL),x86-2.6)
|
|
||||||
package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
|
package-$(BR2_PACKAGE_KMOD_ALSA) += alsa
|
||||||
endif
|
|
||||||
endif
|
|
||||||
package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
|
package-$(BR2_PACKAGE_KMOD_FUSE) += fuse
|
||||||
package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
|
package-$(BR2_PACKAGE_KMOD_HOSTAP) += hostap
|
||||||
package-$(BR2_PACKAGE_KMOD_BCM43XX_DSCAPE) += bcm43xx-dscape
|
package-$(BR2_PACKAGE_KMOD_BCM43XX_DSCAPE) += bcm43xx-dscape
|
||||||
|
@ -17,14 +15,11 @@ package-$(BR2_PACKAGE_KMOD_SHFS) += shfs
|
||||||
package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
|
package-$(BR2_PACKAGE_KMOD_SPCA5XX) += spca5xx
|
||||||
package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
|
package-$(BR2_PACKAGE_KMOD_SWITCH) += switch
|
||||||
package-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
|
package-$(BR2_PACKAGE_KMOD_UEAGLE_ATM) += ueagle-atm
|
||||||
package-y += base-files
|
|
||||||
bcm43xx-dscape-compile: ieee80211-dscape-compile
|
|
||||||
|
|
||||||
ifeq ($(BOARD)-$(KERNEL),brcm-2.4)
|
|
||||||
package-$(BR2_PACKAGE_KMOD_DIAG) += diag
|
package-$(BR2_PACKAGE_KMOD_DIAG) += diag
|
||||||
package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
|
package-$(BR2_PACKAGE_KMOD_WLCOMPAT) += wlcompat
|
||||||
|
|
||||||
|
bcm43xx-dscape-compile: ieee80211-dscape-compile
|
||||||
wlcompat-compile: base-files-compile
|
wlcompat-compile: base-files-compile
|
||||||
endif
|
|
||||||
|
|
||||||
all: compile install
|
all: compile install
|
||||||
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
clean: $(patsubst %,%-clean,$(package-) $(package-y) $(package-m))
|
||||||
|
@ -32,20 +27,12 @@ prepare: $(patsubst %,%-prepare,$(package-y) $(package-m))
|
||||||
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
compile: $(patsubst %,%-compile,$(package-y) $(package-m))
|
||||||
install: $(patsubst %,%-install,$(package-y))
|
install: $(patsubst %,%-install,$(package-y))
|
||||||
|
|
||||||
MAKEOPTS:= BOARD="$(BOARD)" \
|
KPKG_MAKEOPTS += BUILD_DIR="$(LINUX_BUILD_DIR)"
|
||||||
KERNEL="$(KERNEL)" \
|
|
||||||
IPKG="$(IPKG)" \
|
|
||||||
TARGET_DIR="$(TARGET_DIR)" \
|
|
||||||
BUILD_DIR="$(BUILD_DIR)" \
|
|
||||||
KERNEL_DIR="$(KERNEL_DIR)" \
|
|
||||||
LINUX_VERSION="$(LINUX_VERSION)" \
|
|
||||||
KERNEL_RELEASE="$(KERNEL_RELEASE)"
|
|
||||||
|
|
||||||
|
|
||||||
%-prepare:
|
%-prepare:
|
||||||
@$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
|
@$(START_TRACE) "target/linux/package/$(patsubst %-prepare,%,$@)/prepare: "
|
||||||
$(MAKE) -C $(patsubst %-prepare,%,$@) \
|
$(MAKE) -C $(patsubst %-prepare,%,$@) \
|
||||||
$(MAKEOPTS) \
|
$(KPKG_MAKEOPTS) \
|
||||||
prepare
|
prepare
|
||||||
@$(CMD_TRACE) " done"
|
@$(CMD_TRACE) " done"
|
||||||
@$(END_TRACE)
|
@$(END_TRACE)
|
||||||
|
@ -53,7 +40,7 @@ MAKEOPTS:= BOARD="$(BOARD)" \
|
||||||
%-compile:
|
%-compile:
|
||||||
@$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
|
@$(START_TRACE) "target/linux/package/$(patsubst %-compile,%,$@)-compile: "
|
||||||
$(MAKE) -C $(patsubst %-compile,%,$@) \
|
$(MAKE) -C $(patsubst %-compile,%,$@) \
|
||||||
$(MAKEOPTS) \
|
$(KPKG_MAKEOPTS) \
|
||||||
compile
|
compile
|
||||||
@$(CMD_TRACE) " done"
|
@$(CMD_TRACE) " done"
|
||||||
@$(END_TRACE)
|
@$(END_TRACE)
|
||||||
|
@ -61,7 +48,7 @@ MAKEOPTS:= BOARD="$(BOARD)" \
|
||||||
%-install:
|
%-install:
|
||||||
@$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
|
@$(START_TRACE) "target/linux/package/$(patsubst %-install,%,$@)-install: "
|
||||||
$(MAKE) -C $(patsubst %-install,%,$@) \
|
$(MAKE) -C $(patsubst %-install,%,$@) \
|
||||||
$(MAKEOPTS) \
|
$(KPKG_MAKEOPTS) \
|
||||||
install
|
install
|
||||||
@$(CMD_TRACE) " done"
|
@$(CMD_TRACE) " done"
|
||||||
@$(END_TRACE)
|
@$(END_TRACE)
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
config BR2_PACKAGE_KMOD_ALSA
|
config BR2_PACKAGE_KMOD_ALSA
|
||||||
prompt "kmod-alsa......................... Alsa Sound Drivers"
|
prompt "kmod-alsa......................... Alsa Sound Drivers"
|
||||||
tristate
|
tristate
|
||||||
default m if CONFIG_DEVEL
|
|
||||||
depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_X86 || BR2_LINUX_2_6_BRCM
|
depends BR2_LINUX_2_4_X86 || BR2_LINUX_2_4_BRCM || BR2_LINUX_2_6_X86 || BR2_LINUX_2_6_BRCM
|
||||||
depends BR2_PACKAGE_KMOD_USB_CONTROLLER
|
depends BR2_PACKAGE_KMOD_USB_CONTROLLER
|
||||||
select BR2_PACKAGE_KMOD_SOUNDCORE
|
select BR2_PACKAGE_KMOD_SOUNDCORE
|
||||||
|
default m if CONFIG_DEVEL
|
||||||
help
|
help
|
||||||
Alsa Drivers for USB Soundcards
|
Alsa Drivers for USB Soundcards
|
||||||
|
|
|
@ -14,29 +14,25 @@ PKG_CAT:=bzcat
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
ifeq ($(KERNEL_DIR),)
|
|
||||||
KERNEL_DIR:=$(LINUX_DIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
ifeq ($(LINUX_KARCH),i386)
|
ifeq ($(LINUX_KARCH),i386)
|
||||||
KERNEL_C_INCS:= -I$(KERNEL_DIR)/include/asm-i386/mach-generic
|
KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-i386/mach-generic
|
||||||
KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
|
KERNEL_C_OPTS:= -Os -mpreferred-stack-boundary=2 -march=i486 -fno-unit-at-a-time
|
||||||
endif
|
endif
|
||||||
ifeq ($(LINUX_KARCH),mips)
|
ifeq ($(LINUX_KARCH),mips)
|
||||||
KERNEL_C_INCS:= -I$(KERNEL_DIR)/include/asm-mips/mach-generic
|
KERNEL_C_INCS:= -I$(LINUX_DIR)/include/asm-mips/mach-generic
|
||||||
KERNEL_C_OPTS:= -Os -G 0 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
|
KERNEL_C_OPTS:= -Os -G 0 -mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(call PKG_template,KMOD_ALSA,kmod-alsa,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel-$(LINUX_VERSION)-$(BOARD) ($(KERNEL_RELEASE))))
|
$(eval $(call PKG_template,KMOD_ALSA,kmod-alsa,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel-$(LINUX_VERSION)-$(BOARD) ($(LINUX_RELEASE))))
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured:
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
(cd $(PKG_BUILD_DIR); \
|
(cd $(PKG_BUILD_DIR); \
|
||||||
CFLAGS="$(KERNEL_C_INCS)" \
|
CFLAGS="$(KERNEL_C_INCS)" \
|
||||||
./configure \
|
./configure \
|
||||||
--with-build=$(KERNEL_DIR) \
|
--with-build=$(LINUX_DIR) \
|
||||||
--with-kernel=$(KERNEL_DIR) \
|
--with-kernel=$(LINUX_DIR) \
|
||||||
--with-cross=$(KERNEL_CROSS) \
|
--with-cross=$(KERNEL_CROSS) \
|
||||||
--with-redhat=no \
|
--with-redhat=no \
|
||||||
--with-suse=no \
|
--with-suse=no \
|
||||||
|
|
|
@ -19,12 +19,7 @@ FIRMWARE_BLOB_MD5SUM := e08665c5c5b66beb9c3b2dd54aa80cb3
|
||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
$(eval $(call PKG_template,KMOD_BCM43XX_DSCAPE,kmod-$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)+0.$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
|
$(eval $(call PKG_template,KMOD_BCM43XX_DSCAPE,kmod-$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)+0.$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
|
||||||
|
|
||||||
ifeq ($(KERNEL_DIR),)
|
|
||||||
KERNEL_DIR:=$(LINUX_DIR)
|
|
||||||
endif
|
|
||||||
KERNEL_VERSION=$(shell echo "$(LINUX_VERSION)" | cut -d. -f1,2)
|
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.configured:
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
touch $@
|
touch $@
|
||||||
|
@ -38,12 +33,12 @@ $(PKG_BUILD_DIR)/fwcutter/.built:
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/fwcutter/.built
|
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/fwcutter/.built
|
||||||
$(MAKE) -C "$(KERNEL_DIR)" \
|
$(MAKE) -C "$(LINUX_DIR)" \
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
ARCH="$(LINUX_KARCH)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
PATH="$(TARGET_PATH)" \
|
PATH="$(TARGET_PATH)" \
|
||||||
SUBDIRS="$(PKG_BUILD_DIR)" \
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
||||||
LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/ieee80211-dscape -I$(KERNEL_DIR)/include -DBCM47XX=1" \
|
LINUXINCLUDE="-I$(STAGING_DIR)/usr/include/ieee80211-dscape -I$(LINUX_DIR)/include -DBCM47XX=1" \
|
||||||
modules
|
modules
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
config BR2_PACKAGE_KMOD_DIAG
|
config BR2_PACKAGE_KMOD_DIAG
|
||||||
prompt "kmod-diag......................... Driver for router LEDs and Buttons"
|
prompt "kmod-diag......................... Driver for router LEDs and Buttons"
|
||||||
tristate
|
tristate
|
||||||
default y if BR2_LINUX_2_4_BRCM
|
depends BR2_LINUX_2_4_BRCM
|
||||||
default m if CONFIG_DEVEL
|
default m if CONFIG_DEVEL
|
||||||
default n
|
|
||||||
help
|
help
|
||||||
Driver for router LEDs and Buttons
|
Driver for router LEDs and Buttons
|
||||||
|
|
|
@ -10,16 +10,12 @@ PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
include $(TOPDIR)/package/rules.mk
|
include $(TOPDIR)/package/rules.mk
|
||||||
|
|
||||||
$(eval $(call PKG_template,KMOD_DIAG,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
|
$(eval $(call PKG_template,KMOD_DIAG,$(PKG_NAME),$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
|
||||||
|
|
||||||
ifeq ($(KERNEL_DIR),)
|
|
||||||
KERNEL_DIR:=$(LINUX_DIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
|
DIAG_FLAGS:=$(TARGET_CFLAGS) -D__KERNEL__ -fno-strict-aliasing -fno-common -fomit-frame-pointer -G 0 \
|
||||||
-mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
|
-mno-abicalls -fno-pic -finline-limit=100000 -mabi=32 -march=mips32 -Wa,-32 -Wa,-march=mips32 \
|
||||||
-Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
|
-Wa,-mips32 -Wa,--trap -Wstrict-prototypes -Wno-trigraphs -DMODULE -mlong-calls -fno-common -I. -I linux-2.4 -nostdinc \
|
||||||
-iwithprefix include -I$(KERNEL_DIR)/include -I$(KERNEL_DIR)/include/asm/gcc -c -I$(KERNEL_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
|
-iwithprefix include -I$(LINUX_DIR)/include -I$(LINUX_DIR)/include/asm/gcc -c -I$(LINUX_DIR)/arch/mips/bcm947xx/include -DBCMDRIVER
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.prepared:
|
$(PKG_BUILD_DIR)/.prepared:
|
||||||
mkdir -p $(PKG_BUILD_DIR)
|
mkdir -p $(PKG_BUILD_DIR)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue