WORK = $(PWD)/work
CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools
-GIT_REPOSITORY = git://wing-linux.git.sourceforge.net/gitroot/wing-linux/kernel
-KERNEL_VERSION = 2.6.25-omap850
+KERNEL_VERSION = 2.6.25-omap850_20100630
.PHONY: all clean image modules map config
distclean: clean image-distclean modules-distclean map-distclean
-$(WORK)/linux-$(KERNEL_VERSION): config-$(KERNEL_VERSION)
- git clone $(GIT_REPOSITORY) $(WORK)/linux-$(KERNEL_VERSION)
- cd $(WORK)/linux-$(KERNEL_VERSION) && \
- make mrproper && \
- cp -v $(TOPDIR)/config-$(KERNEL_VERSION) .config && \
+$(WORK)/linux-$(KERNEL_VERSION).tar.bz2:
+ wget -P $(WORK) http://crux-arm.nu/files/distfiles/linux-$(KERNEL_VERSION).tar.bz2
+
+$(WORK)/linux-$(KERNEL_VERSION): $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+ tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+ cp -v $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
touch $(WORK)/linux-$(KERNEL_VERSION)
$(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)