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