diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-20 09:45:24 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-20 09:45:24 +0000 |
commit | cb330046570f2969928fdd624f5a1e14be38802c (patch) | |
tree | b75a9a3689df8a85038f4eff79684ca447a2292f /alpine.mk | |
parent | ec6a945d47f4cf97d98ccf6fc1781cf578667264 (diff) | |
download | abuild-cb330046570f2969928fdd624f5a1e14be38802c.tar.gz abuild-cb330046570f2969928fdd624f5a1e14be38802c.tar.bz2 abuild-cb330046570f2969928fdd624f5a1e14be38802c.tar.xz abuild-cb330046570f2969928fdd624f5a1e14be38802c.zip |
alpine.mk: added xtables-addons
Diffstat (limited to 'alpine.mk')
-rwxr-xr-x | alpine.mk | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -30,6 +30,10 @@ KERNEL_PKGNAME ?= linux-$(KERNEL_FLAVOR) KERNEL_NAME := $(KERNEL_FLAVOR) KERNEL_APK := $(call find_apk,$(KERNEL_PKGNAME)) MODULE_APK := $(subst /$(KERNEL_PKGNAME)-,/$(KERNEL_PKGNAME)-mod-,$(KERNEL_APK)) + +XTABLES_ADDONS_APK:= $(subst xtables-addons,xtables-addons-$(KERNEL_FLAVOR),$(call find_apk,xtables-addons)) +MOD_APKS := $(MODULE_APK) $(XTABLES_ADDONS_APK) + KERNEL := $(word 3,$(subst -, ,$(notdir $(KERNEL_APK))))-$(word 2,$(subst -, ,$(notdir $(KERNEL_APK)))) ALPINEBASELAYOUT_APK := $(call find_apk,alpine-baselayout) @@ -89,6 +93,8 @@ $(REPOS_DIRSTAMP): $(SOURCE_APKBUILDS) @buildrepo -p -a $(APORTS_DIR) -d $(REPOS_DIR) $(REPOS) @touch $@ +%.apk: $(REPOS_DIRSTAMP) + # # Modloop # @@ -98,11 +104,13 @@ MODLOOP_DIRSTAMP := $(DESTDIR)/stamp.modloop modloop: $(MODLOOP) -$(MODLOOP_DIRSTAMP): $(REPOS_DIRSTAMP) $(MODULE_APK) - @echo "==> modloop: prepare $(KERNEL) modules $(notdir $(MODULE_APK))" +$(MODLOOP_DIRSTAMP): $(REPOS_DIRSTAMP) $(MOD_APKS) @rm -rf $(MODLOOP_DIR) @mkdir -p $(MODLOOP_DIR)/lib/modules/ - @tar -C $(MODLOOP_DIR) -xzf $(MODULE_APK) + @for i in $(MOD_APKS); do \ + echo "==> modloop: prepare modules $$i";\ + tar -C $(MODLOOP_DIR) -xzf "$$i"; \ + done @rm -rf $(addprefix $(MODLOOP_DIR)/lib/modules/*/, source build) @depmod $(KERNEL) -b $(MODLOOP_DIR) @touch $(MODLOOP_DIRSTAMP) |