This commit is contained in:
Jeremy Soller
2020-10-12 21:11:58 -06:00
parent 3df8580f37
commit 22ffb6ef4a
53 changed files with 11703 additions and 477 deletions

View File

@@ -36,6 +36,10 @@ EDK2_ARGS=(
-D SOURCE_DEBUG_ENABLE=FALSE
)
# Set edk2 PCIE_BASE to coreboot MMCONF_BASE_ADDRESS
PCIE_BASE="$(grep '^CONFIG_MMCONF_BASE_ADDRESS=' "${MODEL_DIR}/coreboot.config" | cut -d '=' -f 2)"
EDK2_ARGS+=(-D PCIE_BASE="${PCIE_BASE}")
# Rebuild firmware-setup (used by edk2)
touch apps/firmware-setup/Cargo.toml
make -C apps/firmware-setup

View File

@@ -34,7 +34,7 @@ do
parts+=("$part")
done
parts[1]="$(printf '0x%08x' "$((${parts[1]} & 0xfffffffd))")"
parts[2]="$(printf '0x%04x' "$((${parts[2]} & 0xffffff00))")"
parts[2]="$(printf '0x%04x' "$((${parts[2]} & 0x00003c00))")"
case "${parts[1]}" in
0x0???????)