+ @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/U-Boot-v2-fs-fat-read-fix-fat16-ls-read-issue.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot-support-gcc-6.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot-c99-inline-fix.patch
+
+ # Pandaboard
+ -mkdir -pv /usr/share/u-boot/pandaboard
+ cd $(DIR_APP) && make CROSS_COMPILE="" omap4_panda_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
+ # Install pandaboard uboot as default
+ cd $(DIR_APP) && install MLO /boot/
+ cd $(DIR_APP) && install u-boot.img /boot/
+ cd $(DIR_APP) && make distclean
+
+ # Wandboard Quad
+ -mkdir -pv /usr/share/u-boot/wandboard_quad
+ cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_quad_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_quad
+ cd $(DIR_APP) && make distclean
+
+ # Wandboard Dual
+ -mkdir -pv /usr/share/u-boot/wandboard_dl
+ cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_dl_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_dl
+ cd $(DIR_APP) && make distclean
+
+ # Wandboard Solo
+ -mkdir -pv /usr/share/u-boot/wandboard_solo
+ cd $(DIR_APP) && make CROSS_COMPILE="" wandboard_solo_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_solo
+ cd $(DIR_APP) && make distclean
+
+ # LeMaker Banana Pi
+ -mkdir -pv /usr/share/u-boot/banana_pi
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/001-uboot-sunxi-509d96d4f1f602d62d36db660973249e16f9d088.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/002-uboot-jwrdegoede-psci-support.patch
+ cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/u-boot/sunxi/003-uboot-fix-gmac-not-working-reliable-on-bananapi.patch
+ cd $(DIR_APP) && make CROSS_COMPILE="" Bananapi_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
+
+ # mkimage
+ cd $(DIR_APP) && make CROSS_COMPILE="" HOSTCC="gcc $(CFLAGS)" tools
+ cd $(DIR_APP) && install -v -m 755 tools/mkimage /usr/bin
+
+ # config (uEnv.txt)
+ cp -vf $(DIR_SRC)/config/u-boot/* /boot/
+ # patch real Kernel version to uEnv.txt
+ sed -e "s/xxxKVERxxx/$(KVER)/g" -i /boot/uEnv.txt
+