Skip to contentSkip to conversation

stm32flash: add recipe

PATCH Superseded Richard Leitner 3 participants 3 messages May 16, 2018 – May 18, 2018 Arm STM32

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stm32flash: add recipe

Add recipe for version 0.5 of stm32flash, an open source flash program for STM32 using the ST serial bootloader.

---
 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
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +16 -0
new file mode 100644
index 000000000..d401981ff
@@ -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"
+LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+inherit autotools-brokensep
+
+S = "${WORKDIR}/${PN}"
+
+SRC_URI = "https://prdownloads.sourceforge.net/stm32flash/stm32flash-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "40f673502949f3bb655d2bcc539d7b6a"
+SRC_URI[sha256sum] = "97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306"
+
+FILES_${PN} = "/usr/local/bin/stm32flash"
Signature · 1 line
2.11.0
#1 lore raw
Quoted 15 lines · On 05/16/2018 03:50 PM, [email protected] wrote:

Add recipe for version 0.5 of stm32flash, an open source flash program for STM32 using the ST serial bootloader.

---
 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
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +0 -0
new file mode 100644
index 000000000..d401981ff

meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb line 9

Quoted 9 lines
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +9 -0
@@ -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"
+LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+inherit autotools-brokensep
+
+S = "${WORKDIR}/${PN}"

It should be BPN instead of PN, otherwise this will break with multilib.

meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb line 11

Quoted 2 lines
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +2 -0
+
+SRC_URI = "https://prdownloads.sourceforge.net/stm32flash/stm32flash-${PV}.tar.gz"

This can be https://prdownloads.sourceforge.net/${BPN}/${BP}.tar.gz

#2 lore raw
In reply to Richard Leitner
Quoted 21 lines · Richard Leitner

Add recipe for version 0.5 of stm32flash, an open source flash program for STM32 using the ST serial bootloader.

---
 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
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +6 -0
new file mode 100644
index 000000000..d401981ff
@@ -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"
+LIC_FILES_CHKSUM = "file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+

meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb line 16

Quoted 10 lines
meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb new file +10 -0
+inherit autotools-brokensep
+
+S = "${WORKDIR}/${PN}"
+
+SRC_URI = "https://prdownloads.sourceforge.net/stm32flash/stm32flash-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "40f673502949f3bb655d2bcc539d7b6a"
+SRC_URI[sha256sum] = "97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306"
+
+FILES_${PN} = "/usr/local/bin/stm32flash"

Please add this patch

(quoted diff) +0 -0

b/meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb index d401981ff9..7f1a7823a5 100644

meta-oe/recipes-support/stm32flash/stm32flash_0.5.bb +0 -0
@@ -6,11 +6,11 @@ LIC_FILES_CHKSUM =

"file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit autotools-brokensep

+EXTRA_OEMAKE = "PREFIX=${prefix}"
+
S = "${WORKDIR}/${PN}"

SRC_URI = "https://prdownloads.sourceforge.net/stm32flash/stm32flash-${PV}.tar.gz"

SRC_URI[md5sum] = "40f673502949f3bb655d2bcc539d7b6a" SRC_URI[sha256sum] =
"97aa9422ef02e82f7da9039329e21a437decf972cb3919ad817f70ac9a49e306" -
-FILES_${PN} = "/usr/local/bin/stm32flash"

and squash it into original patch and send a v2