CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added code to package kernel modules 2.7 2.8
authorJose V Beneyto <sepen@crux.nu>
Wed, 24 Oct 2012 14:58:27 +0000 (14:58 +0000)
committerJose V Beneyto <sepen@crux.nu>
Wed, 24 Oct 2012 14:58:27 +0000 (14:58 +0000)
Makefile

index d512534c40efb4de6d8592d72c84702863b39fd6..767485d3b3b621dd41bdc29f50704e00899ca811 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -53,10 +53,15 @@ $(WORK)/modules-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)
        rm -f $(WORK)/modules-$(KERNEL_VERSION)/lib/modules/$(KERNEL_VERSION)/{source,build}
        touch $(WORK)/modules-$(KERNEL_VERSION)
 
-modules: $(WORK)/modules-$(KERNEL_VERSION)
+$(WORK)/modules-$(KERNEL_VERSION).tar.xz: $(WORK)/modules-$(KERNEL_VERSION)
+       cd $(WORK)/modules-$(KERNEL_VERSION) && \
+               tar cvJf $(WORK)/modules-$(KERNEL_VERSION).tar.xz *
+       touch $(WORK)/modules-$(KERNEL_VERSION).tar.xz
+
+modules: $(WORK)/modules-$(KERNEL_VERSION).tar.xz
 
 modules-clean:
-       rm -vrf $(WORK)/modules-$(KERNEL_VERSION)
+       rm -vrf $(WORK)/modules-$(KERNEL_VERSION) $(WORK)/modules-$(KERNEL_VERSION).tar.xz
 
 modules-distclean: modules-clean