CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added code to package kernel modules and code to override the user@host string displa...
authorVictor Martinez <pitillo@ono.com>
Sun, 21 Oct 2012 10:55:55 +0000 (10:55 +0000)
committerVictor Martinez <pitillo@ono.com>
Sun, 21 Oct 2012 10:55:55 +0000 (10:55 +0000)
Makefile

index cee07f0d0c1759576ef8d142ea04793bd1771dea..6245e8c264ff2066e55db705c86bbae47443a227 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ $(WORK)/linux-$(KERNEL_VERSION).tar.bz2:
 
 $(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(PWD)/config-$(KERNEL_VERSION)
        tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+       sed -e 's|LINUX_COMPILE_BY=.*|LINUX_COMPILE_BY=devel|' -e 's|LINUX_COMPILE_HOST=.*|LINUX_COMPILE_HOST=crux-arm.nu|' -i $(WORK)/linux-$(KERNEL_VERSION)/scripts/mkcompile_h
        cp -v $(PWD)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
        touch $(WORK)/linux-$(KERNEL_VERSION)
 
@@ -61,10 +62,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