From 6c8d87381a64546313e0cf9c81ef46b3dc6a34b4 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 31 Jul 2020 14:23:34 -0600 Subject: [PATCH] scripts: Copy the VBT ROM if found --- scripts/generate.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/generate.sh b/scripts/generate.sh index b5cd7e9..f312ce7 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -59,6 +59,12 @@ mv flashregion_0_flashdescriptor.bin "${MODEL_DIR}/fd.rom" mv flashregion_2_intel_me.bin "${MODEL_DIR}/me.rom" rm -f flashregion_*.bin +# Get the Video BIOS Table for Intel systems +if sudo [ -e /sys/kernel/debug/dri/0/i915_vbt ] +then + sudo cat /sys/kernel/debug/dri/0/i915_vbt > "${MODEL_DIR}/vbt.rom" +fi + # XXX: More reliable way to determine if system has an EC? DMI_CHASSIS_TYPE=$(cat /sys/class/dmi/id/chassis_type) if [ "${DMI_CHASSIS_TYPE}" = "9" ] || [ "${DMI_CHASSIS_TYPE}" = "10" ]