0001-Makefile-CONFIG_INTERNAL-depends-on-raw-mem-access.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From aac91025386aa9d7b8214f8ad1746ef5c02f2d8d Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 5 Nov 2023 10:38:32 +0100
  4. Subject: [PATCH] Makefile: CONFIG_INTERNAL depends on raw mem access
  5. CONFIG_INTERNAL depends on raw mem access resulting in the following
  6. build failure on sh4 since version 1.3.0:
  7. /home/thomas/autobuild/instance-3/output-1/per-package/flashrom/host/bin/../lib/gcc/sh4a-buildroot-linux-gnu/12.3.0/../../../../sh4a-buildroot-linux-gnu/bin/ld: libflashrom.a(internal.o): in function `internal_chip_readn':
  8. internal.c:(.text+0x8): undefined reference to `mmio_readn'
  9. Fixes:
  10. - http://autobuild.buildroot.org/results/f74a9d315fb519f284428234713f43fcf4e35fd0
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. Upstream: https://review.coreboot.org/c/flashrom/+/78930
  13. ---
  14. Makefile | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/Makefile b/Makefile
  17. index bf01d0f8..cd21f22f 100644
  18. --- a/Makefile
  19. +++ b/Makefile
  20. @@ -115,6 +115,7 @@ DEPENDS_ON_RAW_MEM_ACCESS := \
  21. CONFIG_ATAPROMISE \
  22. CONFIG_DRKAISER \
  23. CONFIG_GFXNVIDIA \
  24. + CONFIG_INTERNAL \
  25. CONFIG_INTERNAL_X86 \
  26. CONFIG_IT8212 \
  27. CONFIG_NICINTEL \
  28. --
  29. 2.42.0