On Tue, Feb 12, 2013 at 01:06:34PM +0100, Laszlo Ersek wrote:
On 02/09/13 20:08, Kevin O'Connor wrote:
This is the redo of the "multi-platform support" patch I sent previously.
This patch series is less ambitious than the previous - SeaBIOS can't be compiled for multiple platforms (eg, QEMU, CSM, coreboot) at the same time. However, this series still contains all the CONFIG_X reorganization and it will ensure that virtual devices aren't accessed when not on real hardware when using CONFIG_CSM. This series also enables the possibility of using some virtual devices under coreboot and CSM when it is safe to do so (and CONFIG_QEMU_HARDWARE is selected).
I have also placed this code for testing at: https://github.com/KevinOConnor/seabios/tree/test-20130209
When trying to build it on RHEL-6.3.z with the attached config (prepared with "make menuconfig"), I get
out/vgaccode16.o: In function `runningOnQEMU': /home/lacos/src/upstream/seabios/out/../src/paravirt.h:17: undefined reference to `PlatformRunningOn'
Oops. This is because CONFIG_DEBUG_IO looks at PlatformRunningOn (with certain config options) and the vgabios doesn't include the C file that defines the variable. I'll fix it up. For now, just don't build the vgabios with CONFIG_CSM set.
-Kevin