Skip to contentSkip to conversation

boardid: add recipe

PATCH Superseded João Henrique Ferreira de Freitas 2 participants 2 messages Sep 19

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boardid: add recipe

---
 .../boardid/boardid_1.15.0.bb                 | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-extended/boardid/boardid_1.15.0.bb
meta-oe/recipes-extended/boardid/boardid_1.15.0.bb new file +28 -0
new file mode 100644
index 0000000000..8e88ec9371
@@ -0,0 +1,28 @@
+SUMMARY = "Print out a platform-specific board serial number"
+DESCRIPTION = "This program looks up a device-specific serial number and prints it. \
+The original use was to provide some non-changing and unique material for dynamically \
+creating device names on a local LAN. There are implementation specific boards as well \
+generic mechanisms for getting serial number."
+HOMEPAGE = "https://github.com/nerves-project/boardid"
+LICENSE = "Apache-2.0 AND CC-BY-4.0 AND CC0-1.0"
+LIC_FILES_CHKSUM = "file://LICENSES/Apache-2.0.txt;md5=c846ebb396f8b174b10ded4771514fcc \
+                    file://LICENSES/CC0-1.0.txt;md5=65d3616852dbf7b1a6d4b53b00626032 \
+                    file://LICENSES/CC-BY-4.0.txt;md5=9b33bbd06fb58995fb0e299cd38d1838"
+
+SRC_URI = "git://github.com/nerves-project/boardid/;protocol=https;branch=main"
+
+PV = "1.15.0"
+SRCREV = "2ccf22a8be22d7597e16fb225c1173876674f7a4"
+
+do_configure () {
+	:
+}
+
+do_compile () {
+	oe_runmake
+}
+
+do_install () {
+        install -d ${D}${bindir}
+        install -m 0755 ${S}/boardid ${D}${bindir}
+}
#1 lore raw
Quoted 1 line · João Henrique Ferreira de Freitas via lists.openembedded.org

+SRC_URI = "git://github.com/nerves-project/boardid/;protocol=https;branch=main"

Pass tag=v${PV} too here, so that the SRCREV is validated against the tag name.

Quoted 1 line

+PV = "1.15.0"

This is the default, as the version in the filename sets PV. You can remove this.

meta-oe/recipes-extended/boardid/boardid_1.15.0.bb line 19

Quoted 3 lines
meta-oe/recipes-extended/boardid/boardid_1.15.0.bb new file +3 -0
+do_configure () {
+ :
+}

Remove, the default will try to do a clean if needed.

meta-oe/recipes-extended/boardid/boardid_1.15.0.bb line 23

Quoted 3 lines
meta-oe/recipes-extended/boardid/boardid_1.15.0.bb new file +3 -0
+do_compile () {
+ oe_runmake
+}

This is the default, so you can remove this too.

Cheers,
Ross