CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added code to package kernel modules
authorJose V Beneyto <sepen@crux.nu>
Mon, 15 Oct 2012 17:43:57 +0000 (17:43 +0000)
committerJose V Beneyto <sepen@crux.nu>
Mon, 15 Oct 2012 17:43:57 +0000 (17:43 +0000)
Makefile

index eae1be3047e4c96b42b32a315532fc2a8b748a0e..9684757998b8b92b5f70525d70de4c3a53550215 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -54,10 +54,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) && \
+               tar cvJf modules-$(KERNEL_VERSION).tar.xz modules-$(KERNEL_VERSION)
+       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