CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Added Makefile.
authorVictor Martinez <pitillo@ono.com>
Wed, 30 Jun 2010 12:29:52 +0000 (12:29 +0000)
committerVictor Martinez <pitillo@ono.com>
Wed, 30 Jun 2010 12:29:52 +0000 (12:29 +0000)
Makefile

index c04fc8c2cdd0a83b63153e23a441cf3f602f5127..887d8ae1136a03e4756c2c6cab0d83bd0f6192a7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,7 @@ TOPDIR = $(shell pwd)
 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
 
@@ -19,11 +18,12 @@ clean: image-clean modules-clean map-clean
 
 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)