mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
lock_chip: parametrize locking in function of board config exported config option
kexec-boot: depend on io386 presence and board config option to call lock_chip
This commit is contained in:
parent
9830c6c4ed
commit
39bb6ea313
@ -150,7 +150,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
|
||||
tpmr kexec_finalize
|
||||
fi
|
||||
|
||||
if [ -x /bin/io386 ]; then
|
||||
if [ -x /bin/io386 -a "$CONFIG_FINALIZE_PLATFORM_LOCKING_PRESKYLAKE" = "y" ]; then
|
||||
lock_chip
|
||||
fi
|
||||
|
||||
|
@ -9,7 +9,15 @@
|
||||
. /etc/ash_functions
|
||||
|
||||
TRACE "Under /bin/lock_chip"
|
||||
APM_CNT=0xb2
|
||||
FIN_CODE=0xcb
|
||||
echo "Finalizing chipset"
|
||||
io386 -o b -b x $APM_CNT $FIN_CODE
|
||||
if [ "$CONFIG_FINALIZE_PLATFORM_LOCKING_PRESKYLAKE" = "y" ]; then
|
||||
APM_CNT=0xb2
|
||||
FIN_CODE=0xcb
|
||||
fi
|
||||
|
||||
if [ -n "$APM_CNT" -a -n "$FIN_CODE" ]; then
|
||||
echo "Finalizing chipset"
|
||||
io386 -o b -b x $APM_CNT $FIN_CODE
|
||||
else
|
||||
echo "NOT Finalizing chipset"
|
||||
echo "lock_chip called without valid APM_CNT and FIN_CODE defined under bin/lock_chip."
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user