From 9a5dda3baa0049bbecdc608ddf0353acd9cdd583 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Mon, 15 Oct 2012 17:58:21 +0000 Subject: [PATCH] Added code to package kernel modules --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3445336..556593c 100644 --- 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 -- 2.26.2