Upstream refresh for v1.5.0-rc1 : Upstream 19.07 : 4fb6b8c553f692eeb5bcb203e0f8ee8df0...
[librecmc/librecmc.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 @@ -1344,8 +1344,10 @@ endif
16  
17  ifneq ($(CONFIG_ARCH_SUNXI),)
18  ifeq ($(CONFIG_ARM64),)
19 -u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
20 -       $(call if_changed,binman)
21 +OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
22 +                               --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
23 +u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img FORCE
24 +       $(call if_changed,pad_cat)
25  else
26  u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.itb FORCE
27         $(call if_changed,cat)
28 --- a/arch/arm/Kconfig
29 +++ b/arch/arm/Kconfig
30 @@ -842,7 +842,6 @@ config ARCH_SOCFPGA
31  
32  config ARCH_SUNXI
33         bool "Support sunxi (Allwinner) SoCs"
34 -       select BINMAN
35         select CMD_GPIO
36         select CMD_MMC if MMC
37         select CMD_USB if DISTRO_DEFAULTS