change the build order in target/linux so that it's possible to link the kernel with...
[openwrt.git] / openwrt / target / linux / ar7-2.4 / Makefile
1 include $(TOPDIR)/rules.mk
2
3 LINUX_VERSION:=2.4.32
4 LINUX_RELEASE:=1
5 LINUX_KERNEL_MD5SUM:=38f4d0830e95a20f4bfed17622d5557c
6
7 include ../rules.mk
8 include ./config
9
10 ATM_FIRMWARE_VERSION:=0.4
11 ATM_FIRMWARE_DIR=sangam-atm-firmware-$(ATM_FIRMWARE_VERSION)
12
13 $(eval $(call KMOD_template,SANGAM_ATM_A,sangam-atm-annex-a,\
14 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
15 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
16 cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_a.bin $$(I_SANGAM_ATM_A)/lib/modules/ar0700xx.bin \
17 ))
18
19 $(eval $(call KMOD_template,SANGAM_ATM_B,sangam-atm-annex-b,\
20 $(MODULES_DIR)/kernel/drivers/atm/tiatm.o \
21 ,CONFIG_MIPS_SANGAM_ATM,kmod-atm,60,tiatm, \
22 cp $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)/ar0700xx_b.bin $$(I_SANGAM_ATM_B)/lib/modules/ar0700xx.bin \
23 ))
24
25 $(eval $(call KMOD_template,CPMAC,cpmac,\
26 $(MODULES_DIR)/kernel/drivers/net/avalanche_cpmac/avalanche_cpmac.o \
27 ,CONFIG_MIPS_AVALANCHE_CPMAC,,10,avalanche_cpmac))
28
29 include ../generic-$(KERNEL)/modules.mk
30 include ../kernel.mk
31
32
33 $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked
34 [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE)
35 [ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE)
36 @cp config $(LINUX_DIR)/.config
37 touch $@
38
39
40 ###############################################
41 # ATM firmware for the DSL modem
42 ###############################################
43
44 DOWNLOAD_SITE=http://openwrt.org/downloads/sources
45 # extracted from netgear DG834B V1.0.5 GPL release
46 ATM_FIRMWARE_FILE=$(ATM_FIRMWARE_DIR).tar.gz
47 ATM_FIRMWARE_MD5SUM=8bfcb31109796502d66b11baaeb2fba6
48
49 $(DL_DIR)/$(ATM_FIRMWARE_FILE):
50 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(ATM_FIRMWARE_FILE) $(ATM_FIRMWARE_MD5SUM) $(DOWNLOAD_SITE) $(MAKE_TRACE)
51
52 $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(ATM_FIRMWARE_FILE)
53 $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.drivers-unpacked
54 $(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.drivers-unpacked
55
56 $(LINUX_DIR)/.drivers-unpacked: $(LINUX_DIR)/.unpacked
57 -mkdir -p $(BUILD_DIR)
58 zcat $(DL_DIR)/$(ATM_FIRMWARE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
59 touch $@
60
61 linux-dirclean: drivers-clean
62
63 drivers-clean:
64 rm -rf $(BUILD_DIR)/$(ATM_FIRMWARE_DIR)
65
66
This page took 0.049173 seconds and 5 git commands to generate.