From 140c6836ed5ba04383d18236840b4f86d6008278 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Wed, 23 Aug 2017 14:43:32 -0700 Subject: 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 Signed-off-by: Bruce Ashfield --- recipes-extended/vgabios/biossums_0.7a.bb | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 recipes-extended/vgabios/biossums_0.7a.bb (limited to 'recipes-extended/vgabios/biossums_0.7a.bb') 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 @@ +DESCRIPTION = "biossums tool for building Plex86/Bochs LGPL VGABios" +HOMEPAGE = "http://www.nongnu.org/vgabios/" +LICENSE = "LGPLv2.1" +SECTION = "firmware" + +LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589" + +SRC_URI = "http://savannah.gnu.org/download/vgabios/vgabios-${PV}.tgz" + +SRC_URI[md5sum] = "2c0fe5c0ca08082a9293e3a7b23dc900" +SRC_URI[sha256sum] = "9d24c33d4bfb7831e2069cf3644936a53ef3de21d467872b54ce2ea30881b865" + +BBCLASSEXTEND = "native" + +FILES_${PN} = "${bindir}/biossums" + +S = "${WORKDIR}/vgabios-${PV}" + +do_configure() { + # Don't override the compiler or its flags: + sed 's,^CC,DISABLED_CC,' -i Makefile + sed 's,^CFLAGS,DISABLED_CFLAGS,' -i Makefile + # Supply the C flags to the compiler: + sed 's,-o biossums,$(CFLAGS) -o biossums,' -i Makefile +} + +do_compile() { + # clean removes binaries distributed with source + oe_runmake clean + oe_runmake biossums +} + +do_install() { + mkdir -p "${D}${bindir}" + install -m 0755 biossums "${D}${bindir}" +} -- cgit v1.2.3-54-g00ecf