0004-disable-unconditionally-downloading-api-repos.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From b0599c3d1b52818c79ea8fa5dfdc40a4ce01e454 Mon Sep 17 00:00:00 2001
  2. From: Michael Nosthoff <buildroot@heine.tech>
  3. Date: Fri, 22 Jul 2022 08:49:48 +0200
  4. Subject: [PATCH] disable unconditionally downloading api repos
  5. The Buildroot build doesn't need those submodules, so disable them hard
  6. for now.
  7. See https://github.com/grpc/grpc/issues/30385
  8. Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
  9. ---
  10. CMakeLists.txt | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/CMakeLists.txt b/CMakeLists.txt
  13. index 11e7ae2b67..a9062fa6ef 100644
  14. --- a/CMakeLists.txt
  15. +++ b/CMakeLists.txt
  16. @@ -327,6 +327,7 @@ include(cmake/xxhash.cmake)
  17. include(cmake/zlib.cmake)
  18. include(cmake/download_archive.cmake)
  19. +if(FALSE)
  20. # Setup external proto library at third_party/envoy-api with 2 download URLs
  21. if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api)
  22. # Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api.
  23. @@ -403,6 +404,7 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/xds)
  24. xds-cb28da3451f158a947dfc45090fe92b07b243bc1
  25. )
  26. endif()
  27. +endif()
  28. if(WIN32)
  29. set(_gRPC_BASELIB_LIBRARIES ws2_32 crypt32)
  30. --
  31. 2.25.1