mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
qemu-kqemu: fix bios default.
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
usr/bin/qemu-kqemu
|
usr/bin/qemu-kqemu
|
||||||
|
usr/share/qemu/bios-kqemu.bin
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
# #
|
# #
|
||||||
# IPFire.org - A linux based firewall #
|
# IPFire.org - A linux based firewall #
|
||||||
# Copyright (C) 2009 Michael Tremer & Christian Schmidt #
|
# Copyright (C) 2010 IPFire Team <info@ipfire.org> #
|
||||||
# #
|
# #
|
||||||
# This program is free software: you can redistribute it and/or modify #
|
# This program is free software: you can redistribute it and/or modify #
|
||||||
# it under the terms of the GNU General Public License as published by #
|
# it under the terms of the GNU General Public License as published by #
|
||||||
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
|||||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||||
TARGET = $(DIR_INFO)/$(THISAPP)-kqemu
|
TARGET = $(DIR_INFO)/$(THISAPP)-kqemu
|
||||||
PROG = qemu-kqemu
|
PROG = qemu-kqemu
|
||||||
PAK_VER = 2
|
PAK_VER = 3
|
||||||
|
|
||||||
DEPS = "sdl qemu"
|
DEPS = "sdl qemu"
|
||||||
|
|
||||||
@@ -77,9 +77,11 @@ $(subst %,%_MD5,$(objects)) :
|
|||||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||||
@$(PREBUILD)
|
@$(PREBUILD)
|
||||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||||
|
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/qemu-kqemu_change-default-kqemu-bios.patch
|
||||||
cd $(DIR_APP) && ./configure --prefix=/usr \
|
cd $(DIR_APP) && ./configure --prefix=/usr \
|
||||||
--target-list="i386-softmmu"
|
--target-list="i386-softmmu"
|
||||||
cd $(DIR_APP) && make $(MAKETUNING)
|
cd $(DIR_APP) && make $(MAKETUNING)
|
||||||
cd $(DIR_APP) && cp i386-softmmu/qemu /usr/bin/qemu-kqemu
|
cd $(DIR_APP) && cp -f i386-softmmu/qemu /usr/bin/qemu-kqemu
|
||||||
|
cd $(DIR_APP) && cp -f pc-bios/bios.bin /usr/share/qemu/bios-kqemu.bin
|
||||||
@rm -rf $(DIR_APP)
|
@rm -rf $(DIR_APP)
|
||||||
@$(POSTBUILD)
|
@$(POSTBUILD)
|
||||||
|
|||||||
12
src/patches/qemu-kqemu_change-default-kqemu-bios.patch
Normal file
12
src/patches/qemu-kqemu_change-default-kqemu-bios.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur qemu-0.11.1.org/hw/pc.c qemu-0.11.1/hw/pc.c
|
||||||
|
--- qemu-0.11.1.org/hw/pc.c 2009-12-02 21:27:02.000000000 +0100
|
||||||
|
+++ qemu-0.11.1/hw/pc.c 2010-12-27 12:09:41.845206649 +0100
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
/* Show multiboot debug output */
|
||||||
|
//#define DEBUG_MULTIBOOT
|
||||||
|
|
||||||
|
-#define BIOS_FILENAME "bios.bin"
|
||||||
|
+#define BIOS_FILENAME "bios-kqemu.bin"
|
||||||
|
#define VGABIOS_FILENAME "vgabios.bin"
|
||||||
|
#define VGABIOS_CIRRUS_FILENAME "vgabios-cirrus.bin"
|
||||||
|
|
||||||
Reference in New Issue
Block a user