WORK = $(PWD)/work
CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools
-KERNEL_VERSION = 2.6.25-omap850_20100630
+KERNEL_VERSION = 2.6.25-omap850_20110407
.PHONY: all clean image modules map 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
+$(WORK)/linux-$(KERNEL_VERSION): $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(WORK)/linux-$(KERNEL_VERSION)-make3.82.patch
tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
cp -v $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config
+ patch -p0 -i $(WORK)/linux-$(KERNEL_VERSION)-make3.82.patch
touch $(WORK)/linux-$(KERNEL_VERSION)
$(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)
cd $(WORK)/linux-$(KERNEL_VERSION) && \
export PATH=$(CROSSTOOLS)/bin:$$PATH && \
export LD_LIBRARY_PATH=$(CROSSTOOLS)/lib:$$LD_LIBRARY_PATH && \
+ make ARCH=arm oldconfig && \
make ARCH=arm CROSS_COMPILE=$(TARGET)- zImage
cp -v $(WORK)/linux-$(KERNEL_VERSION)/arch/arm/boot/zImage $(WORK)/zImage-$(KERNEL_VERSION)
touch $(WORK)/zImage-$(KERNEL_VERSION)