diff options
-rw-r--r-- | recipes-extended/ipxe/ipxe_git.bb | 31 | ||||
-rw-r--r-- | recipes-extended/seabios/seabios/defconfig | 102 | ||||
-rw-r--r-- | recipes-extended/seabios/seabios/hostcc.patch | 21 | ||||
-rw-r--r-- | recipes-extended/seabios/seabios_1.7.5.bb | 46 | ||||
-rw-r--r-- | recipes-extended/vgabios/vgabios_0.7a.bb | 31 |
5 files changed, 231 insertions, 0 deletions
diff --git a/recipes-extended/ipxe/ipxe_git.bb b/recipes-extended/ipxe/ipxe_git.bb new file mode 100644 index 00000000..6dc492eb --- /dev/null +++ b/recipes-extended/ipxe/ipxe_git.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | DESCRIPTION = "Open source network boot firmware" | ||
2 | HOMEPAGE = "http://ipxe.org" | ||
3 | LICENSE = "GPLv2" | ||
4 | DEPENDS = "binutils-native perl-native syslinux mtools-native" | ||
5 | LIC_FILES_CHKSUM = "file://../COPYING;md5=8ca43cbc842c2336e835926c2166c28b" | ||
6 | |||
7 | SRCREV = "8c43891db4eb131d019360ccfb619f235b17eb58" | ||
8 | PV = "gitr${SRCPV}" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRC_URI = "git://git.ipxe.org/ipxe.git;protocol=git" | ||
12 | |||
13 | FILES_${PN} = "/usr/share/firmware/*.rom" | ||
14 | |||
15 | EXTRA_OEMAKE = "NO_WERROR=1" | ||
16 | #PARALLEL_MAKE="" | ||
17 | |||
18 | S = "${WORKDIR}/git/src" | ||
19 | |||
20 | do_configure() { | ||
21 | sed -i s#^ISOLINUX_BIN[\ \\t]*=.*#ISOLINUX_BIN\ =\ ${STAGING_DIR_TARGET}/usr/lib/syslinux/isolinux.bin# arch/i386/Makefile | ||
22 | } | ||
23 | |||
24 | do_compile() { | ||
25 | oe_runmake | ||
26 | } | ||
27 | |||
28 | do_install() { | ||
29 | install -d ${D}/usr/share/firmware | ||
30 | install ${S}/bin/*.rom ${D}/usr/share/firmware/ | ||
31 | } | ||
diff --git a/recipes-extended/seabios/seabios/defconfig b/recipes-extended/seabios/seabios/defconfig new file mode 100644 index 00000000..d4474bab --- /dev/null +++ b/recipes-extended/seabios/seabios/defconfig | |||
@@ -0,0 +1,102 @@ | |||
1 | # | ||
2 | # Automatically generated make config: don't edit | ||
3 | # SeaBIOS Configuration | ||
4 | # Wed Sep 18 14:08:45 2013 | ||
5 | # | ||
6 | |||
7 | # | ||
8 | # General Features | ||
9 | # | ||
10 | # CONFIG_COREBOOT is not set | ||
11 | CONFIG_QEMU=y | ||
12 | # CONFIG_CSM is not set | ||
13 | CONFIG_QEMU_HARDWARE=y | ||
14 | CONFIG_XEN=y | ||
15 | CONFIG_THREADS=y | ||
16 | # CONFIG_THREAD_OPTIONROMS is not set | ||
17 | CONFIG_RELOCATE_INIT=y | ||
18 | CONFIG_BOOTMENU=y | ||
19 | # CONFIG_BOOTSPLASH is not set | ||
20 | CONFIG_BOOTORDER=y | ||
21 | # CONFIG_ENTRY_EXTRASTACK is not set | ||
22 | |||
23 | # | ||
24 | # Hardware support | ||
25 | # | ||
26 | CONFIG_ATA=y | ||
27 | # CONFIG_ATA_DMA is not set | ||
28 | # CONFIG_ATA_PIO32 is not set | ||
29 | CONFIG_AHCI=y | ||
30 | CONFIG_VIRTIO_BLK=y | ||
31 | CONFIG_VIRTIO_SCSI=y | ||
32 | CONFIG_ESP_SCSI=y | ||
33 | CONFIG_LSI_SCSI=y | ||
34 | CONFIG_MEGASAS=y | ||
35 | CONFIG_FLOPPY=y | ||
36 | CONFIG_PS2PORT=y | ||
37 | CONFIG_USB=y | ||
38 | CONFIG_USB_UHCI=y | ||
39 | CONFIG_USB_OHCI=y | ||
40 | CONFIG_USB_EHCI=y | ||
41 | CONFIG_USB_MSC=y | ||
42 | CONFIG_USB_UAS=y | ||
43 | CONFIG_USB_HUB=y | ||
44 | CONFIG_USB_KEYBOARD=y | ||
45 | CONFIG_USB_MOUSE=y | ||
46 | CONFIG_SERIAL=y | ||
47 | CONFIG_LPT=y | ||
48 | # CONFIG_USE_SMM is not set | ||
49 | CONFIG_MTRR_INIT=y | ||
50 | CONFIG_PMTIMER=y | ||
51 | |||
52 | # | ||
53 | # BIOS interfaces | ||
54 | # | ||
55 | CONFIG_DRIVES=y | ||
56 | CONFIG_CDROM_BOOT=y | ||
57 | CONFIG_CDROM_EMU=y | ||
58 | CONFIG_PCIBIOS=y | ||
59 | CONFIG_APMBIOS=y | ||
60 | CONFIG_PNPBIOS=y | ||
61 | CONFIG_OPTIONROMS=y | ||
62 | CONFIG_OPTIONROMS_DEPLOYED=y | ||
63 | CONFIG_PMM=y | ||
64 | CONFIG_BOOT=y | ||
65 | CONFIG_KEYBOARD=y | ||
66 | CONFIG_KBD_CALL_INT15_4F=y | ||
67 | CONFIG_MOUSE=y | ||
68 | CONFIG_S3_RESUME=y | ||
69 | CONFIG_VGAHOOKS=y | ||
70 | # CONFIG_DISABLE_A20 is not set | ||
71 | |||
72 | # | ||
73 | # BIOS Tables | ||
74 | # | ||
75 | # CONFIG_PIRTABLE is not set | ||
76 | # CONFIG_MPTABLE is not set | ||
77 | # CONFIG_SMBIOS is not set | ||
78 | # CONFIG_ACPI is not set | ||
79 | |||
80 | # | ||
81 | # VGA ROM | ||
82 | # | ||
83 | # CONFIG_NO_VGABIOS is not set | ||
84 | # CONFIG_VGA_STANDARD_VGA is not set | ||
85 | # CONFIG_VGA_CIRRUS is not set | ||
86 | # CONFIG_VGA_BOCHS is not set | ||
87 | # CONFIG_VGA_GEODEGX2 is not set | ||
88 | # CONFIG_VGA_GEODELX is not set | ||
89 | # CONFIG_VGA_XENGFX is not set | ||
90 | # CONFIG_BUILD_VGABIOS is not set | ||
91 | # CONFIG_VGA_VBE is not set | ||
92 | # CONFIG_VGA_PCI is not set | ||
93 | # CONFIG_OVERRIDE_PCI_ID is not set | ||
94 | # CONFIG_VGA_VID=0x5853 | ||
95 | # CONFIG_VGA_DID=0xC147 | ||
96 | |||
97 | # | ||
98 | # Debugging | ||
99 | # | ||
100 | CONFIG_DEBUG_LEVEL=2 | ||
101 | # CONFIG_DEBUG_SERIAL is not set | ||
102 | CONFIG_DEBUG_IO=y | ||
diff --git a/recipes-extended/seabios/seabios/hostcc.patch b/recipes-extended/seabios/seabios/hostcc.patch new file mode 100644 index 00000000..f665e1a3 --- /dev/null +++ b/recipes-extended/seabios/seabios/hostcc.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | diff -ur a/Makefile b/Makefile | ||
2 | --- a/Makefile 2015-02-02 22:02:58.651041951 -0500 | ||
3 | +++ b/Makefile 2015-02-02 23:08:13.884514003 -0500 | ||
4 | @@ -8,7 +8,7 @@ | ||
5 | OUT=out/ | ||
6 | |||
7 | # Common command definitions | ||
8 | -export HOSTCC := $(CC) | ||
9 | +export HOSTCC ?= $(CC) | ||
10 | export CONFIG_SHELL := sh | ||
11 | export KCONFIG_AUTOHEADER := autoconf.h | ||
12 | export KCONFIG_CONFIG := $(CURDIR)/.config | ||
13 | @@ -22,7 +22,7 @@ | ||
14 | OBJDUMP=$(CROSS_PREFIX)objdump | ||
15 | STRIP=$(CROSS_PREFIX)strip | ||
16 | PYTHON=python | ||
17 | -CPP=cpp | ||
18 | +CPP=$(CROSS_PREFIX)cpp | ||
19 | IASL:=iasl | ||
20 | LD32BIT_FLAG:=-melf_i386 | ||
21 | |||
diff --git a/recipes-extended/seabios/seabios_1.7.5.bb b/recipes-extended/seabios/seabios_1.7.5.bb new file mode 100644 index 00000000..5ff00045 --- /dev/null +++ b/recipes-extended/seabios/seabios_1.7.5.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "SeaBIOS" | ||
2 | HOMEPAGE = "http://www.coreboot.org/SeaBIOS" | ||
3 | LICENSE = "LGPLv3" | ||
4 | SECTION = "firmware" | ||
5 | |||
6 | SRC_URI = " \ | ||
7 | http://code.coreboot.org/p/seabios/downloads/get/${PN}-${PV}.tar.gz \ | ||
8 | file://hostcc.patch \ | ||
9 | file://defconfig \ | ||
10 | " | ||
11 | |||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \ | ||
13 | file://COPYING.LESSER;md5=6a6a8e020838b23406c81b19c1d46df6 \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "3f1e17485ca327b245ae5938d9aa02d9" | ||
17 | SRC_URI[sha256sum] = "858d9eda4ad91efa1c45a5a401d560ef9ca8dd172f03b0a106f06661c252dc51" | ||
18 | |||
19 | PR = "r0" | ||
20 | |||
21 | FILES_${PN} = "/usr/share/firmware" | ||
22 | |||
23 | DEPENDS = "util-linux-native file-native bison-native flex-native gettext-native iasl-native python-native" | ||
24 | |||
25 | TUNE_CCARGS = "" | ||
26 | PARALLEL_MAKE = "" | ||
27 | export HOSTCC="${BUILD_CC}" | ||
28 | export CROSS_PREFIX="${TARGET_PREFIX}" | ||
29 | |||
30 | do_configure() { | ||
31 | install -m 0644 "${WORKDIR}/defconfig" .config | ||
32 | oe_runmake oldconfig | ||
33 | } | ||
34 | |||
35 | do_compile() { | ||
36 | unset CPP | ||
37 | unset CPPFLAGS | ||
38 | oe_runmake | ||
39 | } | ||
40 | |||
41 | do_install() { | ||
42 | oe_runmake | ||
43 | install -d ${D}/usr/share/firmware | ||
44 | install -m 0644 out/bios.bin ${D}/usr/share/firmware/ | ||
45 | } | ||
46 | |||
diff --git a/recipes-extended/vgabios/vgabios_0.7a.bb b/recipes-extended/vgabios/vgabios_0.7a.bb new file mode 100644 index 00000000..6addeffe --- /dev/null +++ b/recipes-extended/vgabios/vgabios_0.7a.bb | |||
@@ -0,0 +1,31 @@ | |||
1 | DESCRIPTION = "Plex86/Bochs LGPL VGABios" | ||
2 | HOMEPAGE = "http://www.nongnu.org/vgabios/" | ||
3 | LICENSE = "LGPLv2.1" | ||
4 | SECTION = "firmware" | ||
5 | DEPENDS = "" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | ||
8 | DEPENDS = "" | ||
9 | |||
10 | SRC_URI = "http://savannah.gnu.org/download/vgabios/${PN}-${PV}.tgz" | ||
11 | |||
12 | SRC_URI[md5sum] = "2c0fe5c0ca08082a9293e3a7b23dc900" | ||
13 | SRC_URI[sha256sum] = "9d24c33d4bfb7831e2069cf3644936a53ef3de21d467872b54ce2ea30881b865" | ||
14 | |||
15 | PR = "r0" | ||
16 | |||
17 | FILES_${PN} = "/usr/share/firmware/${PN}-${PV}*.bin" | ||
18 | FILES_${PN}-dbg = "/usr/share/firmware/${PN}-${PV}*.debug.bin" | ||
19 | |||
20 | S = "${WORKDIR}/${PN}-${PV}" | ||
21 | |||
22 | do_configure() { | ||
23 | echo "Skip do_configure" | ||
24 | } | ||
25 | |||
26 | do_install() { | ||
27 | install -d ${D}/usr/share/firmware | ||
28 | install -m 0644 VGABIOS-lgpl-latest.bin ${D}/usr/share/firmware/${PN}-${PV}.bin | ||
29 | install -m 0644 VGABIOS-lgpl-latest.cirrus.bin ${D}/usr/share/firmware/${PN}-${PV}.cirrus.bin | ||
30 | } | ||
31 | |||