X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=b9e15874f68e3485a6446ef80156661cce6a1453;hb=e744a3f17f456494e25803e0a2258aa593bfd503;hp=eae1be3047e4c96b42b32a315532fc2a8b748a0e;hpb=7928605d97455eae56de1ba3c8b08b3afec99466;p=kernel%2Fefikamx.git

diff --git a/Makefile b/Makefile
index eae1be3..b9e1587 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ PWD = $(shell pwd)
 WORK = $(PWD)/work
 CROSSTOOLS = $(PWD)/../../toolchain/crosstools
 
-KERNEL_VERSION = 2.6.31.14.27-efikamx_20111026
+KERNEL_VERSION = 2.6.31.14.27-efikamx_20130723
 
 .PHONY: all clean image modules map config
 
@@ -18,13 +18,14 @@ clean: image-clean modules-clean map-clean
 
 distclean: clean image-distclean modules-distclean map-distclean
 
-$(WORK)/linux-$(KERNEL_VERSION).tar.bz2:
-	wget -P $(WORK) http://crux-arm.nu/files/distfiles/efikamx/linux-$(KERNEL_VERSION).tar.bz2
+$(WORK)/linux-$(KERNEL_VERSION).tar.xz:
+	wget -P $(WORK) http://crux-arm.nu/files/distfiles/efikamx/linux-$(KERNEL_VERSION).tar.xz
 
-$(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(PWD)/config-$(KERNEL_VERSION)
-	tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+$(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.xz $(PWD)/config-$(KERNEL_VERSION)
+	tar -C $(WORK) -xvf $(WORK)/linux-$(KERNEL_VERSION).tar.xz
 	cd $(WORK) && \
-		patch -p1 -i $(WORK)/Makefile_arm_unaligned.diff
+		sed -e 's|`whoami`|devel|' -e 's|`hostname .*`|crux-arm.nu|' -i linux-$(KERNEL_VERSION)/scripts/mkcompile_h && \
+		sed 's|rt3070.bin rt2870.bin||g' -i linux-$(KERNEL_VERSION)/firmware/Makefile
 	cp -v $(PWD)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
 	touch $(WORK)/linux-$(KERNEL_VERSION)
 
@@ -43,7 +44,7 @@ image-clean:
 	rm -vf $(WORK)/zImage-$(KERNEL_VERSION)
 
 image-distclean: image-clean
-	rm -vrf $(WORK)/linux-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+	rm -vrf $(WORK)/linux-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.xz
 
 $(WORK)/modules-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)
 	cd $(WORK)/linux-$(KERNEL_VERSION) && \
@@ -54,10 +55,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