deblob 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. #!/bin/bash
  2. # DEBLOB script: deblobs the version of coreboot used for this release.
  3. #
  4. # Copyright (C) 2014, 2015 Francis Rowe <info@gluglug.org.uk>
  5. #
  6. # This program is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 3 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. #
  19. # This script assumes that the current working directory is the root
  20. # of the libreboot_src/ or git clone.
  21. [ "x${DEBUG+set}" = 'xset' ] && set -v
  22. set -u -e
  23. printf "Deleting blobs in coreboot\n"
  24. cd "coreboot/"
  25. # ---------------------
  26. # Intel SoC (broadwell): CPU microcode updates
  27. # ---------------------
  28. # ---------------------
  29. # Intel SoC (baytrail): CPU microcode updates
  30. # ---------------------
  31. # ---------------------
  32. # AMD: CPU microcode updates
  33. # ---------------------
  34. rm -f \
  35. "src/cpu/amd/model_fxx/microcode_rev_e.h" \
  36. "src/cpu/amd/model_fxx/microcode_rev_c.h" \
  37. "src/cpu/amd/model_fxx/microcode_rev_d.h" \
  38. "src/cpu/amd/model_10xxx/mc_patch_010000d9.h" \
  39. "src/cpu/amd/model_10xxx/mc_patch_01000096.h" \
  40. "src/cpu/amd/model_10xxx/mc_patch_010000dc.h" \
  41. "src/cpu/amd/model_10xxx/mc_patch_010000db.h" \
  42. "src/cpu/amd/model_10xxx/mc_patch_01000095.h" \
  43. "src/cpu/amd/model_10xxx/mc_patch_010000c7.h" \
  44. "src/cpu/amd/model_10xxx/mc_patch_010000c8.h"
  45. # ---------------------
  46. # AMD: CPU microcode updates
  47. # ---------------------
  48. rm -f \
  49. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  50. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  51. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  52. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  53. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000d9.c" \
  54. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  55. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  56. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch06000624_Enc.c" \
  57. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch0600050D_Enc.c" \
  58. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch06000425.c" \
  59. "src/vendorcode/amd/agesa/f15tn/Proc/CPU/Family/0x15/TN/F15TnMicrocodePatch0600110F_Enc.c" \
  60. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  61. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  62. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  63. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  64. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  65. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  66. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  67. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch0500000B.c" \
  68. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch0500001A.c" \
  69. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  70. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  71. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  72. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  73. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  74. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  75. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch03000002.c" \
  76. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch0300000f.c" \
  77. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch0300000e.c" \
  78. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  79. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  80. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000b6.c" \
  81. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000098.c" \
  82. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000086.c" \
  83. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  84. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  85. "src/vendorcode/amd/agesa/f16kb/Proc/CPU/Family/0x16/KB/F16KbId7001MicrocodePatch.c" \
  86. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch05000029.c" \
  87. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch05000119.c"
  88. # ---------------------
  89. # VIA (nano): CPU microcode updates
  90. # ---------------------
  91. rm -f \
  92. "src/cpu/via/nano/nano_ucode_blob.c"
  93. # -------------------------------------
  94. # AMD AGESA: SMU firmware
  95. # -------------------------------------
  96. rm -f \
  97. "src/vendorcode/amd/agesa/f12/Proc/GNB/Nb/Family/LN/F12NbSmuFirmware.h" \
  98. "src/vendorcode/amd/agesa/f14/Proc/GNB/Nb/Family/0x14/F14NbSmuFirmware.h" \
  99. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/GnbSmuFirmwareKB.h" \
  100. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GnbSmuFirmwareTN.h"
  101. # -------------------------------------
  102. # AMD vendorcode: SCS Binary
  103. # -------------------------------------
  104. rm -f \
  105. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/excel925.h"
  106. # -------------------------------------
  107. # AMD vendorcode: GNB CAC weights table <-- TODO: Is this really a blob? Does it really need to be deleted by libreboot?
  108. # -------------------------------------
  109. rm -f \
  110. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GnbCacWeightsTN.h"
  111. # -------------------------------------
  112. # AMD vendorcode: SAMU firmware
  113. # -------------------------------------
  114. rm -f \
  115. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/GnbSamuPatchKB.h"
  116. # -------------------------------------
  117. # AMD vendorcode: Hotplug firmware
  118. # -------------------------------------
  119. rm -f \
  120. "src/vendorcode/amd/cimx/rd890/HotplugFirmware.h"
  121. # -------------------------------------
  122. # keyboard controller firmware (8051 assembly)
  123. # for the DMP Vortex86ex SoC
  124. # -------------------------------------
  125. rm -f \
  126. "src/cpu/dmp/vortex86ex/dmp_kbd_fw_part1.inc"
  127. # -------------------------------------
  128. # DSDT/SSDT (pre-coreboot/compiled blobs)
  129. # -------------------------------------
  130. rm -f \
  131. "src/vendorcode/amd/agesa/f14/Proc/GNB/PCIe/Family/0x14/F14PcieAlibSsdt.h" \
  132. "src/vendorcode/amd/agesa/f12/Proc/GNB/PCIe/Family/LN/F12PcieAlibSsdt.h" \
  133. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/AlibSsdtKB.h" \
  134. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/PcieAlibSsdtTNFM2.h" \
  135. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/PcieAlibSsdtTNFS1.h"
  136. # ----------------------------------
  137. # Purpose unknown. TODO: investigate
  138. # ----------------------------------
  139. # <Stepan> francis7: util/broadcom/secimage/misc.c is a precalculated crc32 polynome table
  140. # <Stepan> It's just a standard crc32 implementation
  141. rm -f \
  142. "util/broadcom/secimage/misc.c"
  143. printf "\n\n"
  144. cd "../"