[oe] [meta-oe][PATCH v2] stm32flash: add recipe

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri May 18 17:20:49 UTC 2018


We have had our own recipe for stm32flash for a few years, so I 
have a couple of comments to improve this recipe.

> -----Original Message-----
> From: openembedded-devel-bounces at lists.openembedded.org
> [mailto:openembedded-devel-bounces at lists.openembedded.org] On Behalf Of
> Richard Leitner
> Sent: den 18 maj 2018 09:50
> To: openembedded-devel at lists.openembedded.org
> Subject: [oe] [meta-oe][PATCH v2] stm32flash: add recipe
> 
> Add recipe for version 0.5 of stm32flash, an open source flash program for
> STM32 using the ST serial bootloader.
> 
> Signed-off-by: Richard Leitner <richard.leitner at skidata.com>
> ---
>  meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>  create mode 100644 meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb
> 
> diff --git a/meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb b/meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb
> new file mode 100644
> index 000000000..7f1a7823a
> --- /dev/null
> +++ b/meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb
> @@ -0,0 +1,16 @@
> +SUMMARY = "Open source flash program for STM32 using the ST serial bootloader"
> +HOMEPAGE = "https://sourceforge.net/projects/stm32flash/"
> +BUGTRACKER = "https://sourceforge.net/p/stm32flash/tickets/"
> +LICENSE = "GPLv2"

The license is GPLv2 or later, so change this to:

LICENSE = "GPL-2.0+"

> +LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> +
> +inherit autotools-brokensep

Remove the inherit of autotools-brokensep. This is not an 
autotools-based package.

> +
> +EXTRA_OEMAKE = "PREFIX=${prefix}"

Remove this as well (see below).

> +
> +S = "${WORKDIR}/${PN}"
> +
> +SRC_URI = "https://prdownloads.sourceforge.net/stm32flash/stm32flash-${PV}.tar.gz"

Replace with:

SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"

> +
> +SRC_URI[md5sum] = "40f673502949f3bb655d2bcc539d7b6a"
> +SRC_URI[sha256sum] = "97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306"

Add:

do_install() {
	oe_runmake install DESTDIR=${D} PREFIX=${prefix}
}

//Peter




More information about the Openembedded-devel mailing list