X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=235bb51a8405862b0f49a4167944a3aedfefaafd;hb=164203ae18368ed27e66d2f9ab3cf94e2a698528;hp=34cbfd2892a274d38a103ab8cb9adb5c209d2e29;hpb=1e5913ab5a4a3ca545d723a733d33adc5c35e3b1;p=kernel%2Fgp32.git diff --git a/Makefile b/Makefile index 34cbfd2..235bb51 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ TARGET = arm-unknown-linux-gnu TOPDIR = $(shell pwd) -WORK = $(PWD)/work +WORK = $(TOPDIR)/work CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools -KERNEL_VERSION = 2.6.16 +KERNEL_VERSION = 2.6.16.60 .PHONY: all clean image modules map config @@ -22,8 +22,10 @@ distclean: clean image-distclean modules-distclean map-distclean $(WORK)/linux-$(KERNEL_VERSION).tar.bz2: wget -P $(WORK) ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$(KERNEL_VERSION).tar.bz2 -$(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 +$(WORK)/linux-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 $(WORK)/linux-$(KERNEL_VERSION)-gp32.patch tar -C $(WORK) -xvjf $(WORK)/linux-$(KERNEL_VERSION).tar.bz2 + cd $(WORK)/linux-$(KERNEL_VERSION) && \ + patch -p1 -i $(WORK)/linux-$(KERNEL_VERSION)-gp32.patch cp -v $(TOPDIR)/config-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION)/.config touch $(WORK)/linux-$(KERNEL_VERSION)