210-sunxi-deactivate-binman.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. Use the old way to generate the images instead of binman.
  6. binman needs python with swig to avoid this host tool dependency use the
  7. old way of generating images.
  8. ---
  9. Makefile | 7 ++++---
  10. 1 file changed, 4 insertions(+), 3 deletions(-)
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -1344,8 +1344,10 @@ endif
  14. ifneq ($(CONFIG_ARCH_SUNXI),)
  15. ifeq ($(CONFIG_ARM64),)
  16. -u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
  17. - $(call if_changed,binman)
  18. +OBJCOPYFLAGS_u-boot-sunxi-with-spl.bin = -I binary -O binary \
  19. + --pad-to=$(CONFIG_SPL_PAD_TO) --gap-fill=0xff
  20. +u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img FORCE
  21. + $(call if_changed,pad_cat)
  22. else
  23. u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.itb FORCE
  24. $(call if_changed,cat)
  25. --- a/arch/arm/Kconfig
  26. +++ b/arch/arm/Kconfig
  27. @@ -842,7 +842,6 @@ config ARCH_SOCFPGA
  28. config ARCH_SUNXI
  29. bool "Support sunxi (Allwinner) SoCs"
  30. - select BINMAN
  31. select CMD_GPIO
  32. select CMD_MMC if MMC
  33. select CMD_USB if DISTRO_DEFAULTS