1 ######################################################
3 # A really simple example that doesn't actually build anything
4 # It'll fetch a package from another repository for inclusion
6 # Using one from the openwrt home as an example
8 ######################################################
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
19 sched-modules-ipk
: $(BUILD_DIR
)/$(SCHEDM_TARGET
)
22 # fetch the ipkg rules stuff
23 $(DL_DIR
)/$(SCHEDMIPK_SRC
) :
24 $(WGET
) -P
$(DL_DIR
) $(SCHEDM_SITE
)/$(SCHEDMIPK_SRC
)
26 #make sure we have a directory to extract to
27 $(BUILD_DIR
)/$(SCHEDM
) :
28 mkdir
$(BUILD_DIR
)/$(SCHEDM
)
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
)
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
)
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
)
This page took 0.042862 seconds and 5 git commands to generate.