Revert "uboot-sunxi: refresh patches"
[openwrt/openwrt.git] / package / boot / uboot-sunxi / patches / 210-sunxi-deactivate-binman.patch
1 From def280c4792262a368c8861312dc6b376181021f Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Mon, 1 Jan 2018 23:10:56 +0100
4 Subject: sunxi: deactivate binman
5
6 Use the old way to generate the images instead of binman.
7 binman needs python with swig to avoid this host tool dependency use the
8 old way of generating images.
9 ---
10 Makefile | 7 ++++---
11 1 file changed, 4 insertions(+), 3 deletions(-)
12
13 --- a/Makefile
14 +++ b/Makefile
15 @@ -1144,9 +1144,10 @@ u-boot-x86-16bit.bin: u-boot FORCE
16 endif
17
18 ifneq ($(CONFIG_ARCH_SUNXI),)
19 -u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb \
20 - checkbinman FORCE
21 - $(call if_changed,binman)
22 +OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
23 + --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
24 +u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img FORCE
25 + $(call if_changed,pad_cat)
26 endif
27
28 ifneq ($(CONFIG_TEGRA),)