images: remove 'libgfxinit' from the image names.
The build system was designed to produce images with different GPU drivers for a single computer and/or to show the image name in the final image names, to enable users to know which GPU driver was used. However since all boards have practically speaking the same GPU driver ('libgfxinit') this adds too much complexity for almost no benefits. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
parent
80f75a334f
commit
a202dce646
|
@ -67,8 +67,8 @@ test_qemu_rom_archive()
|
|||
|
||||
archive_files=""
|
||||
for kb in ${keyboard_layouts} ; do
|
||||
cbfb="libgfxinit_corebootfb"
|
||||
txtmode="libgfxinit_txtmode"
|
||||
cbfb="corebootfb"
|
||||
txtmode="txtmode"
|
||||
|
||||
archive_files="${archive_files} \
|
||||
${target}/grub_${target}_${cbfb}_${kb}.rom \
|
||||
|
|
|
@ -82,7 +82,7 @@ test_grub_cfg_with_lvm()
|
|||
fi
|
||||
|
||||
run_qemu_x86_64 \
|
||||
bin/qemu-pc_2mb/grub_qemu-pc_2mb_libgfxinit_corebootfb_usqwerty.rom \
|
||||
bin/qemu-pc_2mb/grub_qemu-pc_2mb_corebootfb_usqwerty.rom \
|
||||
"${rootfs_path}" \
|
||||
"x86_64-linux" ; ret=$?
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@ moverom() {
|
|||
# expected: configs must not specify a payload
|
||||
mkCoreboot() {
|
||||
cbdir="${1}" # e.g. coreboot/default
|
||||
cbcfgpath="${2}" # e.g. resources/coreboot/x200_8mb/config/libgfxinit_txtmode
|
||||
cbcfgpath="${2}" # e.g. resources/coreboot/x200_8mb/config/txtmode
|
||||
if [ ! -f "${cbcfgpath}" ]; then
|
||||
printf "\nmkCoreboot: Coreboot config '%s' does not exist. Skipping build.\n" \
|
||||
"${cbcfgpath}"
|
||||
|
@ -281,17 +281,11 @@ make_seabios_rom() {
|
|||
# a tmpfile will be made instead
|
||||
target_seabios_cbfs_path="${2}" # e.g. fallback/payload
|
||||
target_opromloadonly="${3}" # 0 or 1. if 1, only load but don't execute oproms
|
||||
target_initmode="${4}" # e.g. libgfxinit
|
||||
cbfstool_path="${5}"
|
||||
cbfstool_path="${4}"
|
||||
|
||||
if [ "${target_initmode}" = "normal" ]; then
|
||||
target_seabioself="payload/seabios/seabios_vgarom.elf"
|
||||
# if normal, etc/pci-optionrom-exec will be set to 2
|
||||
else
|
||||
target_seabioself="payload/seabios/seabios_${target_initmode}.elf"
|
||||
# if libgfxinit, etc/pci-optionrom-exec will be set to 2
|
||||
# if vgarom, etc/pci-optionrom-exec will be set to 0
|
||||
fi
|
||||
# etc/pci-optionrom-exec will be set to 2
|
||||
# etc/pci-optionrom-exec will be set to 0
|
||||
target_seabioself="payload/seabios/seabios.elf"
|
||||
target_seavgabios_rom="payload/seabios/seavgabios.bin"
|
||||
|
||||
tmprom=$(mktemp -t coreboot_rom.XXXXXXXXXX)
|
||||
|
@ -299,17 +293,13 @@ make_seabios_rom() {
|
|||
cp "${target_cbrom}" "${tmprom}"
|
||||
"${cbfstool}" "${tmprom}" add-payload -f "${target_seabioself}" -n ${target_seabios_cbfs_path} -c lzma
|
||||
"${cbfstool}" "${tmprom}" add-int -i 3000 -n etc/ps2-keyboard-spinup
|
||||
if [ "${target_initmode}" = "normal" ] || [ "${target_initmode}" = "libgfxinit" ]; then
|
||||
"${cbfstool}" "${tmprom}" add-int -i 2 -n etc/pci-optionrom-exec
|
||||
elif [ "${target_initmode}" = "vgarom" ]; then
|
||||
"${cbfstool}" "${tmprom}" add-int -i 0 -n etc/pci-optionrom-exec
|
||||
fi # for undefined modes, don't add this integer. rely on SeaBIOS defaults
|
||||
|
||||
"${cbfstool}" "${tmprom}" add-int -i 2 -n etc/pci-optionrom-exec
|
||||
|
||||
"${cbfstool}" "${tmprom}" add-int -i 0 -n etc/optionroms-checksum
|
||||
"${cbfstool}" "${tmprom}" add-int -i ${target_opromloadonly} -n etc/only-load-option-roms
|
||||
|
||||
if [ "${target_initmode}" = "libgfxinit" ]; then
|
||||
"${cbfstool_path}" "${tmprom}" add -f "${target_seavgabios_rom}" -n vgaroms/seavgabios.bin -t raw
|
||||
fi
|
||||
"${cbfstool_path}" "${tmprom}" add -f "${target_seavgabios_rom}" -n vgaroms/seavgabios.bin -t raw
|
||||
|
||||
printf "%s\n" "${tmprom}"
|
||||
}
|
||||
|
@ -360,14 +350,13 @@ make_grubrom_from_keymap() {
|
|||
# Make separate ROM images with GRUB payload, for each supported keymap
|
||||
mkRomsWithGrub() {
|
||||
tmprompath="${1}"
|
||||
initmode="${2}"
|
||||
displaymode="${3}"
|
||||
firstpayloadname="${4}" # allow values: grub, seabios, seabios_withgrub
|
||||
displaymode="${2}"
|
||||
firstpayloadname="${3}" # allow values: grub, seabios, seabios_withgrub
|
||||
|
||||
if [ "${payload_grub_withseabios}" = "y" ] && [ "${firstpayloadname}" = "grub" ]; then
|
||||
mv "$(make_seabios_rom "${tmprompath}" "seabios.elf" "${seabios_opromloadonly}" "${initmode}" "${cbfstool}")" "${tmprompath}"
|
||||
mv "$(make_seabios_rom "${tmprompath}" "seabios.elf" "${seabios_opromloadonly}" "${cbfstool}")" "${tmprompath}"
|
||||
elif [ "${payload_seabios_withgrub}" ] && [ "${firstpayloadname}" != "grub" ]; then
|
||||
mv "$(make_seabios_rom "${tmprompath}" "fallback/payload" "${seabios_opromloadonly}" "${initmode}" "${cbfstool}")" "${tmprompath}"
|
||||
mv "$(make_seabios_rom "${tmprompath}" "fallback/payload" "${seabios_opromloadonly}" "${cbfstool}")" "${tmprompath}"
|
||||
fi
|
||||
|
||||
for keymapfile in resources/grub/keymap/*; do
|
||||
|
@ -397,11 +386,7 @@ mkRomsWithGrub() {
|
|||
firstpayloadname="seabios"
|
||||
fi
|
||||
|
||||
if [ "${initmode}" = "normal" ] ; then
|
||||
newrompath="${romdir}/${firstpayloadname}_${board}_${initmode}_${keymap}.rom"
|
||||
else
|
||||
newrompath="${romdir}/${firstpayloadname}_${board}_${initmode}_${displaymode}_${keymap}.rom"
|
||||
fi
|
||||
newrompath="${romdir}/${firstpayloadname}_${board}_${displaymode}_${keymap}.rom"
|
||||
moverom "${tmpgrubrom}" "${newrompath}" "${romtype}"
|
||||
rm -f "${tmpgrubrom}"
|
||||
done
|
||||
|
@ -411,11 +396,10 @@ mkRomsWithGrub() {
|
|||
mkRoms() {
|
||||
cbcfgpath="${1}"
|
||||
displaymode="${2}"
|
||||
initmode="${3}"
|
||||
|
||||
if [ ! -f "${cbcfgpath}" ]; then
|
||||
printf "'%s' does not exist. Skipping build for %s %s %s\n" \
|
||||
"${cbcfgpath}" "${board}" "${displaymode}" "${initmode}"
|
||||
"${cbcfgpath}" "${board}" "${displaymode}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
|
@ -427,45 +411,29 @@ mkRoms() {
|
|||
|
||||
if [ "${payload_seabios}" = "y" ]; then
|
||||
if [ "${payload_seabios_withgrub}" = "n" ]; then
|
||||
tmpseabiosrom="$(make_seabios_rom "${corebootrom}" "fallback/payload" "${seabios_opromloadonly}" "${initmode}" "${cbfstool}")"
|
||||
if [ "${initmode}" = "normal" ]; then
|
||||
newrompath="${romdir}/seabios_${board}_${initmode}.rom"
|
||||
else
|
||||
newrompath="${romdir}/seabios_${board}_${initmode}_${displaymode}.rom"
|
||||
fi
|
||||
tmpseabiosrom="$(make_seabios_rom "${corebootrom}" "fallback/payload" "${seabios_opromloadonly}" "${cbfstool}")"
|
||||
newrompath="${romdir}/seabios_${board}_${displaymode}.rom"
|
||||
|
||||
moverom "${tmpseabiosrom}" "${newrompath}" "${romtype}"
|
||||
rm -f "${tmpseabiosrom}"
|
||||
else
|
||||
tmprom=$(mktemp -t coreboot_rom.XXXXXXXXXX)
|
||||
cp "${corebootrom}" "${tmprom}"
|
||||
mkRomsWithGrub "${tmprom}" "${initmode}" "${displaymode}" "seabios_withgrub"
|
||||
mkRomsWithGrub "${tmprom}" "${displaymode}" "seabios_withgrub"
|
||||
rm -f "${tmprom}"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${payload_grub}" = "y" ]; then
|
||||
mkRomsWithGrub "${corebootrom}" "${initmode}" "${displaymode}" "grub"
|
||||
mkRomsWithGrub "${corebootrom}" "${displaymode}" "grub"
|
||||
fi
|
||||
}
|
||||
|
||||
initmode="libgfxinit"
|
||||
for displaymode in corebootfb txtmode; do
|
||||
cbcfgpath="resources/coreboot/${board}/config/${initmode}_${displaymode}"
|
||||
mkRoms "${cbcfgpath}" "${displaymode}" "${initmode}"
|
||||
cbcfgpath="resources/coreboot/${board}/config/${displaymode}"
|
||||
mkRoms "${cbcfgpath}" "${displaymode}"
|
||||
done
|
||||
|
||||
initmode="vgarom"
|
||||
for displaymode in vesafb txtmode; do
|
||||
cbcfgpath="resources/coreboot/${board}/config/${initmode}_${displaymode}"
|
||||
mkRoms "${cbcfgpath}" "${displaymode}" "${initmode}"
|
||||
done
|
||||
|
||||
initmode="normal"
|
||||
displaymode="txtmode"
|
||||
cbcfgpath="resources/coreboot/${board}/config/${initmode}"
|
||||
mkRoms "${cbcfgpath}" "${displaymode}" "${initmode}"
|
||||
|
||||
(
|
||||
cd "${cbdir}"
|
||||
make distclean
|
||||
|
|
|
@ -248,19 +248,6 @@ using bincfg. Intel provides some limited information about ICH10 descriptors
|
|||
in public datasheets. The rest can be guessed at like it was for ICH9M in
|
||||
libreboot.
|
||||
|
||||
Re-do desktop boards
|
||||
--------------------
|
||||
|
||||
Right now, the configs make no sense. VGA ROM setup (for external GPU) also
|
||||
runs libgfxinit, and vice versa, on KCMA-D8 / KGPE-D16, and in many
|
||||
configs, both coreboot and seabios run pci roms. There needs to be consistency
|
||||
here.
|
||||
|
||||
I think there should be separation:
|
||||
|
||||
* libgfxinit. coreboot doesn't load pci roms. seabios loads them
|
||||
* vgarom-only setup, where coreboot runs pci roms. seabios doesn't load them
|
||||
|
||||
Add the following boards
|
||||
------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue