build/boot/roms: simplify ich9m ifd handling
Signed-off-by: Leah Rowe <leah@libreboot.org>btrfsvols
parent
f5787c9e50
commit
6dbddf852c
|
@ -596,25 +596,21 @@ moverom() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for romsize in 4 8 16; do
|
for romsize in 4 8 16; do
|
||||||
ifdgbe="descriptors/ich9m/ich9fdgbe_${romsize}m.bin"
|
ifddir="descriptors/ich9m"
|
||||||
if [ "${cuttype}" = "${romsize}MiB ICH9 IFD NOR flash" ]; then
|
for bs in "4" "12"; do
|
||||||
[ -f "${ifdgbe}" ] || \
|
ifdgbe="${ifddir}/ich9fdnogbe_${romsize}m.bin"
|
||||||
./build descriptors ich9m || \
|
cmpstr="${romsize}MiB ICH9 IFD NOGBE NOR flash"
|
||||||
err "moverom: cannot create ich9m ifd"
|
if [ "${bs}" = "12" ]; then
|
||||||
dd if="${ifdgbe}" of="${newrompath}" bs=12k count=1 \
|
cmpstr="${romsize}MiB ICH9 IFD NOR flash"
|
||||||
conv=notrunc || \
|
ifdgbe="${ifddir}/ich9fdgbe_${romsize}m.bin"
|
||||||
err "moverom: cant insert ich9m ifd"
|
fi
|
||||||
fi
|
[ "${cuttype}" = "${cmpstr}" ] || continue
|
||||||
cmpstr="${romsize}MiB ICH9 IFD NOGBE NOR flash"
|
[ -f "${ifdgbe}" ] || ./build descriptors ich9m || \
|
||||||
ifdgbe="descriptors/ich9m/ich9fdnogbe_${romsize}m.bin"
|
err "moverom: cannot create ich9m ifd"
|
||||||
if [ "${cuttype}" = "${cmpstr}" ]; then
|
dd if="${ifdgbe}" of="${newrompath}" bs=${bs}k count=1 \
|
||||||
[ -f "${ifdgbe}" ] || \
|
conv=notrunc || err "moverom: cant insert ich9m ifd"
|
||||||
./build descriptors ich9m || \
|
done
|
||||||
err "moverom: cannot create ich9m ifd"
|
|
||||||
dd if="${ifdgbe}" of="${newrompath}" bs=4k count=1 \
|
|
||||||
conv=notrunc || \
|
|
||||||
err "moverom: cant insert ich9m ifd"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "${cuttype}" = "i945 laptop" ]; then
|
if [ "${cuttype}" = "i945 laptop" ]; then
|
||||||
|
|
Loading…
Reference in New Issue