210-Revert-fdt-Makefile-Build-python-libfdt-library-if-n.patch 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. From eed65e5c25cbc4b6e893f140e9d7898f4624c114 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <[email protected]>
  3. Date: Wed, 19 Jul 2017 23:12:38 +0200
  4. Subject: [PATCH 210/213] Revert "fdt: Makefile: Build python libfdt library if
  5. needed"
  6. This reverts commit e38ffc42674fedc750ca895046be0bd983b56dd5.
  7. ---
  8. Makefile | 17 ++---------------
  9. scripts/Makefile.spl | 17 ++++-------------
  10. 2 files changed, 6 insertions(+), 28 deletions(-)
  11. --- a/Makefile
  12. +++ b/Makefile
  13. @@ -1116,7 +1116,7 @@ cmd_ldr = $(LD) $(LDFLAGS_$(@F)) \
  14. u-boot.rom: u-boot-x86-16bit.bin u-boot.bin \
  15. $(if $(CONFIG_SPL_X86_16BIT_INIT),spl/u-boot-spl.bin) \
  16. - $(if $(CONFIG_HAVE_REFCODE),refcode.bin) checkbinman FORCE
  17. + $(if $(CONFIG_HAVE_REFCODE),refcode.bin) FORCE
  18. $(call if_changed,binman)
  19. OBJCOPYFLAGS_u-boot-x86-16bit.bin := -O binary -j .start16 -j .resetvec
  20. @@ -1125,8 +1125,7 @@ u-boot-x86-16bit.bin: u-boot FORCE
  21. endif
  22. ifneq ($(CONFIG_ARCH_SUNXI),)
  23. -u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb \
  24. - checkbinman FORCE
  25. +u-boot-sunxi-with-spl.bin: spl/sunxi-spl.bin u-boot.img u-boot.dtb FORCE
  26. $(call if_changed,binman)
  27. endif
  28. @@ -1355,18 +1354,6 @@ $(version_h): include/config/uboot.relea
  29. $(timestamp_h): $(srctree)/Makefile FORCE
  30. $(call filechk,timestamp.h)
  31. -checkbinman: tools
  32. - @if ! ( echo 'import libfdt' | ( PYTHONPATH=tools python )); then \
  33. - echo >&2; \
  34. - echo >&2 '*** binman needs the Python libfdt library.'; \
  35. - echo >&2 '*** Either install it on your system, or try:'; \
  36. - echo >&2 '***'; \
  37. - echo >&2 '*** sudo apt-get install swig libpython-dev'; \
  38. - echo >&2 '***'; \
  39. - echo >&2 '*** to have U-Boot build its own version.'; \
  40. - false; \
  41. - fi
  42. -
  43. # ---------------------------------------------------------------------------
  44. quiet_cmd_cpp_lds = LDS $@
  45. cmd_cpp_lds = $(CPP) -Wp,-MD,$(depfile) $(cpp_flags) $(LDPPFLAGS) \
  46. --- a/scripts/Makefile.spl
  47. +++ b/scripts/Makefile.spl
  48. @@ -257,12 +257,14 @@ PHONY += dts_dir
  49. dts_dir:
  50. $(shell [ -d $(obj)/dts ] || mkdir -p $(obj)/dts)
  51. -include/generated/dt-structs.h: $(obj)/$(SPL_BIN).dtb dts_dir checkdtoc
  52. +include/generated/dt-structs.h: $(obj)/$(SPL_BIN).dtb dts_dir dtoc
  53. $(call if_changed,dtoch)
  54. -$(obj)/dts/dt-platdata.c: $(obj)/$(SPL_BIN).dtb dts_dir checkdtoc
  55. +$(obj)/dts/dt-platdata.c: $(obj)/$(SPL_BIN).dtb dts_dir dtoc
  56. $(call if_changed,dtocc)
  57. +dtoc: #$(objtree)/tools/_libfdt.so
  58. +
  59. ifdef CONFIG_SAMSUNG
  60. ifdef CONFIG_VAR_SIZE_SPL
  61. VAR_SIZE_PARAM = --vs
  62. @@ -355,17 +357,6 @@ ifneq ($(cmd_files),)
  63. include $(cmd_files)
  64. endif
  65. -checkdtoc: tools
  66. - @if ! ( echo 'import libfdt' | ( PYTHONPATH=tools python )); then \
  67. - echo '*** dtoc needs the Python libfdt library. Either '; \
  68. - echo '*** install it on your system, or try:'; \
  69. - echo '***'; \
  70. - echo '*** sudo apt-get install swig libpython-dev'; \
  71. - echo '***'; \
  72. - echo '*** to have U-Boot build its own version.'; \
  73. - false; \
  74. - fi
  75. -
  76. PHONY += FORCE
  77. FORCE: