Skip to contentSkip to conversation

ipc: ti-rpmsg-char: Add initial recipes

PATCH Applied Suman Anna 3 participants 7 messages Oct 21, 2020

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 1/1 ipc: ti-rpmsg-char: Add initial recipes

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
 recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
 recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +12 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"
+
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"
+
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +19 -0
new file mode 100644
index 000000000000..454deea674b3
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"
+
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI = "${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +11 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"
+
+PR = "r0"
Signature · 1 line
2.28.0
#1 lore raw

Suman

Quoted 65 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
  recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
  recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
  recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
  3 files changed, 42 insertions(+)

create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +12 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"
+
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"
+
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +19 -0
new file mode 100644
index 000000000000..454deea674b3
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"
+
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI = "${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +1 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"

recipes-ti/ipc/ti-rpmsg-char_git.bb line 11

Quoted 10 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +10 -0
+
+require ti-rpmsg-char.inc
+
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"
+
+PR = "r0"

Is this just for master or is it applicable to dunfell?

Otherwise it looks fine to me

Dan

author
#2 lore raw
Quoted 78 lines · Dan Murphy

Suman

Quoted 75 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
  recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++ recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++ recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++

  3 files changed, 42 insertions(+)

  create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +12 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"
+
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"
+
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +4 -0
new file mode 100644
index 000000000000..454deea674b3
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"

recipes-ti/ipc/ti-rpmsg-char.inc new file +10 -0
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"
+
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI =

"${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"

recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +5 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
+DEPENDS += "virtual/kernel"
Quoted 8 lines

recipes-ti/ipc/ti-rpmsg-char_git.bb line 11

Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +6 -0
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"
+
+PR = "r0"

Is this just for master or is it applicable to dunfell?

It is for both as my patch title suggests. I have generated the patch using dunfell branch, and needed on it for sure for our SDKs. Let me know if it doesn't apply cleanly on master.

regards
Suman

Applied
#3 lore raw

Suman

Quoted 86 lines · Suman Anna
Quoted 77 lines · Dan Murphy

Suman

Quoted 74 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
   recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
   recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
   recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
   3 files changed, 42 insertions(+)

  create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +12 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"
+
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"
+
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +4 -0
new file mode 100644
index 000000000000..454deea674b3
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"

recipes-ti/ipc/ti-rpmsg-char.inc new file +10 -0
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"
+
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI =

"${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"

recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +4 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
Quoted 8 lines

recipes-ti/ipc/ti-rpmsg-char_git.bb line 11

Quoted 7 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +7 -0
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"
+
+PR = "r0"

Is this just for master or is it applicable to dunfell?

Quoted 3 lines

It is for both as my patch title suggests. I have generated the patch using dunfell branch, and needed on it for sure for our SDKs. Let me know if it doesn't apply cleanly on master.

Applied to dunfell-next

Dan

#4 lore raw
In reply to Suman Anna
Quoted 21 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
 recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
 recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +0 -0
new file mode 100644
index 000000000000..1d86e95526cc

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 1

Quoted 1 line
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +1 -0
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"

SUMMARY is for short one-liner description of the package DESCRIPTION is for longer, potentially multi-line detailed description If only short one is used, then should be SUMMARY

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 6

Quoted 4 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +4 -0
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"

This is redundant - build dependency automatically sets corresponding run-time dependency.

recipes-ti/ipc/ti-rpmsg-char.inc line 1

Quoted 12 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +5 -0
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +1 -0
new file mode 100644
index 000000000000..454deea674b3
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"

Same comment.

recipes-ti/ipc/ti-rpmsg-char.inc line 8

Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +6 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"

Any specific reason for these redirections? These were used by some recipes to be able to easily override these vars from outisde the recipe to point to some internal development tree... But even then there's another way to override those and don't use such indirect variables.

E.g. instead of this in the local.conf:

TI_RPMSG_CHAR_GIT_BRANCH = "next"

One can do this:

BRANCH_pn-ti-rpmsg-char = "next"
BRANCH_pn-ti-rpmsg-char-examples = "next"

recipes-ti/ipc/ti-rpmsg-char.inc line 14

Quoted 5 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI = "${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"

The part at the end is unnecessary - ;name=ti-rpmsg-char

Quoted 11 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +0 -0
new file mode 100644
index 000000000000..c132a390f301

recipes-ti/ipc/ti-rpmsg-char_git.bb line 9

Quoted 9 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +9 -0
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"

How do you pass kernel location for the header file? Is it hardcoded in the Makefile?

Quoted 4 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +1 -0
+PR = "r0"
Signature · 1 line
2.28.0
author
#5 lore raw

Hi Denys,

Thank you for the review comments.

Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
 recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
 recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb
Quoted 11 lines

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 1

Quoted 7 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +1 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"

SUMMARY is for short one-liner description of the package DESCRIPTION is for longer, potentially multi-line detailed description If only short one is used, then should be SUMMARY

OK, will update.

Quoted 9 lines

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 6

Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +4 -0
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"

This is redundant - build dependency automatically sets corresponding run-time dependency.

OK, will drop the RDEPENDS line.

Quoted 16 lines
Quoted 13 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +5 -0
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +0 -0
new file mode 100644
index 000000000000..454deea674b3

recipes-ti/ipc/ti-rpmsg-char.inc line 1

Quoted 1 line
recipes-ti/ipc/ti-rpmsg-char.inc new file +1 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"

Same comment.

OK, will fix this as well.

Quoted 13 lines

recipes-ti/ipc/ti-rpmsg-char.inc line 8

Quoted 8 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +6 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"

Any specific reason for these redirections? These were used by some recipes to be able to easily override these vars from outisde the recipe to point to some internal development tree... But even then there's another way to override those and don't use such indirect variables.

No specific reason, it was from an existing recipe I used as reference in creating this one. I can simplify by using the direct variables.

Quoted 9 lines

E.g. instead of this in the local.conf:

TI_RPMSG_CHAR_GIT_BRANCH = "next"

One can do this:

BRANCH_pn-ti-rpmsg-char = "next"
BRANCH_pn-ti-rpmsg-char-examples = "next"

But do we even need to separate this out for the two packages? Is there an issue with just using,

BRANCH = "master"

Quoted 9 lines

recipes-ti/ipc/ti-rpmsg-char.inc line 14

Quoted 7 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI = "${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"

The part at the end is unnecessary - ;name=ti-rpmsg-char

OK

Quoted 17 lines
Quoted 17 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +4 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
Quoted 8 lines

recipes-ti/ipc/ti-rpmsg-char_git.bb line 9

Quoted 5 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +5 -0
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"

How do you pass kernel location for the header file? Is it hardcoded in the Makefile?

The kernel header is from an already upstream driver, so is already exported and available on the host machine. I didn't have to pass any specific kernel path during the build, just the include line <linux/rpmsg.h> in the source code.

Granted, this might be needed on some older machines running an ancient kernel, that would need some additional conditionals to be added to the project build environment. I have added the do_compile for scalability if we end up adding functionality to the header from the kernel we are building.

regards
Suman

Quoted 6 lines
Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +1 -0
+PR = "r0"
Signature · 1 line
2.28.0
#6 lore raw
Quoted 90 lines · Suman Anna

Hi Denys,

Thank you for the review comments.

Quoted 16 lines · Denys Dmytriyenko
Quoted 15 lines · Suman Anna

Add the initial recipes for building the ti-rpmsg-char package. The library and examples are built using two separate recipes in ti-rpmsg-char_git.bb and ti-rpmsg-char-examples_git.bb.

---
 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb | 12 ++++++++++++
 recipes-ti/ipc/ti-rpmsg-char.inc             | 19 +++++++++++++++++++
 recipes-ti/ipc/ti-rpmsg-char_git.bb          | 11 +++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char-examples_git.bb
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char.inc
 create mode 100644 recipes-ti/ipc/ti-rpmsg-char_git.bb
Quoted 11 lines

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 1

Quoted 7 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +1 -0
new file mode 100644
index 000000000000..1d86e95526cc
@@ -0,0 +1,12 @@
+DESCRIPTION = "TI RPMsg Char Sample Applications and Tests"

SUMMARY is for short one-liner description of the package DESCRIPTION is for longer, potentially multi-line detailed description If only short one is used, then should be SUMMARY

OK, will update.

Quoted 9 lines

recipes-ti/ipc/ti-rpmsg-char-examples_git.bb line 6

Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +4 -0
+require ti-rpmsg-char.inc
+
+DEPENDS = "ti-rpmsg-char"
+RDEPENDS_${PN} = "ti-rpmsg-char"

This is redundant - build dependency automatically sets corresponding run-time dependency.

OK, will drop the RDEPENDS line.

Quoted 16 lines
Quoted 13 lines
recipes-ti/ipc/ti-rpmsg-char-examples_git.bb new file +5 -0
+inherit autotools pkgconfig
+
+EXTRA_OEMAKE = "-C ${B}/examples"
+
+PR = "r0"
recipes-ti/ipc/ti-rpmsg-char.inc new file +0 -0
new file mode 100644
index 000000000000..454deea674b3

recipes-ti/ipc/ti-rpmsg-char.inc line 1

Quoted 1 line
recipes-ti/ipc/ti-rpmsg-char.inc new file +1 -0
@@ -0,0 +1,19 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"

Same comment.

OK, will fix this as well.

Quoted 13 lines

recipes-ti/ipc/ti-rpmsg-char.inc line 8

Quoted 8 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +6 -0
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://${S}/src/rpmsg_char.c;beginline=1;endline=31;md5=71987db43a2159cff5ea00505c6fce58"
+
+TI_RPMSG_CHAR_GIT_URI = "git://git.ti.com/rpmsg/ti-rpmsg-char.git"
+TI_RPMSG_CHAR_GIT_PROTOCOL = "git"
+TI_RPMSG_CHAR_GIT_BRANCH = "master"

Any specific reason for these redirections? These were used by some recipes to be able to easily override these vars from outisde the recipe to point to some internal development tree... But even then there's another way to override those and don't use such indirect variables.

No specific reason, it was from an existing recipe I used as reference in creating this one. I can simplify by using the direct variables.

Quoted 7 lines

E.g. instead of this in the local.conf:

TI_RPMSG_CHAR_GIT_BRANCH = "next"

One can do this:

Quoted 7 lines
Quoted 2 lines

BRANCH_pn-ti-rpmsg-char = "next"
BRANCH_pn-ti-rpmsg-char-examples = "next"

But do we even need to separate this out for the two packages? Is there an issue with just using,

BRANCH = "master"

In the recipe, yes. I was showing how you could override it from outside of the recipe to point it to "next" branch w/o using TI_RPMSG_CHAR_GIT_BRANCH.

Quoted 36 lines
Quoted 7 lines

recipes-ti/ipc/ti-rpmsg-char.inc line 14

Quoted 5 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+# Initial 0.1.0 release
+TI_RPMSG_CHAR_SRCREV = "9be402c2bf4053900b6b9a8092fbb42e7e303108"
+
+BRANCH = "${TI_RPMSG_CHAR_GIT_BRANCH}"
+SRC_URI = "${TI_RPMSG_CHAR_GIT_URI};protocol=${TI_RPMSG_CHAR_GIT_PROTOCOL};branch=${BRANCH};name=ti-rpmsg-char"

The part at the end is unnecessary - ;name=ti-rpmsg-char

OK

Quoted 17 lines
Quoted 17 lines
recipes-ti/ipc/ti-rpmsg-char.inc new file +5 -0
+SRCREV = "${TI_RPMSG_CHAR_SRCREV}"
+
+PV = "0.1.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +4 -0
new file mode 100644
index 000000000000..c132a390f301
@@ -0,0 +1,11 @@
+DESCRIPTION = "TI RPMsg Char Utility Library"
+
+require ti-rpmsg-char.inc
+
Quoted 8 lines

recipes-ti/ipc/ti-rpmsg-char_git.bb line 9

Quoted 5 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +5 -0
+DEPENDS += "virtual/kernel"
+
+inherit autotools pkgconfig
+
+do_compile[depends] += "virtual/kernel:do_shared_workdir"

How do you pass kernel location for the header file? Is it hardcoded in the Makefile?

Quoted 3 lines

The kernel header is from an already upstream driver, so is already exported and available on the host machine. I didn't have to pass any specific kernel path during the build, just the include line <linux/rpmsg.h> in the source code.

In that case you don't need extra dependencies - you can drop DEPENDS and do_compile[depends] lines. As linux/rpmsg.h file comes from the standard linux-libc-headers package, which is the default dependency.

Quoted 15 lines

Granted, this might be needed on some older machines running an ancient kernel, that would need some additional conditionals to be added to the project build environment. I have added the do_compile for scalability if we end up adding functionality to the header from the kernel we are building.

regards
Suman

Quoted 6 lines
Quoted 6 lines
recipes-ti/ipc/ti-rpmsg-char_git.bb new file +1 -0
+PR = "r0"
Signature · 1 line
2.28.0