From: Jose V Beneyto Date: Wed, 24 Oct 2012 14:58:27 +0000 (+0000) Subject: Added code to package kernel modules X-Git-Url: http://gitweb/?a=commitdiff_plain;h=5e0d2bd5ba435bd873e148c3539d219f2bc116d0;p=kernel%2Fomap850.git Added code to package kernel modules --- diff --git a/Makefile b/Makefile index d512534..767485d 100644 --- 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