blob: da46620f1d3cffaaf9fe3b74836f247be84d7f22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$(eval $(call import.MODULE.rules,PKG))
###############################################################################
.PHONY: pkg.create
pkg.create:: $(PKG.src.tar.bz2)
pkg.createx:: pkg.create $(PKG.src-contrib.tar.bz2)
pkg.clean:
$(RM.exe) -fr $(STAGE.out/)
$(RM.exe) -fr $(PKG.out/)
$(PKG.src.tar.bz2): | $(dir $(PKG.src.tar.bz2))
$(PKG.src.tar.bz2): | $(STAGE.out.src/)
$(TAR.exe) cjf $@ -C $(STAGE.out.src/) $(PKG.basename)
$(STAGE.out.src/):
svn export -r$(HB.repo.rev) $(HB.repo.url) $@/$(PKG.basename)
sed 's/\(self.rev.*=.*\)0/\1$(HB.repo.rev)/' \
$@/$(PKG.basename)/make/configure.py > $@/$(PKG.basename)/make/configure.py.tmp
$(MV.exe) $@/$(PKG.basename)/make/configure.py.tmp $@/$(PKG.basename)/make/configure.py
$(PKG.src-contrib.tar.bz2):
$(TAR.exe) cjf $@ -C $(CONTRIB.download/) \
$(foreach f,$(MODULES.NAMES),$(notdir $($f.FETCH.tar)))
###############################################################################
## include optional platform packaging
-include $(SRC/)pkg/$(BUILD.system)/module.rules
|