Meta: Download both Raspberry Pi 3 and 4 DTBs

Co-Authored-By: Andrew Kaster <andrew@ladybird.org>
This commit is contained in:
Sönke Holz 2024-12-29 14:47:09 -07:00
parent 819c12c2f2
commit 7ac8aac9ef
3 changed files with 9 additions and 3 deletions

View file

@ -189,7 +189,7 @@ option(BUILD_EVERYTHING "Build all optional components" ON)
include(utils)
include(flac_spec_tests)
include(download_raspberry_pi_3_dtb)
include(download_raspberry_pi_dtb)
serenity_component(
Tests

View file

@ -1,10 +1,16 @@
include(${CMAKE_CURRENT_LIST_DIR}/utils.cmake)
if (ENABLE_RASPBERRY_PI_3_DTB_DOWNLOAD)
if (ENABLE_RASPBERRY_PI_DTB_DOWNLOAD)
set(RASPBERRY_PI_3_DTB_SHA256 "39c4e2725dd2090e9b6573a746a7b3237693269e7fc915918f907764044910b7")
set(RASPBERRY_PI_3_DTB_FILE bcm2710-rpi-3-b.dtb)
set(RASPBERRY_PI_3_DTB_URL "https://github.com/raspberrypi/firmware/raw/1.20240529/boot/${RASPBERRY_PI_3_DTB_FILE}")
set(RASPBERRY_PI_3_DTB_DOWNLOAD_PATH "${SERENITY_CACHE_DIR}/${RASPBERRY_PI_3_DTB_FILE}")
set(RASPBERRY_PI_4_DTB_SHA256 "5bc13e0f663531c374cbf4645e511708e40a0774fc7771ae869c5504dc9e39b3")
set(RASPBERRY_PI_4_DTB_FILE bcm2711-rpi-4-b.dtb)
set(RASPBERRY_PI_4_DTB_URL "https://github.com/raspberrypi/firmware/raw/1.20240529/boot/${RASPBERRY_PI_4_DTB_FILE}")
set(RASPBERRY_PI_4_DTB_DOWNLOAD_PATH "${SERENITY_CACHE_DIR}/${RASPBERRY_PI_4_DTB_FILE}")
download_file("${RASPBERRY_PI_3_DTB_URL}" "${RASPBERRY_PI_3_DTB_DOWNLOAD_PATH}" SHA256 "${RASPBERRY_PI_3_DTB_SHA256}")
download_file("${RASPBERRY_PI_4_DTB_URL}" "${RASPBERRY_PI_4_DTB_DOWNLOAD_PATH}" SHA256 "${RASPBERRY_PI_4_DTB_SHA256}")
endif()

View file

@ -7,7 +7,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/common_options.cmake NO_POLICY_SCOPE)
serenity_option(ENABLE_PCI_IDS_DOWNLOAD ON CACHE BOOL "Enable download of the pci.ids database at build time")
serenity_option(ENABLE_USB_IDS_DOWNLOAD ON CACHE BOOL "Enable download of the usb.ids database at build time")
serenity_option(ENABLE_PNP_IDS_DOWNLOAD ON CACHE BOOL "Enable download of the pnp.ids database at build time")
serenity_option(ENABLE_RASPBERRY_PI_3_DTB_DOWNLOAD ON CACHE BOOL "Enable download of the Raspberry Pi 3 devicetree blob at build time")
serenity_option(ENABLE_RASPBERRY_PI_DTB_DOWNLOAD ON CACHE BOOL "Enable download of the Raspberry Pi 3/4 devicetree blob at build time")
serenity_option(ENABLE_KERNEL_ADDRESS_SANITIZER OFF CACHE BOOL "Enable kernel address sanitizer testing in gcc/clang")
serenity_option(ENABLE_KERNEL_COVERAGE_COLLECTION OFF CACHE BOOL "Enable KCOV and kernel coverage instrumentation in gcc/clang")
serenity_option(ENABLE_KERNEL_COVERAGE_COLLECTION_DEBUG OFF CACHE BOOL "Enable KCOV and kernel coverage instrumentation debugging")