All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bruce Ashfield <bruce.ashfield@gmail.com>
To: Ross Burton <ross.burton@arm.com>
Cc: meta-virtualization@lists.yoctoproject.org, nd@arm.com
Subject: Re: [meta-virtualization] [PATCH 1/2] vgabios: upgrade to 0.8a and cleanup recipe
Date: Mon, 2 May 2022 14:08:06 -0400	[thread overview]
Message-ID: <20220502180805.GB33182@gmail.com> (raw)
In-Reply-To: <20220429121136.2287359-1-ross.burton@arm.com>

both patches are merged.

Bruce

In message: [meta-virtualization] [PATCH 1/2] vgabios: upgrade to 0.8a and cleanup recipe
on 29/04/2022 Ross Burton wrote:

> Upgrade to 0.8a.
> 
> License checksum updated as the FSF street address changed.
> 
> Apply a patch to use the correct host compiler when building biossums,
> removing the need for a separate biossums-native recipe.
> 
> Don't hardcode /usr/share, use ${datadir}.
> 
> Install all found firmware (including the new Banshee BIOS in 0.8a) and
> the debug files which were not installed but intended to be packaged.
> 
> Remove redundant PR and S assignments, as these are the default values.
> 
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---
>  recipes-extended/vgabios/biossums_0.7a.bb     | 37 -------------------
>  recipes-extended/vgabios/files/build-cc.patch | 30 +++++++++++++++
>  recipes-extended/vgabios/vgabios_0.7a.bb      | 33 -----------------
>  recipes-extended/vgabios/vgabios_0.8a.bb      | 25 +++++++++++++
>  4 files changed, 55 insertions(+), 70 deletions(-)
>  delete mode 100644 recipes-extended/vgabios/biossums_0.7a.bb
>  create mode 100644 recipes-extended/vgabios/files/build-cc.patch
>  delete mode 100644 recipes-extended/vgabios/vgabios_0.7a.bb
>  create mode 100644 recipes-extended/vgabios/vgabios_0.8a.bb
> 
> diff --git a/recipes-extended/vgabios/biossums_0.7a.bb b/recipes-extended/vgabios/biossums_0.7a.bb
> deleted file mode 100644
> index 95483ff..0000000
> --- a/recipes-extended/vgabios/biossums_0.7a.bb
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -DESCRIPTION = "biossums tool for building Plex86/Bochs LGPL VGABios"
> -HOMEPAGE = "http://www.nongnu.org/vgabios/"
> -LICENSE = "LGPL-2.1-only"
> -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
> -    sed 's,^LDFLAGS,DISABLED_LDFLAGS,' -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}"
> -}
> diff --git a/recipes-extended/vgabios/files/build-cc.patch b/recipes-extended/vgabios/files/build-cc.patch
> new file mode 100644
> index 0000000..b64e5ef
> --- /dev/null
> +++ b/recipes-extended/vgabios/files/build-cc.patch
> @@ -0,0 +1,30 @@
> +Use the host compiler to build the tools we need at runtime.
> +
> +Upstream-Status: Pending
> +Signed-off-by: Ross Burton <ross.burton@arm.com>
> +
> +Index: Makefile
> +===================================================================
> +--- a/Makefile	(revision 298)
> ++++ b/Makefile	(working copy)
> +@@ -5,6 +5,7 @@
> + SHELL = /bin/sh
> + 
> + CC      = gcc
> ++HOSTCC = gcc
> + CFLAGS  = -g -O2 -Wall -Wstrict-prototypes
> + LDFLAGS = 
> + 
> +@@ -79,10 +80,10 @@
> + 	tar czvf ../$(RELEASE).tgz --exclude .svn -C .. $(RELEASE)/
> + 
> + biossums: biossums.c
> +-	$(CC) -o biossums biossums.c
> ++	$(HOSTCC) -o biossums biossums.c
> + 
> + vbetables-gen: vbetables-gen.c
> +-	$(CC) -o vbetables-gen vbetables-gen.c
> ++	$(HOSTCC) -o vbetables-gen vbetables-gen.c
> + 
> + vbetables.h: vbetables-gen
> + 	./vbetables-gen > $@
> diff --git a/recipes-extended/vgabios/vgabios_0.7a.bb b/recipes-extended/vgabios/vgabios_0.7a.bb
> deleted file mode 100644
> index f443aed..0000000
> --- a/recipes-extended/vgabios/vgabios_0.7a.bb
> +++ /dev/null
> @@ -1,33 +0,0 @@
> -DESCRIPTION = "Plex86/Bochs LGPL VGABios"
> -HOMEPAGE = "http://www.nongnu.org/vgabios/"
> -LICENSE = "LGPL-2.1-only"
> -SECTION = "firmware"
> -
> -DEPENDS = "dev86-native biossums-native"
> -
> -LIC_FILES_CHKSUM = "file://COPYING;md5=dcf3c825659e82539645da41a7908589"
> -
> -SRC_URI =  "http://savannah.gnu.org/download/vgabios/${BPN}-${PV}.tgz"
> -
> -SRC_URI[md5sum] = "2c0fe5c0ca08082a9293e3a7b23dc900"
> -SRC_URI[sha256sum] = "9d24c33d4bfb7831e2069cf3644936a53ef3de21d467872b54ce2ea30881b865"
> -
> -PR = "r0"
> -
> -FILES:${PN} = "/usr/share/firmware/${PN}-${PV}*.bin"
> -FILES:${PN}-dbg = "/usr/share/firmware/${PN}-${PV}*.debug.bin"
> -
> -S = "${WORKDIR}/${PN}-${PV}"
> -
> -do_configure() {
> -    # Override to use the native-built biossums tool:
> -    sed 's,./biossums,biossums,' -i Makefile
> -    sed 's,$(CC) -o biossums biossums.c,touch biossums,' -i Makefile
> -}
> -
> -do_install() {
> -    install -d ${D}/usr/share/firmware
> -    install -m 0644 VGABIOS-lgpl-latest.bin ${D}/usr/share/firmware/${PN}-${PV}.bin
> -    install -m 0644 VGABIOS-lgpl-latest.cirrus.bin ${D}/usr/share/firmware/${PN}-${PV}.cirrus.bin
> -}
> -
> diff --git a/recipes-extended/vgabios/vgabios_0.8a.bb b/recipes-extended/vgabios/vgabios_0.8a.bb
> new file mode 100644
> index 0000000..044bb4e
> --- /dev/null
> +++ b/recipes-extended/vgabios/vgabios_0.8a.bb
> @@ -0,0 +1,25 @@
> +DESCRIPTION = "Plex86/Bochs LGPL VGABios"
> +HOMEPAGE = "http://www.nongnu.org/vgabios/"
> +LICENSE = "LGPL-2.1-only"
> +SECTION = "firmware"
> +
> +DEPENDS = "dev86-native"
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=fae731a3adbc92fd8bb1730d1f2455bc"
> +
> +SRC_URI =  "http://savannah.gnu.org/download/vgabios/${BP}.tgz \
> +            file://build-cc.patch"
> +SRC_URI[sha256sum] = "481042240ef0f1c918780c92a6bb42ad4d3f5d989b29502fa7ee7faf13a041b9"
> +
> +EXTRA_OEMAKE = "HOSTCC="${BUILD_CC}""
> +
> +do_install() {
> +    install -d ${D}${datadir}/firmware
> +    for file in VGABIOS*.bin; do
> +        target=$(echo $file | sed s/VGABIOS-lgpl-latest/${BP}/)
> +        install -m0644 $file ${D}${datadir}/firmware/$target
> +    done
> +}
> +
> +FILES:${PN} = "${datadir}/firmware/${BP}*.bin"
> +FILES:${PN}-dbg = "${datadir}/firmware/${BP}*.debug.bin"
> -- 
> 2.25.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7230): https://lists.yoctoproject.org/g/meta-virtualization/message/7230
> Mute This Topic: https://lists.yoctoproject.org/mt/90774353/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



      parent reply	other threads:[~2022-05-02 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-29 12:11 [PATCH 1/2] vgabios: upgrade to 0.8a and cleanup recipe Ross Burton
2022-04-29 12:11 ` [PATCH 2/2] xen: use vgabios 0.8a Ross Burton
2022-05-02 18:08 ` Bruce Ashfield [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220502180805.GB33182@gmail.com \
    --to=bruce.ashfield@gmail.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    --cc=nd@arm.com \
    --cc=ross.burton@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.