Perform the silentoldconfig step of seabios before full make

I was running into a race condition when rebuilding seabios with a high cpu count,
resulting in failure with this error message:

cc1: fatal error: can't open 'out/src/asm-offsets.s' for writing: No such file or directory

Performing the silentoldconfig step before the full make step seems to resolve the failure.
fsdg20230625
John Doe 2022-03-11 18:16:16 -05:00
parent 33a43ffc07
commit 676eb110c7
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,7 @@ cd seabios/
# for libgfxinit setup:
[[ -f Makefile ]] && make distclean
cp ../resources/seabios/config/libgfxinit .config
make silentoldconfig -j$(nproc)
make -j$(nproc)
mv out/bios.bin.elf ../payload/seabios/seabios_libgfxinit.elf
mv out/vgabios.bin ../payload/seabios/seavgabios.bin
@ -48,6 +49,7 @@ rm .config
# for vgarom setup:
[[ -f Makefile ]] && make distclean
cp ../resources/seabios/config/vgarom .config
make silentoldconfig -j$(nproc)
make -j$(nproc)
mv out/bios.bin.elf ../payload/seabios/seabios_vgarom.elf
rm .config