X-Git-Url: http://gitweb/?a=blobdiff_plain;f=Makefile;h=4157e79eded93db132b1f51a4d41b6c285db5cff;hb=4041706753b8cf1aee52da91407f8408d395be96;hp=de5936a19d8be63b7fee528a5c63c9278cd6430b;hpb=133fb1566a2875711fa83726c627e43555f6f4af;p=kernel%2Fj72x.git diff --git a/Makefile b/Makefile index de5936a..4157e79 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,13 @@ # src/kernel/Makefile # -TARGET = arm-unknown-linux-gnu +TARGET = arm-crux-linux-gnueabi TOPDIR = $(shell pwd) WORK = $(PWD)/work CROSSTOOLS = $(TOPDIR)/../../toolchain/crosstools -GIT_REPOSITORY = git://git.kernel.org/pub/scm/linux/kernel/git/kristoffer/linux-hpc.git -KERNEL_VERSION = 2.6.19 -BRANCH_VERSION = $(KERNEL_VERSION)-hpc +KERNEL_VERSION = 2.6.19-j72x_20100305 .PHONY: all clean image modules map config @@ -19,14 +17,14 @@ all: image modules map clean: image-clean modules-clean map-clean distclean: clean image-distclean modules-distclean map-distclean + rm -vrf $(WORK)/linux-$(KERNEL_VERSION) -$(WORK)/linux-$(KERNEL_VERSION): config-$(KERNEL_VERSION) - git clone $(GIT_REPOSITORY) $(WORK)/linux-$(KERNEL_VERSION) - cd $(WORK)/linux-$(KERNEL_VERSION) && \ - git checkout --track -b v$(BRANCH_VERSION) origin/v$(BRANCH_VERSION) && \ - git checkout v$(BRANCH_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) @@ -40,7 +38,7 @@ $(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION) image: $(WORK)/zImage-$(KERNEL_VERSION) image-clean: - rm -vrf $(WORK)/linux-$(KERNEL_VERSION) $(WORK)/zImage-$(KERNEL_VERSION) + rm -vf $(WORK)/zImage-$(KERNEL_VERSION) image-distclean: image-clean