Extract GOP driver when generating new model
This commit is contained in:
committed by
Jeremy Soller
parent
85a3921c1c
commit
8bfc769028
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
build
|
|
||||||
backup.rom
|
backup.rom
|
||||||
|
build/
|
||||||
|
extract/
|
||||||
|
@@ -66,10 +66,24 @@ then
|
|||||||
rm -f flashregion_*.bin
|
rm -f flashregion_*.bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the Video BIOS Table for Intel systems
|
# Get the Video BIOS Table and GOP driver for Intel systems
|
||||||
if sudo [ -e /sys/kernel/debug/dri/0/i915_vbt ]
|
if sudo [ -e /sys/kernel/debug/dri/0/i915_vbt ]
|
||||||
then
|
then
|
||||||
sudo cat /sys/kernel/debug/dri/0/i915_vbt > "${MODEL_DIR}/vbt.rom"
|
sudo cat /sys/kernel/debug/dri/0/i915_vbt > "${MODEL_DIR}/vbt.rom"
|
||||||
|
|
||||||
|
INTEL_GOP_DRIVER_GUID="7755CA7B-CA8F-43C5-889B-E1F59A93D575"
|
||||||
|
EXTRACT_DIR="extract"
|
||||||
|
|
||||||
|
if [ -n "${BIOS_IMAGE}" ]
|
||||||
|
then
|
||||||
|
if "${SCRIPT_DIR}/extract.sh" "${BIOS_IMAGE}" "${INTEL_GOP_DRIVER_GUID}" -o "${EXTRACT_DIR}" > /dev/null
|
||||||
|
then
|
||||||
|
cp -v "$(find "${EXTRACT_DIR}" | grep IntelGopDriver | grep PE32 | grep body.bin)" "${MODEL_DIR}/IntelGopDriver.efi"
|
||||||
|
rm -rf "${EXTRACT_DIR}"
|
||||||
|
else
|
||||||
|
echo "IntelGopDriver not present in firmware image"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# XXX: More reliable way to determine if system has an EC?
|
# XXX: More reliable way to determine if system has an EC?
|
||||||
|
Reference in New Issue
Block a user