0001-Don-t-pull-in-3rdparty-git-submodules.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. From 8b436fdcc99f111e17cd98da6d60a4d6977241e6 Mon Sep 17 00:00:00 2001
  2. From: Andrew Robbins <contact@andrewrobbins.info>
  3. Date: Fri, 7 Dec 2018 21:59:21 -0500
  4. Subject: [PATCH] Don't pull in 3rdparty git submodules
  5. Libreboot's build system uses separate git repositories for the
  6. third-party software.
  7. ---
  8. .gitmodules | 20 --------------------
  9. 3rdparty/arm-trusted-firmware | 1 -
  10. 3rdparty/blobs | 1 -
  11. 3rdparty/chromeec | 1 -
  12. 3rdparty/libgfxinit | 1 -
  13. 3rdparty/libhwbase | 1 -
  14. 3rdparty/vboot | 1 -
  15. Makefile.inc | 12 ------------
  16. 8 files changed, 38 deletions(-)
  17. delete mode 160000 3rdparty/arm-trusted-firmware
  18. delete mode 160000 3rdparty/blobs
  19. delete mode 160000 3rdparty/chromeec
  20. delete mode 160000 3rdparty/libgfxinit
  21. delete mode 160000 3rdparty/libhwbase
  22. delete mode 160000 3rdparty/vboot
  23. diff --git a/.gitmodules b/.gitmodules
  24. index c3270e6..3a617c7 100644
  25. --- a/.gitmodules
  26. +++ b/.gitmodules
  27. @@ -1,23 +1,3 @@
  28. -[submodule "3rdparty/blobs"]
  29. - path = 3rdparty/blobs
  30. - url = ../blobs.git
  31. - update = none
  32. - ignore = dirty
  33. [submodule "util/nvidia-cbootimage"]
  34. path = util/nvidia/cbootimage
  35. url = ../nvidia-cbootimage.git
  36. -[submodule "vboot"]
  37. - path = 3rdparty/vboot
  38. - url = ../vboot.git
  39. -[submodule "arm-trusted-firmware"]
  40. - path = 3rdparty/arm-trusted-firmware
  41. - url = ../arm-trusted-firmware.git
  42. -[submodule "3rdparty/chromeec"]
  43. - path = 3rdparty/chromeec
  44. - url = ../chrome-ec.git
  45. -[submodule "libhwbase"]
  46. - path = 3rdparty/libhwbase
  47. - url = ../libhwbase.git
  48. -[submodule "libgfxinit"]
  49. - path = 3rdparty/libgfxinit
  50. - url = ../libgfxinit.git
  51. diff --git a/3rdparty/arm-trusted-firmware b/3rdparty/arm-trusted-firmware
  52. deleted file mode 160000
  53. index 693e278..0000000
  54. --- a/3rdparty/arm-trusted-firmware
  55. +++ /dev/null
  56. @@ -1 +0,0 @@
  57. -Subproject commit 693e278e308441d716f7f5116c43aa150955da31
  58. diff --git a/3rdparty/blobs b/3rdparty/blobs
  59. deleted file mode 160000
  60. index 372012e..0000000
  61. --- a/3rdparty/blobs
  62. +++ /dev/null
  63. @@ -1 +0,0 @@
  64. -Subproject commit 372012e8e1d0d01f3e77ff73b118665b41ff68b6
  65. diff --git a/3rdparty/chromeec b/3rdparty/chromeec
  66. deleted file mode 160000
  67. index 11bd4c0..0000000
  68. --- a/3rdparty/chromeec
  69. +++ /dev/null
  70. @@ -1 +0,0 @@
  71. -Subproject commit 11bd4c0f4d11357ab830982d7dec164813c886dd
  72. diff --git a/3rdparty/libgfxinit b/3rdparty/libgfxinit
  73. deleted file mode 160000
  74. index 718c79b..0000000
  75. --- a/3rdparty/libgfxinit
  76. +++ /dev/null
  77. @@ -1 +0,0 @@
  78. -Subproject commit 718c79bb0713b5b90c9cc44e03197dc777066e3d
  79. diff --git a/3rdparty/libhwbase b/3rdparty/libhwbase
  80. deleted file mode 160000
  81. index 637f2a4..0000000
  82. --- a/3rdparty/libhwbase
  83. +++ /dev/null
  84. @@ -1 +0,0 @@
  85. -Subproject commit 637f2a4f21ead8ccc45d5256834eb27ce72088db
  86. diff --git a/3rdparty/vboot b/3rdparty/vboot
  87. deleted file mode 160000
  88. index 392211f..0000000
  89. --- a/3rdparty/vboot
  90. +++ /dev/null
  91. @@ -1 +0,0 @@
  92. -Subproject commit 392211f0358919d510179ad399d8f056180e652e
  93. diff --git a/Makefile.inc b/Makefile.inc
  94. index 3840505..da567de 100644
  95. --- a/Makefile.inc
  96. +++ b/Makefile.inc
  97. @@ -188,18 +188,6 @@ ifeq ($(CONFIG_COVERAGE),y)
  98. ramstage-c-ccopts += -fprofile-arcs -ftest-coverage
  99. endif
  100. -ifneq ($(UPDATED_SUBMODULES),1)
  101. -# try to fetch non-optional submodules if the source is under git
  102. -forgetthis:=$(if $(GIT),$(shell git submodule update --init))
  103. -ifeq ($(CONFIG_USE_BLOBS),y)
  104. -# this is necessary because 3rdparty/blobs is update=none, and so is ignored
  105. -# unless explicitly requested and enabled through --checkout
  106. -forgetthis:=$(if $(GIT),$(shell git submodule update --init --checkout 3rdparty/blobs))
  107. -endif
  108. -UPDATED_SUBMODULES:=1
  109. -COREBOOT_EXPORTS += UPDATED_SUBMODULES
  110. -endif
  111. -
  112. postcar-c-deps:=$$(OPTION_TABLE_H)
  113. ramstage-c-deps:=$$(OPTION_TABLE_H)
  114. romstage-c-deps:=$$(OPTION_TABLE_H)
  115. --
  116. 2.7.4