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)
committerVictor Martinez <pitillo@ono.com>
Wed, 17 Oct 2012 17:41:02 +0000 (17:41 +0000)
Makefile

index f05f578b05f049be0cc273850068ce162aafd6d0..7ba9ee643bcec73a260a9e4b19aa36c04a15c41d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,10 +52,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