updated to support asus & buffalo
[openwrt.git] / obsolete-buildroot / make / sched-mod.mk
1 ######################################################
2 #
3 # A really simple example that doesn't actually build anything
4 # It'll fetch a package from another repository for inclusion
5 # into our final list
6 # Using one from the openwrt home as an example
7 #
8 ######################################################
9
10
11 SCHEDM=sched-modules
12
13 SCHEDM_TARGET=sched-modules_2.4.20_mipsel.ipk
14 SCHEDM_SITE=http://openwrt.rozeware.bc.ca/ipkg-dev
15 SCHEDM_SOURCE=openwrt-kmodules.tar.bz2
16 SCHEDMIPK_SRC=sched-modules-ipk.tgz
17
18
19 sched-modules-ipk: $(BUILD_DIR)/$(SCHEDM_TARGET)
20
21
22 # fetch the ipkg rules stuff
23 $(DL_DIR)/$(SCHEDMIPK_SRC) :
24 $(WGET) -P $(DL_DIR) $(SCHEDM_SITE)/$(SCHEDMIPK_SRC)
25
26 #make sure we have a directory to extract to
27 $(BUILD_DIR)/$(SCHEDM) :
28 mkdir $(BUILD_DIR)/$(SCHEDM)
29
30 #extract the archive
31 $(BUILD_DIR)/$(SCHEDM)/modules/2.4.20/net/sched/cls_fw.o : $(BUILD_DIR)/$(SCHEDM) $(SCHEDM_SOURCE)
32 tar -C $(BUILD_DIR)/$(SCHEDM) -jxf $(SCHEDM_SOURCE)
33
34 # extract the ipkg overlay
35 $(BUILD_DIR)/$(SCHEDM)/ipkg/control : $(DL_DIR)/$(SCHEDMIPK_SRC) $(BUILD_DIR)/$(SCHEDM)/modules/2.4.20/net/sched/cls_fw.o
36 tar -C $(BUILD_DIR)/$(SCHEDM) -zxf $(DL_DIR)/$(SCHEDMIPK_SRC)
37
38 # now that we have it all in place, just build it
39 $(BUILD_DIR)/$(SCHEDM_TARGET): $(BUILD_DIR)/$(SCHEDM)/ipkg/control $(BUILD_DIR)/$(SCHEDM)/modules/2.4.20/net/sched/cls_fw.o
40 cd $(BUILD_DIR)/$(SCHEDM); $(IPKG_BUILDPACKAGE)
41
42
43
44
This page took 0.054593 seconds and 5 git commands to generate.