CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Updated to 20120803 and fixed kernel.img file creation.
authorVictor Martinez <pitillo@ono.com>
Sun, 5 Aug 2012 19:18:13 +0000 (19:18 +0000)
committerVictor Martinez <pitillo@ono.com>
Sun, 5 Aug 2012 19:18:13 +0000 (19:18 +0000)
Makefile
config-3.1.9-raspberrypi_20120803 [moved from config-3.1.9-raspberrypi_20120309 with 100% similarity]

index a0281ce010f5a723227892b871d711ba25b6c294..a5fb7ae85eaff278806a3b170ee17101ee80e82d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ PWD = $(shell pwd)
 WORK = $(PWD)/work
 CROSSTOOLS = $(PWD)/../../toolchain/crosstools
 
-KERNEL_VERSION = 3.1.9-raspberrypi_20120309
+KERNEL_VERSION = 3.1.9-raspberrypi_20120803
 
 .PHONY: all clean image modules map config
 
@@ -18,6 +18,9 @@ clean: image-clean modules-clean map-clean
 
 distclean: clean image-distclean modules-distclean map-distclean
 
+$(WORK)/tools-$(KERNEL_VERSION).tar.bz2:
+       wget -P $(WORK) http://crux-arm.nu/files/distfiles/raspberrypi/tools-$(KERNEL_VERSION).tar.bz2
+
 $(WORK)/linux-$(KERNEL_VERSION).tar.bz2:
        wget -P $(WORK) http://crux-arm.nu/files/distfiles/raspberrypi/linux-$(KERNEL_VERSION).tar.bz2
 
@@ -35,13 +38,22 @@ $(WORK)/zImage-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)
        ln -sf zImage-$(KERNEL_VERSION) $(WORK)/zImage
        touch $(WORK)/zImage-$(KERNEL_VERSION)
 
-image: $(WORK)/zImage-$(KERNEL_VERSION)
+$(WORK)/kernel.img: $(WORK)/zImage-$(KERNEL_VERSION)
+       wget --no-check-certificate -P $(WORK) https://raw.github.com/raspberrypi/tools/master/mkimage/imagetool-uncompressed.py
+       wget --no-check-certificate -P $(WORK) https://github.com/raspberrypi/tools/raw/master/mkimage/first32k.bin
+       wget --no-check-certificate -P $(WORK) https://github.com/raspberrypi/tools/raw/master/mkimage/boot-uncompressed.txt
+       wget --no-check-certificate -P $(WORK) https://github.com/raspberrypi/tools/raw/master/mkimage/args-uncompressed.txt
+       cd $(WORK)/ && \
+               python imagetool-uncompressed.py zImage-$(KERNEL_VERSION)
+
+image: $(WORK)/kernel.img
 
 image-clean:
-       rm -vf $(WORK)/zImage-$(KERNEL_VERSION)
+       rm -vf $(WORK)/zImage-$(KERNEL_VERSION) $(WORK)/kernel.img
 
 image-distclean: image-clean
        rm -vrf $(WORK)/linux-$(KERNEL_VERSION) $(WORK)/linux-$(KERNEL_VERSION).tar.bz2
+       rm -vf $(WORK)/imagetool-uncompressed.py $(WORK)/first32k.bin $(WORK)/boot-uncompressed.txt $(WORK)/args-uncompressed.txt
 
 $(WORK)/modules-$(KERNEL_VERSION): $(WORK)/linux-$(KERNEL_VERSION)
        cd $(WORK)/linux-$(KERNEL_VERSION) && \