diff options
| author | Christopher Clark <christopher.clark6@baesystems.com> | 2017-08-23 14:43:32 -0700 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2017-08-24 09:55:40 -0400 |
| commit | 140c6836ed5ba04383d18236840b4f86d6008278 (patch) | |
| tree | 4aeb59ceaf8b3f11a3775a3508046d08018a2b3b /recipes-extended | |
| parent | aecdc17e0d9202954e8a8bf9cd80c0cb3505db41 (diff) | |
| download | meta-virtualization-140c6836ed5ba04383d18236840b4f86d6008278.tar.gz | |
vgabios : extract biossums tool and build it separately, native
The biossums tool is used to generate the vgabios build product.
This patch:
* adds a separate recipe "biossums" for the tool
* makes the vgabios recipe depend upon biossums-native
* makes the vgabios recipe use the native binary rather than a locally built one
The upstream source tarball contains binaries so these are removed
before compiling proceeds.
Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-extended')
| -rw-r--r-- | recipes-extended/vgabios/biossums_0.7a.bb | 36 | ||||
| -rw-r--r-- | recipes-extended/vgabios/vgabios_0.7a.bb | 6 |
2 files changed, 40 insertions, 2 deletions
diff --git a/recipes-extended/vgabios/biossums_0.7a.bb b/recipes-extended/vgabios/biossums_0.7a.bb new file mode 100644 index 00000000..10bd0142 --- /dev/null +++ b/recipes-extended/vgabios/biossums_0.7a.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | DESCRIPTION = "biossums tool for building Plex86/Bochs LGPL VGABios" | ||
| 2 | HOMEPAGE = "http://www.nongnu.org/vgabios/" | ||
| 3 | LICENSE = "LGPLv2.1" | ||
| 4 | SECTION = "firmware" | ||
| 5 | |||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | ||
| 7 | |||
| 8 | SRC_URI = "http://savannah.gnu.org/download/vgabios/vgabios-${PV}.tgz" | ||
| 9 | |||
| 10 | SRC_URI[md5sum] = "2c0fe5c0ca08082a9293e3a7b23dc900" | ||
| 11 | SRC_URI[sha256sum] = "9d24c33d4bfb7831e2069cf3644936a53ef3de21d467872b54ce2ea30881b865" | ||
| 12 | |||
| 13 | BBCLASSEXTEND = "native" | ||
| 14 | |||
| 15 | FILES_${PN} = "${bindir}/biossums" | ||
| 16 | |||
| 17 | S = "${WORKDIR}/vgabios-${PV}" | ||
| 18 | |||
| 19 | do_configure() { | ||
| 20 | # Don't override the compiler or its flags: | ||
| 21 | sed 's,^CC,DISABLED_CC,' -i Makefile | ||
| 22 | sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile | ||
| 23 | # Supply the C flags to the compiler: | ||
| 24 | sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile | ||
| 25 | } | ||
| 26 | |||
| 27 | do_compile() { | ||
| 28 | # clean removes binaries distributed with source | ||
| 29 | oe_runmake clean | ||
| 30 | oe_runmake biossums | ||
| 31 | } | ||
| 32 | |||
| 33 | do_install() { | ||
| 34 | mkdir -p "${D}${bindir}" | ||
| 35 | install -m 0755 biossums "${D}${bindir}" | ||
| 36 | } | ||
diff --git a/recipes-extended/vgabios/vgabios_0.7a.bb b/recipes-extended/vgabios/vgabios_0.7a.bb index 0ed8bb4b..8c890419 100644 --- a/recipes-extended/vgabios/vgabios_0.7a.bb +++ b/recipes-extended/vgabios/vgabios_0.7a.bb | |||
| @@ -3,7 +3,7 @@ HOMEPAGE = "http://www.nongnu.org/vgabios/" | |||
| 3 | LICENSE = "LGPLv2.1" | 3 | LICENSE = "LGPLv2.1" |
| 4 | SECTION = "firmware" | 4 | SECTION = "firmware" |
| 5 | 5 | ||
| 6 | DEPENDS = "dev86-native" | 6 | DEPENDS = "dev86-native biossums-native" |
| 7 | 7 | ||
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" |
| 9 | 9 | ||
| @@ -20,7 +20,9 @@ FILES_${PN}-dbg = "/usr/share/firmware/${PN}-${PV}*.debug.bin" | |||
| 20 | S = "${WORKDIR}/${PN}-${PV}" | 20 | S = "${WORKDIR}/${PN}-${PV}" |
| 21 | 21 | ||
| 22 | do_configure() { | 22 | do_configure() { |
| 23 | echo "Skip do_configure" | 23 | # Override to use the native-built biossums tool: |
| 24 | sed 's,./biossums,biossums,' -i Makefile | ||
| 25 | sed 's,$(CC) -o biossums biossums.c,touch biossums,' -i Makefile | ||
| 24 | } | 26 | } |
| 25 | 27 | ||
| 26 | do_install() { | 28 | do_install() { |
