-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vgabios build rules to roms/Makefile
This patch adds some glue to roms/Makefile to build vgabios binaries for qemu. It covers both the lgpl'ed vgabios implementation used by qemu traditionally and the new seabios implementation. The purpose of this patch is to (a) document the vgabios build process and (b) simplify seavgabios testing for those who want to play with it. Signed-off-by: Gerd Hoffmann <[email protected]>
- Loading branch information
Showing
6 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
|
||
vgabios_variants := stdvga cirrus vmware qxl | ||
|
||
default: | ||
@echo "nothing is build by default" | ||
@echo "available build targets:" | ||
@echo " bios -- update bios.bin (seabios)" | ||
@echo " seavgabios -- update vgabios binaries (seabios)" | ||
@echo " lgplvgabios -- update vgabios binaries (lgpl)" | ||
|
||
bios: config.seabios | ||
sh configure-seabios.sh $< | ||
make -C seabios out/bios.bin | ||
cp seabios/out/bios.bin ../pc-bios/bios.bin | ||
|
||
seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants)) | ||
|
||
seavgabios-%: config.vga.% | ||
sh configure-seabios.sh $< | ||
make -C seabios out/vgabios.bin | ||
cp seabios/out/vgabios.bin ../pc-bios/vgabios-$*.bin | ||
|
||
lgplvgabios: $(patsubst %,lgplvgabios-%,$(vgabios_variants)) | ||
|
||
lgplvgabios-%: | ||
make -C vgabios vgabios-$*.bin | ||
cp vgabios/VGABIOS-lgpl-latest.$*.bin ../pc-bios/vgabios-$*.bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_BUILD_VGABIOS=y | ||
CONFIG_VGA_CIRRUS=y | ||
CONFIG_VGA_PCI=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_BUILD_VGABIOS=y | ||
CONFIG_VGA_BOCHS=y | ||
CONFIG_VGA_PCI=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CONFIG_BUILD_VGABIOS=y | ||
CONFIG_VGA_BOCHS=y | ||
CONFIG_VGA_PCI=y | ||
CONFIG_OVERRIDE_PCI_ID=y | ||
CONFIG_VGA_VID=0x1b36 | ||
CONFIG_VGA_DID=0x0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
CONFIG_BUILD_VGABIOS=y | ||
CONFIG_VGA_BOCHS=y | ||
CONFIG_VGA_PCI=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CONFIG_BUILD_VGABIOS=y | ||
CONFIG_VGA_BOCHS=y | ||
CONFIG_VGA_PCI=y | ||
CONFIG_OVERRIDE_PCI_ID=y | ||
CONFIG_VGA_VID=0x15ad | ||
CONFIG_VGA_DID=0x0405 |