]> git.ipfire.org Git - people/amarx/ipfire-2.x.git/commitdiff
u-boot: update buildscript
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 28 Apr 2018 06:51:01 +0000 (08:51 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 28 Apr 2018 06:51:01 +0000 (08:51 +0200)
enable wandboard
update ident strings
distclean after every target

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
lfs/u-boot

index 1a7c3458fc114b487739254267880502d39683f9..e20d58035dabd433e1e12636d34efcac4d6d9b9c 100644 (file)
@@ -79,7 +79,7 @@ ifneq "$(MKIMAGE)" "1"
        # Pandaboard
        -mkdir -pv /usr/share/u-boot/pandaboard
        cd $(DIR_APP) && make CROSS_COMPILE="" omap4_panda_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" Pandaboard - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 MLO u-boot.img \
                /usr/share/u-boot/pandaboard
@@ -87,69 +87,78 @@ ifneq "$(MKIMAGE)" "1"
        cd $(DIR_APP) && install MLO /boot/
        cd $(DIR_APP) && install u-boot.img /boot/
        cd $(DIR_APP) && make distclean
+       
 
        # Wandboard
-#      -mkdir -pv /usr/share/u-boot/wandboard
-#      cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_config
-#      cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
-#      cd $(DIR_APP) && install -v -m 644 u-boot.imx \
-#              /usr/share/u-boot/wandboard
-#      cd $(DIR_APP) && make distclean
+       -mkdir -pv /usr/share/u-boot/wandboard
+       cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" Wandboard - IPFire.org"!' .config
+       cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
+       cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)" u-boot.imx
+       cd $(DIR_APP) && install -v -m 644 u-boot.imx \
+               /usr/share/u-boot/wandboard
+       cd $(DIR_APP) && make distclean
 
        # Raspberry Pi
        -mkdir -pv /usr/share/u-boot/rpi
        cd $(DIR_APP) && make CROSS_COMPILE="" rpi_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" RPi1 - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot.bin \
                /usr/share/u-boot/rpi/kernel.img
        # Install rpi u-boot as default rpi kernel
        cd $(DIR_APP) && install u-boot.bin /boot/kernel.img
+       cd $(DIR_APP) && make distclean
 
        # Raspberry Pi 2
        -mkdir -pv /usr/share/u-boot/rpi2
        cd $(DIR_APP) && make CROSS_COMPILE="" rpi_2_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" RPi2 - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot.bin \
                /usr/share/u-boot/rpi2/kernel7.img
        # Install rpi2 u-boot as default rpi kernel7
        cd $(DIR_APP) && install u-boot.bin /boot/kernel7.img
+       cd $(DIR_APP) && make distclean
 
        # Raspberry Pi 3
        -mkdir -pv /usr/share/u-boot/rpi3
        cd $(DIR_APP) && make CROSS_COMPILE="" rpi_3_32b_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" RPi3 - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot.bin \
                /usr/share/u-boot/rpi3/kernel8-32.img
        # Install rpi2 u-boot as default rpi kernel8-32
        cd $(DIR_APP) && install u-boot.bin /boot/kernel8-32.img
+       cd $(DIR_APP) && make distclean
 
        # Orange Pi Zero
        -mkdir -pv /usr/share/u-boot/orangepi_zero
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/orangepi-zero-add-macs.diff
        cd $(DIR_APP) && make CROSS_COMPILE="" orangepi_zero_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" OrangePi Zero/IPFire Nano - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
                /usr/share/u-boot/orangepi_zero
+       cd $(DIR_APP) && make distclean
 
        # Orange Pi PC
        -mkdir -pv /usr/share/u-boot/orangepi_pc
        cd $(DIR_APP) && make CROSS_COMPILE="" orangepi_pc_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" OrangePi PC - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
                /usr/share/u-boot/orangepi_pc
+       cd $(DIR_APP) && make distclean
 
        # LeMaker Banana Pi
        -mkdir -pv /usr/share/u-boot/banana_pi
        cd $(DIR_APP) && make CROSS_COMPILE="" Bananapi_config
-       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" IPFire.org"!' .config
+       cd $(DIR_APP) && sed -i -e 's!^CONFIG_IDENT_STRING=.*!CONFIG_IDENT_STRING=" BananaPi - IPFire.org"!' .config
        cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)"
        cd $(DIR_APP) && install -v -m 644 u-boot-sunxi-with-spl.bin \
                /usr/share/u-boot/banana_pi
+       cd $(DIR_APP) && make distclean
 
        # create an empty 128 KB File for the u-boot env
        dd if=/dev/zero of=/boot/uboot.env bs=1K count=128