deblob 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. #!/bin/bash
  2. # DEBLOB script: deblobs the version of coreboot used for this release.
  3. #
  4. # Copyright (C) 2014, 2015 Leah Rowe <info@minifree.org>
  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. # AMD: CPU microcode updates
  27. # ---------------------
  28. rm -f \
  29. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  30. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  31. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  32. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  33. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000d9.c" \
  34. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  35. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  36. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch06000624_Enc.c" \
  37. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch0600050D_Enc.c" \
  38. "src/vendorcode/amd/agesa/f15/Proc/CPU/Family/0x15/OR/F15OrMicrocodePatch06000425.c" \
  39. "src/vendorcode/amd/agesa/f15tn/Proc/CPU/Family/0x15/TN/F15TnMicrocodePatch0600110F_Enc.c" \
  40. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  41. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  42. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  43. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  44. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  45. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  46. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  47. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch0500000B.c" \
  48. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch0500001A.c" \
  49. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  50. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c6.c" \
  51. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c8.c" \
  52. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  53. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  54. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevE/F10MicrocodePatch010000bf.c" \
  55. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch03000002.c" \
  56. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch0300000f.c" \
  57. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x12/F12MicrocodePatch0300000e.c" \
  58. "src/vendorcode/amd/agesa/f12/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000c7.c" \
  59. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000085.c" \
  60. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch010000b6.c" \
  61. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000098.c" \
  62. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevC/F10MicrocodePatch01000086.c" \
  63. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c4.c" \
  64. "src/vendorcode/amd/agesa/f10/Proc/CPU/Family/0x10/RevD/F10MicrocodePatch010000c5.c" \
  65. "src/vendorcode/amd/agesa/f16kb/Proc/CPU/Family/0x16/KB/F16KbId7001MicrocodePatch.c" \
  66. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch05000029.c" \
  67. "src/vendorcode/amd/agesa/f14/Proc/CPU/Family/0x14/F14MicrocodePatch05000119.c"
  68. # -------------------------------------
  69. # AMD AGESA: SMU firmware
  70. # -------------------------------------
  71. rm -f \
  72. "src/vendorcode/amd/agesa/f12/Proc/GNB/Nb/Family/LN/F12NbSmuFirmware.h" \
  73. "src/vendorcode/amd/agesa/f14/Proc/GNB/Nb/Family/0x14/F14NbSmuFirmware.h" \
  74. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/GnbSmuFirmwareKB.h" \
  75. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GnbSmuFirmwareTN.h"
  76. # -------------------------------------
  77. # AMD vendorcode: SCS Binary
  78. # -------------------------------------
  79. rm -f \
  80. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/excel925.h"
  81. # -------------------------------------
  82. # AMD vendorcode: GNB CAC weights table <-- TODO: Is this really a blob? Does it really need to be deleted by libreboot?
  83. # -------------------------------------
  84. rm -f \
  85. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/GnbCacWeightsTN.h"
  86. # -------------------------------------
  87. # AMD vendorcode: SAMU firmware
  88. # -------------------------------------
  89. rm -f \
  90. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/GnbSamuPatchKB.h"
  91. # -------------------------------------
  92. # AMD vendorcode: Hotplug firmware
  93. # -------------------------------------
  94. rm -f \
  95. "src/vendorcode/amd/cimx/rd890/HotplugFirmware.h"
  96. # -------------------------------------
  97. # keyboard controller firmware (8051 assembly)
  98. # for the DMP Vortex86ex SoC
  99. # -------------------------------------
  100. rm -f \
  101. "src/cpu/dmp/vortex86ex/dmp_kbd_fw_part1.inc"
  102. # -------------------------------------
  103. # DSDT/SSDT (pre-coreboot/compiled blobs)
  104. # -------------------------------------
  105. rm -f \
  106. "src/vendorcode/amd/agesa/f14/Proc/GNB/PCIe/Family/0x14/F14PcieAlibSsdt.h" \
  107. "src/vendorcode/amd/agesa/f12/Proc/GNB/PCIe/Family/LN/F12PcieAlibSsdt.h" \
  108. "src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbInitKB/AlibSsdtKB.h" \
  109. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/PcieAlibSsdtTNFM2.h" \
  110. "src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbInitTN/PcieAlibSsdtTNFS1.h"
  111. # ------------------------
  112. # Blobs in 3rdparty/vboot/
  113. # ------------------------
  114. rm -f \
  115. "3rdparty/vboot/tests/futility/data/bios_link_mp.bin" \
  116. "3rdparty/vboot/tests/futility/data/bios_mario_mp.bin" \
  117. "3rdparty/vboot/tests/futility/data/bios_peppy_mp.bin" \
  118. "3rdparty/vboot/tests/futility/data/bios_zgb_mp.bin" \
  119. "3rdparty/vboot/tests/futility/data/dingdong.signed" \
  120. "3rdparty/vboot/tests/futility/data/dingdong.unsigned" \
  121. "3rdparty/vboot/tests/futility/data/fw_gbb.bin" \
  122. "3rdparty/vboot/tests/futility/data/fw_vblock.bin" \
  123. "3rdparty/vboot/tests/futility/data/hoho.signed" \
  124. "3rdparty/vboot/tests/futility/data/hoho.unsigned" \
  125. "3rdparty/vboot/tests/futility/data/kern_preamble.bin" \
  126. "3rdparty/vboot/tests/futility/data/minimuffin.signed" \
  127. "3rdparty/vboot/tests/futility/data/minimuffin.unsigned" \
  128. "3rdparty/vboot/tests/futility/data/rec_kernel_part.bin" \
  129. "3rdparty/vboot/tests/futility/data/vmlinuz-amd64.bin" \
  130. "3rdparty/vboot/tests/futility/data/vmlinuz-arm.bin" \
  131. "3rdparty/vboot/tests/futility/data/zinger_mp_image.bin" \
  132. "3rdparty/vboot/tests/futility/data/zinger.signed" \
  133. "3rdparty/vboot/tests/futility/data/zinger.unsigned"
  134. printf "\n\n"
  135. cd "../"