Skip to contentSkip to conversation

Unify PDK sources

PATCH Superseded Jacob Stiffler 3 participants 54 messages Nov 15, 2019 – Dec 6, 2019

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Unify PDK sources

The PDK sources have been unified in a single git repository. To simplify maintenance, a bbclass is added to specify the source information. This class also extends the unpack task so that each recipe is only presented with its component sources. This leaves subsequent tasks (do_compile, etc) identical to previous sources.

Changes from RFC:
* Use real SRC_URI information.
* In recipes, move setting of TI_PDK_COMP closer to inheriting ti-pdk-fetch.
* When LIC_FILES_CHKSUM change, mention in the commit log that it was due to a change in the path.

Jacob Stiffler (42):
ti-pdk-fetch: add class for common pdk sources
aif2-lld: migrate to ti-pdk-fetch.bbclass
bcp-lld: migrate to ti-pdk-fetch.bbclass
board-rtos: migrate to ti-pdk-fetch.bbclass
cppi-lld: migrate to ti-pdk-fetch.bbclass
dfe-lld: migrate to ti-pdk-fetch.bbclass
emac-lld: migrate to ti-pdk-fetch.bbclass
fatfs-rtos: migrate to ti-pdk-fetch.bbclass
fftc-lld: migrate to ti-pdk-fetch.bbclass
gpio-lld: migrate to ti-pdk-fetch.bbclass
gpmc-lld: migrate to ti-pdk-fetch.bbclass
hyplnk-lld: migrate to ti-pdk-fetch.bbclass
i2c-lld: migrate to ti-pdk-fetch.bbclass
icss-emac-lld: migrate to ti-pdk-fetch.bbclass
ipc-lld: migrate to ti-pdk-fetch.bbclass
iqn2-lld: migrate to ti-pdk-fetch.bbclass
mcasp-lld: migrate to ti-pdk-fetch.bbclass
mcbsp-lld: migrate to ti-pdk-fetch.bbclass
mmcsd-lld: migrate to ti-pdk-fetch.bbclass
nwal-lld: migrate to ti-pdk-fetch.bbclass
osal: migrate to ti-pdk-fetch.bbclass
pa-lld: migrate to ti-pdk-fetch.bbclass
pcie-lld: migrate to ti-pdk-fetch.bbclass
pru: migrate to ti-pdk-fetch.bbclass
prueth-fw: migrate to ti-pdk-fetch.bbclass
pruss-lld: migrate to ti-pdk-fetch.bbclass
qmss-lld: migrate to ti-pdk-fetch.bbclass
rm-lld: migrate to ti-pdk-fetch.bbclass
sciclient: migrate to ti-pdk-fetch.bbclass
spi-lld: migrate to ti-pdk-fetch.bbclass
srio-lld: migrate to ti-pdk-fetch.bbclass
tcp3d-lld: migrate to ti-pdk-fetch.bbclass
transport-rtos: migrate to ti-pdk-fetch.bbclass
tsip-lld: migrate to ti-pdk-fetch.bbclass
uart-lld: migrate to ti-pdk-fetch.bbclass
udma-lld: migrate to ti-pdk-fetch.bbclass
usb-lld: migrate to ti-pdk-fetch.bbclass
utils-rtos: migrate to ti-pdk-fetch.bbclass
ti-pdk-build: migrate to ti-pdk-fetch.bbclass
cal-lld: TI RTOS low level driver for CAL
fvid2: TI RTOS Video Driver Interface
iolink-lld: TI RTOS low level driver for IO-Link Master

 classes/ti-pdk-fetch.bbclass                     | 31 ++++++++++
 recipes-bsp/aif2-lld/aif2-lld.inc                | 14 +----
 recipes-bsp/bcp-lld/bcp-lld-rtos_git.bb          | 20 ++----
 recipes-bsp/board-rtos/board-rtos_git.bb         | 16 ++---
 recipes-bsp/cal-lld/cal-lld-rtos_git.bb          | 78 ++++++++++++++++++++++++
 recipes-bsp/cppi-lld/cppi-lld.inc                | 14 +----
 recipes-bsp/dfe-lld/dfe-lld.inc                  | 14 +----
 recipes-bsp/emac-lld/emac-lld.inc                | 13 +---
 recipes-bsp/fatfs-rtos/fatfs-rtos_git.bb         | 18 ++----
 recipes-bsp/fftc-lld/fftc-lld-rtos_git.bb        | 22 ++-----
 recipes-bsp/fvid2/fvid2-rtos_git.bb              | 70 +++++++++++++++++++++
 recipes-bsp/gpio-lld/gpio-lld-rtos_git.bb        | 20 ++----
 recipes-bsp/gpmc-lld/gpmc-lld-rtos_git.bb        | 17 ++----
 recipes-bsp/hyplnk-lld/hyplnk-lld.inc            | 16 ++---
 recipes-bsp/i2c-lld/i2c-lld-rtos_git.bb          | 19 ++----
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc      | 20 +-----
 recipes-bsp/iolink-lld/iolink-lld-rtos_git.bb    | 33 ++++++++++
 recipes-bsp/ipc-lld/ipc-lld.inc                  | 20 ++----
 recipes-bsp/iqn2-lld/iqn2-lld.inc                | 14 +----
 recipes-bsp/mcasp-lld/mcasp-lld-rtos_git.bb      | 19 ++----
 recipes-bsp/mcbsp-lld/mcbsp-lld-rtos_git.bb      | 20 ++----
 recipes-bsp/mmcsd-lld/mmcsd-lld-rtos_git.bb      | 19 ++----
 recipes-bsp/nwal-lld/nwal-lld.inc                | 15 ++---
 recipes-bsp/osal/osal-rtos_git.bb                |  2 -
 recipes-bsp/osal/osal-test_git.bb                |  2 -
 recipes-bsp/osal/osal.inc                        | 14 ++---
 recipes-bsp/osal/osal_git.bb                     |  2 -
 recipes-bsp/pa-lld/pa-lld.inc                    | 14 +----
 recipes-bsp/pcie-lld/pcie-lld-rtos_git.bb        | 20 ++----
 recipes-bsp/pru/pru-pwm-fw_git.bb                | 11 ++--
 recipes-bsp/pru/pru-swuart-fw_git.bb             | 12 ++--
 recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb     |  6 +-
 recipes-bsp/prueth-fw/prueth-fw_git.bb           |  7 ++-
 recipes-bsp/pruss-lld/pruss-lld-apps_git.bb      |  2 -
 recipes-bsp/pruss-lld/pruss-lld-rtos_git.bb      |  2 -
 recipes-bsp/pruss-lld/pruss-lld-test_git.bb      |  2 -
 recipes-bsp/pruss-lld/pruss-lld.inc              | 13 +---
 recipes-bsp/pruss-lld/pruss-lld_git.bb           |  2 -
 recipes-bsp/qmss-lld/qmss-lld.inc                | 14 +----
 recipes-bsp/rm-lld/rm-lld.inc                    | 14 +----
 recipes-bsp/sciclient/sciclient-rtos_git.bb      | 20 ++----
 recipes-bsp/spi-lld/spi-lld-rtos_git.bb          | 18 ++----
 recipes-bsp/srio-lld/srio-lld.inc                | 14 +----
 recipes-bsp/tcp3d-lld/tcp3d-lld-rtos_git.bb      | 21 ++-----
 recipes-bsp/transport-rtos/bmet-eth-rtos_git.bb  |  4 +-
 recipes-bsp/transport-rtos/nimu-icss-rtos_git.bb |  4 +-
 recipes-bsp/transport-rtos/nimu-rtos_git.bb      |  4 +-
 recipes-bsp/transport-rtos/timesync-rtos_git.bb  | 32 ++++++++++
 recipes-bsp/transport-rtos/transport.inc         | 12 +---
 recipes-bsp/tsip-lld/tsip-lld-rtos_git.bb        | 18 ++----
 recipes-bsp/uart-lld/uart-lld-rtos_git.bb        | 18 ++----
 recipes-bsp/udma-lld/udma-lld-rtos_git.bb        | 20 ++----
 recipes-bsp/usb-lld/usb-lld-rtos_git.bb          | 18 ++----
 recipes-bsp/utils-rtos/profiling-rtos_git.bb     | 18 ++----
 recipes-bsp/utils-rtos/trace-rtos_git.bb         | 18 ++----
 recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb | 17 +-----
 56 files changed, 425 insertions(+), 512 deletions(-)
 create mode 100644 classes/ti-pdk-fetch.bbclass
 create mode 100644 recipes-bsp/cal-lld/cal-lld-rtos_git.bb
 create mode 100755 recipes-bsp/fvid2/fvid2-rtos_git.bb
 create mode 100644 recipes-bsp/iolink-lld/iolink-lld-rtos_git.bb
 create mode 100644 recipes-bsp/transport-rtos/timesync-rtos_git.bb
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/42 ti-pdk-fetch: add class for common pdk sources

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---
 classes/ti-pdk-fetch.bbclass | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 classes/ti-pdk-fetch.bbclass
classes/ti-pdk-fetch.bbclass new file +31 -0
new file mode 100644
index 0000000..6e36e3b
@@ -0,0 +1,31 @@
+TI_PDK_GIT_URI ?= "git://git.ti.com/processor-sdk/pdk.git"
+TI_PDK_GIT_BRANCH ?= "master"
+TI_PDK_GIT_PROTOCOL ?= "git"
+TI_PDK_SRCREV ?= "a609fa636c4d899e5dd3d7a89a1c070b854849b0"
+
+TI_PDK_VERSION ?= "2019.11.0+git${SRCPV}"
+
+TI_PDK_SRC = "_tmp_pdk"
+SRC_URI = "${TI_PDK_GIT_URI};branch=${TI_PDK_GIT_BRANCH};protocol=${TI_PDK_GIT_PROTOCOL};destsuffix=${TI_PDK_SRC}"
+SRCREV = "${TI_PDK_SRCREV}"
+
+PV = "${TI_PDK_VERSION}"
+
+TI_PDK_COMP ?= ""
+TI_PDK_COMP_PATH = "${@'${TI_PDK_COMP}'.replace('.','/')}"
+
+S = "${WORKDIR}/git/${TI_PDK_COMP_PATH}"
+
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src = os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_PATH'))
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src, d.getVar('S'))
+        subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}
Signature · 1 line
2.7.4
#2 lore raw

Re: [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Quoted 53 lines · Jacob Stiffler

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---
 classes/ti-pdk-fetch.bbclass | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 classes/ti-pdk-fetch.bbclass
classes/ti-pdk- renamed from classes/ti-pdk-fetch.bbclass +0 -0

fetch.bbclass
new file mode 100644
index 0000000..6e36e3b

classes/ti-pdk-fetch.bbclass new file +9 -0
@@ -0,0 +1,31 @@
+TI_PDK_GIT_URI ?= "git://git.ti.com/processor-sdk/pdk.git"
+TI_PDK_GIT_BRANCH ?= "master"
+TI_PDK_GIT_PROTOCOL ?= "git"
+TI_PDK_SRCREV ?= "a609fa636c4d899e5dd3d7a89a1c070b854849b0"
+
+TI_PDK_VERSION ?= "2019.11.0+git${SRCPV}"
+
+TI_PDK_SRC = "_tmp_pdk"
+SRC_URI =

"${TI_PDK_GIT_URI};branch=${TI_PDK_GIT_BRANCH};protocol=${TI_PDK_GIT_ PROTOCOL};destsuffix=${TI_PDK_SRC}"

classes/ti-pdk-fetch.bbclass new file +15 -0
+SRCREV = "${TI_PDK_SRCREV}"
+
+PV = "${TI_PDK_VERSION}"
+
+TI_PDK_COMP ?= ""
+TI_PDK_COMP_PATH = "${@'${TI_PDK_COMP}'.replace('.','/')}"
+
+S = "${WORKDIR}/git/${TI_PDK_COMP_PATH}"
+
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass line 31

Quoted 3 lines
classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Quoted 3 lines
Signature · 1 line
2.7.4
#3 lore raw

Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Quoted 9 lines · Khem Raj
Quoted 8 lines · Jacob Stiffler

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

Quoted 12 lines
Quoted 12 lines
classes/ti-pdk-fetch.bbclass new file +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,

d.getVar('S'))

Quoted 8 lines

classes/ti-pdk-fetch.bbclass line 31

Quoted 5 lines

+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Jake,

Any updates on this - will you be looking into the above suggestion?

Signature · 1 line
Denys
#4 lore raw

Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Quoted 30 lines · Denys Dmytriyenko
Quoted 9 lines · Khem Raj
Quoted 8 lines · Jacob Stiffler

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

Quoted 11 lines
Quoted 11 lines
classes/ti-pdk-fetch.bbclass new file +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,
Quoted 8 lines

classes/ti-pdk-fetch.bbclass line 31

Quoted 6 lines

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Quoted 3 lines

Jake,

Any updates on this - will you be looking into the above suggestion?

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

#5 lore raw

Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Quoted 38 lines · Jacob Stiffler
Quoted 30 lines · Denys Dmytriyenko
Quoted 9 lines · Khem Raj
Quoted 8 lines · Jacob Stiffler

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

Quoted 11 lines
Quoted 11 lines
classes/ti-pdk-fetch.bbclass new file +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,
Quoted 8 lines

classes/ti-pdk-fetch.bbclass line 31

Quoted 6 lines

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Quoted 3 lines

Jake,

Any updates on this - will you be looking into the above suggestion?

Quoted 7 lines

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

disk operations are not cheap, so you could save a lot by having a monorepo. Is it due to access perms ? then its a single tarballs you cant have ACLs. I am still not convinced if monorepo approach has downsides, plus its a known approach elsewhere so will be easy on users.

Quoted 1 line
#6 lore raw

Re: [EXTERNAL] Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Quoted 41 lines · Khem Raj
Quoted 40 lines · Jacob Stiffler
Quoted 30 lines · Denys Dmytriyenko
Quoted 9 lines · Khem Raj
Quoted 8 lines · Jacob Stiffler

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

Quoted 11 lines
Quoted 11 lines
classes/ti-pdk-fetch.bbclass new file +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,
Quoted 8 lines

classes/ti-pdk-fetch.bbclass line 31

Quoted 6 lines

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Quoted 3 lines

Jake,

Any updates on this - will you be looking into the above suggestion?

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

Quoted 8 lines
Quoted 3 lines

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

disk operations are not cheap, so you could save a lot by having a monorepo. Is it due to access perms ? then its a single tarballs you cant have ACLs. I am still not convinced if monorepo approach has downsides, plus its a known approach elsewhere so will be easy on users.

We wanted to have this safety net to make sure that this pdk.git does not end up as spaghetti code. So this method was devised to ensure that only a single component's sources and its DEPENDS are available during compilation.

It may be acceptable to clone to the work-shared path, and then symlink the specific directory into the WORKDIR. But we will need to remain vigilant so that work-shared path is never referenced in the recipe.

Quoted 9 lines
Quoted 9 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12528): https://lists.yoctoproject.org/g/meta-ti/message/12528
Mute This Topic: https://lists.yoctoproject.org/mt/61321552/3619770
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#7 lore raw

Re: [EXTERNAL] Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Ideally I agree it’s best to have per component git repos But traditional SDKs have been monolithic

Quoted 81 lines · Jacob Stiffler

On 11/25/2019 1:16 PM, Khem Raj wrote:

On Mon, Nov 25, 2019 at 10:12 AM Jacob Stiffler <[email protected]> <[email protected]> wrote:

On 11/25/2019 12:42 PM, Denys Dmytriyenko wrote:

On Fri, Nov 15, 2019 at 09:14:15AM -0800, Khem Raj wrote:

On Fri, 2019-11-15 at 10:14 -0500, Jacob Stiffler wrote:

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

classes/ti-pdk-fetch.bbclass new file +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

classes/ti-pdk-fetch.bbclass new file +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Jake,

Any updates on this - will you be looking into the above suggestion?

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

disk operations are not cheap, so you could save a lot by having a monorepo. Is it due to access perms ? then its a single tarballs you cant have ACLs. I am still not convinced if monorepo approach has downsides, plus its a known approach elsewhere so will be easy on users.

We wanted to have this safety net to make sure that this pdk.git does not end up as spaghetti code. So this method was devised to ensure that only a single component's sources and its DEPENDS are available during compilation.

It may be acceptable to clone to the work-shared path, and then symlink the specific directory into the WORKDIR. But we will need to remain vigilant so that work-shared path is never referenced in the recipe.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12528): https://lists.yoctoproject.org/g/meta-ti/message/12528
Mute This Topic: https://lists.yoctoproject.org/mt/61321552/3619770
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Re: [EXTERNAL] Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Would hard-linking be any better? Will need to recursively hard-link all the files in a specific directory, but may be faster and less IO-intensive than copying or tarring/untarring all the files?

Signature · 1 line
Denys
Quoted 86 lines · Khem Raj

Ideally I agree it’s best to have per component git repos But traditional SDKs have been monolithic

Quoted 81 lines · Jacob Stiffler

On 11/25/2019 1:16 PM, Khem Raj wrote:

On Mon, Nov 25, 2019 at 10:12 AM Jacob Stiffler <[email protected]> <[email protected]> wrote:

On 11/25/2019 12:42 PM, Denys Dmytriyenko wrote:

On Fri, Nov 15, 2019 at 09:14:15AM -0800, Khem Raj wrote:

On Fri, 2019-11-15 at 10:14 -0500, Jacob Stiffler wrote:

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

(quoted diff) +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

(quoted diff) +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

(quoted diff) +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Jake,

Any updates on this - will you be looking into the above suggestion?

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

disk operations are not cheap, so you could save a lot by having a monorepo. Is it due to access perms ? then its a single tarballs you cant have ACLs. I am still not convinced if monorepo approach has downsides, plus its a known approach elsewhere so will be easy on users.

We wanted to have this safety net to make sure that this pdk.git does not end up as spaghetti code. So this method was devised to ensure that only a single component's sources and its DEPENDS are available during compilation.

It may be acceptable to clone to the work-shared path, and then symlink the specific directory into the WORKDIR. But we will need to remain vigilant so that work-shared path is never referenced in the recipe.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12528): https://lists.yoctoproject.org/g/meta-ti/message/12528
Mute This Topic: https://lists.yoctoproject.org/mt/61321552/3619770
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#9 lore raw

Re: [EXTERNAL] Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources

Certainly seems interesting

Quoted 114 lines · Denys Dmytriyenko via Lists.Yoctoproject.Org

Would hard-linking be any better? Will need to recursively hard-link all the
files in a specific directory, but may be faster and less IO-intensive than
copying or tarring/untarring all the files?

--
Denys

Quoted 4 lines · Khem Raj

Ideally I agree it’s best to have per component git repos But traditional SDKs have been monolithic

On Mon, Nov 25, 2019 at 10:50 AM Jacob Stiffler <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines · Khem Raj

On Mon, Nov 25, 2019 at 10:12 AM Jacob Stiffler <[email protected]> <

Quoted 51 lines · [email protected]> wrote:
Quoted 51 lines · Denys Dmytriyenko

On Fri, Nov 15, 2019 at 09:14:15AM -0800, Khem Raj wrote:

On Fri, 2019-11-15 at 10:14 -0500, Jacob Stiffler wrote:

Recently individual components and LLD sources have been combined into a single PDK repo. Use this class to specify the common source. Also use this class to keep the sources separate from each other when building. This keeps the build identical to previous recipes while keeping control on interdependencies.

---

...

(quoted diff) +6 -0
+# Extract only required sources from PDK
+python do_unpack_append() {
+    if len(d.getVar('TI_PDK_COMP') or '') > 0:
+        import subprocess
+
+        src =

os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ PATH'))

(quoted diff) +3 -0
+
+        # Package up only the required sources
+        cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src,

d.getVar('S'))
+ subprocess.check_output(cmd, shell=True,
stderr=subprocess.STDOUT)

(quoted diff) +3 -0
+
+        bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True)
+}

perhaps looking in work-shared idea from kernel or gcc or clang packages could make it better where, you only untar sources once

Jake,

Any updates on this - will you be looking into the above suggestion?

I had originally considered this approach, but decided against it so that there would be no way a recipe could access other sources in the pdk.git.

It may be a bit paranoid, but the work-shared approach would make the entire pdk sources available through a ti-pdk-fetch variable. I wanted it so that the entire pdk.git will never be unpacked in its entirety.

Quoted 7 lines
Quoted 7 lines

disk operations are not cheap, so you could save a lot by having a monorepo. Is it due to access perms ? then its a single tarballs you cant have ACLs. I am still not convinced if monorepo approach has downsides, plus its a known approach elsewhere so will be easy on users.

We wanted to have this safety net to make sure that this pdk.git does

not

Quoted 1 line
Quoted 1 line

end up as spaghetti code. So this method was devised to ensure that

only a

Quoted 8 lines
Quoted 8 lines

single component's sources and its DEPENDS are available during compilation.

It may be acceptable to clone to the work-shared path, and then symlink the specific directory into the WORKDIR. But we will need to remain vigilant so that work-shared path is never referenced in the recipe.

Quoted 4 lines
Quoted 4 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12528):

https://lists.yoctoproject.org/g/meta-ti/message/12528

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.yoctoproject.org/mt/61321552/3619770
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [

[email protected]]

Quoted 3 lines
Quoted 3 lines

-=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12531):
https://lists.yoctoproject.org/g/meta-ti/message/12531
Mute This Topic: https://lists.yoctoproject.org/mt/61945973/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw

PATCH 2/42 aif2-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/aif2-lld/aif2-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/aif2-lld/aif2-lld.inc +3 -11
index f06dde1..718f3a7 100644
@@ -2,21 +2,13 @@ LICENSE = "BSD-3-Clause"
 
 LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
 
-AIF2_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/aif2-lld.git"
-AIF2_LLD_GIT_PROTOCOL = "git"
-AIF2_LLD_GIT_BRANCH = "master"
-AIF2_LLD_GIT_DESTSUFFIX = "git/ti/drv/aif2"
+inherit ti-pdk-fetch
 
-# The following commit correspond to DEV.AIF2LLD.01.02.00.02B
-AIF2_LLD_SRCREV = "5304fdbca98b7f1aed8cb66bc6750f99d8bb7094"
+TI_PDK_COMP = "ti.drv.aif2"
 
-BRANCH = "${AIF2_LLD_GIT_BRANCH}"
-SRC_URI = "${AIF2_LLD_GIT_URI};destsuffix=${AIF2_LLD_GIT_DESTSUFFIX};protocol=${AIF2_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${AIF2_LLD_SRCREV}"
+PE = "1"
 
-PV = "1.2.0.2B"
 INC_PR = "r0"
 
 COMPATIBLE_MACHINE = "k2hk"
 
-S = "${WORKDIR}/${AIF2_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#11 lore raw

PATCH 3/42 bcp-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/bcp-lld/bcp-lld-rtos_git.bb | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
recipes-bsp/bcp-lld/bcp-lld-rtos_git.bb +5 -15
index dc5cef5..62cee07 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI Bit Coprocessor (BCP) low level driver"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.bcp"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://bcp.h;beginline=1;endline=40;md5=4f6e6128dd075a89548c0287a39b8896"
@@ -8,22 +12,8 @@ LIC_FILES_CHKSUM = "file://bcp.h;beginline=1;endline=40;md5=4f6e6128dd075a89548c
 COMPATIBLE_MACHINE = "k2hk|k2l|c667x-evm"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-BCP_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/bcp-lld.git"
-BCP_LLD_GIT_PROTOCOL = "git"
-BCP_LLD_GIT_BRANCH = "master"
-BCP_LLD_GIT_DESTSUFFIX = "git/ti/drv/bcp"
-
-# Below commit ID corresponds to "DEV.BCP_LLD.02.01.00.07B"
-BCP_LLD_SRCREV = "2a13d5e3b26180dd4f1010327f1daed9b3330752"
-
-BRANCH = "${BCP_LLD_GIT_BRANCH}"
-SRC_URI = "${BCP_LLD_GIT_URI};destsuffix=${BCP_LLD_GIT_DESTSUFFIX};protocol=${BCP_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${BCP_LLD_SRCREV}"
-PV = "02.01.00.07B"
 PR = "r0"
 
-S = "${WORKDIR}/${BCP_LLD_GIT_DESTSUFFIX}"
 
 DEPENDS_append = " qmss-lld-rtos \
                    cppi-lld-rtos \
Signature · 1 line
2.7.4
#12 lore raw

PATCH 4/42 board-rtos: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/board-rtos/board-rtos_git.bb | 16 +++++-----------
 1 file changed, 5 insertions(+), 11 deletions(-)
recipes-bsp/board-rtos/board-rtos_git.bb +5 -11
index be5f90c..99530d1 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS Board Library"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.board"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://board.h;beginline=1;endline=32;md5=9bed8e4ac2fb37fc627cefe49eb1c919"
@@ -8,18 +12,8 @@ LIC_FILES_CHKSUM = "file://board.h;beginline=1;endline=32;md5=9bed8e4ac2fb37fc62
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-BOARD_GIT_URI = "git://git.ti.com/keystone-rtos/board.git"
-BOARD_GIT_PROTOCOL = "git"
-BOARD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.BOARD.01.00.10.06G"
-BOARD_SRCREV = "8f5b3079847937f97c7b27d76f8aac52fa1c11b5"
 
-BRANCH ="${BOARD_GIT_BRANCH}"
-SRC_URI = "${BOARD_GIT_URI};protocol=${BOARD_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${BOARD_SRCREV}"
-PV = "01.00.10.06G"
 PR = "r0"
 
 DEPENDS_append = " i2c-lld-rtos \
Signature · 1 line
2.7.4
#13 lore raw

PATCH 5/42 cppi-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/cppi-lld/cppi-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/cppi-lld/cppi-lld.inc +3 -11
index dec5b7d..40810f7 100644
@@ -4,19 +4,12 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/cppi/COPYING.txt;md5=e8f6789acd
 COMPATIBLE_MACHINE = "keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-CPPI_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/cppi-lld.git"
-CPPI_LLD_GIT_PROTOCOL = "git"
-CPPI_LLD_GIT_BRANCH = "master"
-CPPI_LLD_GIT_DESTSUFFIX = "git/ti/drv/cppi"
+inherit ti-pdk-fetch
 
-# Below Commit ID corresponds to "DEV.CPPI_LLD.02.01.00.14A"
-CPPI_LLD_SRCREV = "d9b51bfc77ee0c97ed11dc6753667cfadc0285f6"
+TI_PDK_COMP = "ti.drv.cppi"
 
-BRANCH = "${CPPI_LLD_GIT_BRANCH}"
-SRC_URI = "${CPPI_LLD_GIT_URI};destsuffix=${CPPI_LLD_GIT_DESTSUFFIX};protocol=${CPPI_LLD_GIT_PROTOCOL};branch=${BRANCH}"
+PE = "1"
 
-SRCREV = "${CPPI_LLD_SRCREV}"
-PV = "02.01.00.14A"
 INC_PR = "r0"
 
 DEVICELIST = "k2h k2k k2l k2e"
@@ -24,4 +17,3 @@ DEVICELIST_k2hk = "k2h k2k"
 DEVICELIST_k2l  = "k2l"
 DEVICELIST_k2e  = "k2e"
 
-S = "${WORKDIR}/${CPPI_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#14 lore raw

PATCH 6/42 dfe-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/dfe-lld/dfe-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/dfe-lld/dfe-lld.inc +3 -11
index 1f278a2..9ac317d 100644
@@ -2,21 +2,13 @@ LICENSE = "BSD-3-Clause"
 
 LIC_FILES_CHKSUM = "file://COPYING.txt;md5=1f4217b705bf98762a302fd720649dcc"
 
-DFE_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/dfe-lld.git"
-DFE_LLD_GIT_PROTOCOL = "git"
-DFE_LLD_GIT_BRANCH = "master"
-DFE_LLD_GIT_DESTSUFFIX = "git/ti/drv/dfe"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.DFE_LLD.01.00.00.09A"
-DFE_LLD_SRCREV = "023af1b39ec1df7f463797cb8be94e5985dbaefd"
+TI_PDK_COMP = "ti.drv.dfe"
 
-BRANCH = "${DFE_LLD_GIT_BRANCH}"
-SRC_URI = "${DFE_LLD_GIT_URI};destsuffix=${DFE_LLD_GIT_DESTSUFFIX};protocol=${DFE_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${DFE_LLD_SRCREV}"
+PE = "1"
 
-PV = "1.0.0.9A"
 INC_PR = "r0"
 
 COMPATIBLE_MACHINE = "k2l"
 
-S = "${WORKDIR}/${DFE_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#15 lore raw

PATCH 7/42 emac-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/emac-lld/emac-lld.inc | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)
recipes-bsp/emac-lld/emac-lld.inc +3 -10
index 318be3d..eea56b3 100644
@@ -1,14 +1,7 @@
-EMAC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/emac-lld.git"
-EMAC_LLD_GIT_PROTOCOL = "git"
-EMAC_LLD_GIT_BRANCH = "master"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.EMAC_LLD.01.00.03.18A"
-EMAC_LLD_SRCREV = "42716931cfddac093de9b5e885b0a5139f7403fb"
+TI_PDK_COMP = "ti.drv.emac"
 
-BRANCH ="${EMAC_LLD_GIT_BRANCH}"
-SRC_URI = "${EMAC_LLD_GIT_URI};protocol=${EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${EMAC_LLD_SRCREV}"
+PE = "1"
 
 # The LLD version
-PV = "01.00.03.18A+git${SRCPV}"
Signature · 1 line
2.7.4
#16 lore raw

PATCH 8/42 fatfs-rtos: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/fatfs-rtos/fatfs-rtos_git.bb | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
recipes-bsp/fatfs-rtos/fatfs-rtos_git.bb +5 -13
index a08e046..20d8ba8 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS driver for FAT filesystem"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.fs.fatfs"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://FATFS.h;beginline=1;endline=32;md5=6619832755598d1cc2b01f2e6a1801d6"
@@ -8,18 +12,6 @@ LIC_FILES_CHKSUM = "file://FATFS.h;beginline=1;endline=32;md5=6619832755598d1cc2
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g|omapl1|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-FATFS_GIT_URI = "git://git.ti.com/keystone-rtos/fatfs.git"
-FATFS_GIT_PROTOCOL = "git"
-FATFS_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.FATFS_LLD.01.00.00.15"
-FATFS_SRCREV = "d30f2c1492b2226a7ce31e43a72df29df5db9986"
-
-BRANCH = "${FATFS_GIT_BRANCH}"
-SRC_URI = "${FATFS_GIT_URI};protocol=${FATFS_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${FATFS_SRCREV}"
-PV = "01.00.00.15"
 PR = "r0"
 
 DEPENDS_append = " mmcsd-lld-rtos \
Signature · 1 line
2.7.4
#17 lore raw

PATCH 9/42 fftc-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/fftc-lld/fftc-lld-rtos_git.bb | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
recipes-bsp/fftc-lld/fftc-lld-rtos_git.bb +5 -17
index 9103639..c8668c9 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI FFT Coprocessor (FFTC) low level driver "
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.fftc"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://fftc.h;beginline=1;endline=39;md5=2f1010c47d364414644caf6d30a2b7df"
@@ -8,24 +12,8 @@ LIC_FILES_CHKSUM = "file://fftc.h;beginline=1;endline=39;md5=2f1010c47d364414644
 COMPATIBLE_MACHINE = "k2hk|k2l"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-FFTC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/fftc-lld.git"
-FFTC_LLD_GIT_PROTOCOL = "git"
-FFTC_LLD_GIT_BRANCH = "master"
-FFTC_LLD_GIT_DESTSUFFIX = "git/ti/drv/fftc"
-
-# Below commit ID corresponds to "DEV.FFTC_LLD.02.02.00.07B"
-FFTC_LLD_SRCREV = "962d899e1e81a4d02ad59368032cf24956cde5f2"
-
-BRANCH = "${FFTC_LLD_GIT_BRANCH}"
-SRC_URI = "${FFTC_LLD_GIT_URI};destsuffix=${FFTC_LLD_GIT_DESTSUFFIX};protocol=${FFTC_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${FFTC_LLD_SRCREV}"
-PV = "02.02.00.07B"
 PR = "r0"
 
-S = "${WORKDIR}/${FFTC_LLD_GIT_DESTSUFFIX}"
-
-
 DEPENDS_append= " qmss-lld-rtos \
                   cppi-lld-rtos \
 "
Signature · 1 line
2.7.4
#18 lore raw

PATCH 10/42 gpio-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/gpio-lld/gpio-lld-rtos_git.bb | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
recipes-bsp/gpio-lld/gpio-lld-rtos_git.bb +5 -15
index 93f97d0..bfdb16c 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS driver for General Purpose IO (GPIO)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.gpio"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://GPIO.h;beginline=1;endline=31;md5=8580f9c5c0de8d5d13518cf18a0122b8"
@@ -8,22 +12,8 @@ LIC_FILES_CHKSUM = "file://GPIO.h;beginline=1;endline=31;md5=8580f9c5c0de8d5d135
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1|c667x-evm|c665x-evm|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-GPIO_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/gpio-lld.git"
-GPIO_LLD_GIT_PROTOCOL = "git"
-GPIO_LLD_GIT_BRANCH = "master"
-GPIO_LLD_GIT_DESTSUFFIX = "git/ti/drv/gpio"
-
-# Below commit ID corresponds to "DEV.GPIO_LLD.01.00.00.16B"
-GPIO_LLD_SRCREV = "14e59e948fb949e244edcc3161f21ec4228fb15c"
-
-BRANCH = "${GPIO_LLD_GIT_BRANCH}"
-SRC_URI = "${GPIO_LLD_GIT_URI};destsuffix=${GPIO_LLD_GIT_DESTSUFFIX};protocol=${GPIO_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${GPIO_LLD_SRCREV}"
-PV = "01.00.00.16B"
 PR = "r0"
 
-S = "${WORKDIR}/${GPIO_LLD_GIT_DESTSUFFIX}"
 
 DEPENDS_append = " osal-rtos \
 "
Signature · 1 line
2.7.4
#19 lore raw

PATCH 11/42 gpmc-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/gpmc-lld/gpmc-lld-rtos_git.bb | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)
recipes-bsp/gpmc-lld/gpmc-lld-rtos_git.bb +5 -12
index b9f0088..6054d6b 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for General Purpose Memory Controller (GPMC)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.gpmc"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://GPMC.h;beginline=1;endline=31;md5=485ec97c36f809bf92323fde3e988c72"
@@ -8,18 +12,7 @@ LIC_FILES_CHKSUM = "file://GPMC.h;beginline=1;endline=31;md5=485ec97c36f809bf923
 COMPATIBLE_MACHINE = "ti33x|ti43x"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-GPMC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/gpmc-lld.git"
-GPMC_LLD_GIT_PROTOCOL = "git"
-GPMC_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.GPMC_LLD.01.00.00.03A"
-GPMC_LLD_SRCREV = "9169c04d80fae0a50734527e54ec4f4f53c3a1ef"
-
-BRANCH = "${GPMC_LLD_GIT_BRANCH}"
-SRC_URI = "${GPMC_LLD_GIT_URI};protocol=${GPMC_LLD_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${GPMC_LLD_SRCREV}"
-PV = "01.00.00.03A"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos \
Signature · 1 line
2.7.4
#20 lore raw

PATCH 12/42 hyplnk-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler

LIC_FILES_CHKSUM changed to use a relative path.

---
 recipes-bsp/hyplnk-lld/hyplnk-lld.inc | 16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)
recipes-bsp/hyplnk-lld/hyplnk-lld.inc +4 -12
index a73f513..849c2ee 100644
@@ -6,24 +6,16 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 LLDNAME="hyplnk"
 
-LIC_FILES_CHKSUM = "file://${WORKDIR}/${HYPLNK_GIT_DESTSUFFIX}/COPYING.txt;md5=623325cc19e613a4e770fbb749922592"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=623325cc19e613a4e770fbb749922592"
 
-HYPLNK_GIT_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git"
-HYPLNK_GIT_PROTOCOL = "git"
-HYPLNK_GIT_BRANCH = "master"
-HYPLNK_GIT_DESTSUFFIX = "git/ti/drv/${LLDNAME}"
+inherit ti-pdk-fetch
 
-# Following commit corresponds to tag DEV.HYPLNK_LLD.02.01.00.08A
-HYPLNK_SRCREV = "67fc593f28d243d25a5e19720eba8b3e53a5efc0"
+TI_PDK_COMP = "ti.drv.hyplnk"
 
-BRANCH="${HYPLNK_GIT_BRANCH}"
-SRC_URI = "${HYPLNK_GIT_URI};destsuffix=${HYPLNK_GIT_DESTSUFFIX};protocol=${HYPLNK_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${HYPLNK_SRCREV}"
+PE = "1"
 
-PV = "2.1.0.8A"
 INC_PR = "r0"
 
 DEVICELIST_k2hk = "k2h k2k"
 DEVICELIST_k2e  = "k2e"
 
-S = "${WORKDIR}/${HYPLNK_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#21 lore raw

PATCH 13/42 i2c-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/i2c-lld/i2c-lld-rtos_git.bb | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)
recipes-bsp/i2c-lld/i2c-lld-rtos_git.bb +5 -14
index bf64abf..1cd1c99 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for Inter-IC module (I2C)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.i2c"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://I2C.h;beginline=1;endline=32;md5=50084375278c1a2779571be134f98f7c"
@@ -8,19 +12,7 @@ LIC_FILES_CHKSUM = "file://I2C.h;beginline=1;endline=32;md5=50084375278c1a277957
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-I2C_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/i2c-lld.git"
-I2C_LLD_GIT_PROTOCOL = "git"
-I2C_LLD_GIT_BRANCH = "master"
-I2C_LLD_GIT_DESTSUFFIX = "git/ti/drv/i2c"
-
-# Below commit ID corresponds to "DEV.I2C_LLD.01.00.00.16A"
-I2C_LLD_SRCREV = "1524f975a96de004000ce7e5b3367d6640b7d193"
-
-BRANCH = "${I2C_LLD_GIT_BRANCH}"
-SRC_URI = "${I2C_LLD_GIT_URI};destsuffix=${I2C_LLD_GIT_DESTSUFFIX};protocol=${I2C_LLD_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${I2C_LLD_SRCREV}"
-PV = "01.00.00.16A"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos \
@@ -43,7 +35,6 @@ DEPENDS_append_j7-evm = " sciclient-rtos \
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
 
-S = "${WORKDIR}/${I2C_LLD_GIT_DESTSUFFIX}"
 
 export PDK_I2C_ROOT_PATH ="${WORKDIR}/build"
 export DEST_ROOT="${S}"
Signature · 1 line
2.7.4
#22 lore raw

PATCH 14/42 icss-emac-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc | 20 +++-----------------
 1 file changed, 3 insertions(+), 17 deletions(-)
recipes-bsp/icss-emac-lld/icss-emac-lld.inc +3 -17
index 72d546b..4809e1f 100644
@@ -4,25 +4,11 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=76cafd87d8495b42c2355f7681de15a2"
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-ICSS_EMAC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/icss-emac.git"
-ICSS_EMAC_LLD_GIT_PROTOCOL = "git"
-ICSS_EMAC_LLD_GIT_BRANCH = "master"
-ICSS_EMAC_LLD_GIT_DESTSUFFIX = "git/ti/drv/icss_emac"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.ICSS_EMAC_LLD.01.00.00.17"
-ICSS_EMAC_LLD_SRCREV = "5978212c59468eab68e232a538ee005162b6902f"
+TI_PDK_COMP = "ti.drv.icss_emac"
 
-BRANCH = "${ICSS_EMAC_LLD_GIT_BRANCH}"
-SRC_URI = "${ICSS_EMAC_LLD_GIT_URI};destsuffix=${ICSS_EMAC_LLD_GIT_DESTSUFFIX};protocol=${ICSS_EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${ICSS_EMAC_LLD_SRCREV}"
-
-# The LLD version
-PV = "01.00.00.17"
-
-# The FW version(s)
-PV_DUALEMAC_FW = "5.2.7"
+PE = "1"
 
 INC_PR = "r0"
 
-S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#23 lore raw

PATCH 15/42 ipc-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/ipc-lld/ipc-lld.inc | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
recipes-bsp/ipc-lld/ipc-lld.inc +6 -14
index 243678f..66bbf32 100644
@@ -1,4 +1,8 @@
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.ipc"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=7eae093f2b09fd39307f30028a068b91"
@@ -6,24 +10,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=7eae093f2b09fd39307f30028a068b91"
 COMPATIBLE_MACHINE = "k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-IPCLLD_GIT_URI = "git://git.ti.com/keystone-rtos/ipc-lld.git"
-IPCLLD_GIT_PROTOCOL = "git"
-IPCLLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "01.00.00.00"
-IPCLLD_SRCREV = "c695ca99aa4b7242e808889cfeacf848f14112c7"
-
-BRANCH = "${IPCLLD_GIT_BRANCH}"
-SRC_URI = "${IPCLLD_GIT_URI};protocol=${IPCLLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${IPCLLD_SRCREV}"
-PV = "01.00.00.00"
 PR = "r2"
 
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
 
-IPCLLD_PACKAGE_BASE   = "${S}/../ipclld_base"
+IPCLLD_PACKAGE_BASE   = "${WORKDIR}/ipclld_base"
 IPCLLD_ROOTPATH = "${IPCLLD_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/ipc"
 
 export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
Signature · 1 line
2.7.4
#24 lore raw

PATCH 16/42 iqn2-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/iqn2-lld/iqn2-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/iqn2-lld/iqn2-lld.inc +3 -11
index 29b230a..078509f 100644
@@ -1,21 +1,13 @@
 LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
 LICENSE = "BSD-3-Clause"
 
-IQN2_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/iqn2-lld.git"
-IQN2_LLD_GIT_PROTOCOL = "git"
-IQN2_LLD_GIT_BRANCH = "master"
-IQN2_LLD_GIT_DESTSUFFIX = "git/ti/drv/iqn2"
+inherit ti-pdk-fetch
 
-# Following commit corresponds to DEV.IQN_LLD.01.00.00.11A
-IQN2_LLD_SRCREV = "41c0cd3cb4fc25453904f8c583ebd0a7a0e5b940"
+TI_PDK_COMP = "ti.drv.iqn2"
 
-BRANCH = "${IQN2_LLD_GIT_BRANCH}"
-SRC_URI = "${IQN2_LLD_GIT_URI};destsuffix=${IQN2_LLD_GIT_DESTSUFFIX};protocol=${IQN2_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${IQN2_LLD_SRCREV}"
+PE = "1"
 
-PV = "1.0.0.11A"
 INC_PR = "r0"
 
 COMPATIBLE_MACHINE = "k2l"
 
-S = "${WORKDIR}/${IQN2_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#25 lore raw

PATCH 17/42 mcasp-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/mcasp-lld/mcasp-lld-rtos_git.bb | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)
recipes-bsp/mcasp-lld/mcasp-lld-rtos_git.bb +5 -14
index 808a02a..5775d84 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for Multi channel Audio Serial port (McASP)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.mcasp"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://mcaspver.h;beginline=19;endline=47;md5=75a9adc782a6df0d3a5419743e9a9f18"
@@ -8,22 +12,9 @@ LIC_FILES_CHKSUM = "file://mcaspver.h;beginline=19;endline=47;md5=75a9adc782a6df
 COMPATIBLE_MACHINE = "ti43x|omap-a15|k2g|ti33x|omapl1|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-MCASP_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/mcasp-lld.git"
-MCASP_LLD_GIT_PROTOCOL = "git"
-MCASP_LLD_GIT_BRANCH = "master"
-MCASP_LLD_GIT_DESTSUFFIX = "git/ti/drv/mcasp"
-
-# Below commit ID corresponds to "DEV.MCASP_LLD.01.01.00.15C"
-MCASP_LLD_SRCREV = "3b206c0081cc3e78122982948b40a16e2e24522c"
-
-BRANCH = "${MCASP_LLD_GIT_BRANCH}"
-SRC_URI = "${MCASP_LLD_GIT_URI};destsuffix=${MCASP_LLD_GIT_DESTSUFFIX};protocol=${MCASP_LLD_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${MCASP_LLD_SRCREV}"
-PV = "01.01.00.15C"
 PR = "r0"
 
-S = "${WORKDIR}/${MCASP_LLD_GIT_DESTSUFFIX}"
 
 DEPENDS_append = " edma3-lld-rtos \
                    osal-rtos \
Signature · 1 line
2.7.4
#26 lore raw

PATCH 18/42 mcbsp-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/mcbsp-lld/mcbsp-lld-rtos_git.bb | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
recipes-bsp/mcbsp-lld/mcbsp-lld-rtos_git.bb +5 -15
index 10c782e..96ac5d7 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for Multi-channel Buffered Serial Port (McBSP)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.mcbsp"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://mcbspver.h;beginline=1;endline=47;md5=a8a39efd13fa6fe66da5461b898d620e"
@@ -8,22 +12,8 @@ LIC_FILES_CHKSUM = "file://mcbspver.h;beginline=1;endline=47;md5=a8a39efd13fa6fe
 COMPATIBLE_MACHINE = "k2g|c665x-evm|omapl1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-MCBSP_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/mcbsp-lld.git"
-MCBSP_LLD_GIT_PROTOCOL = "git"
-MCBSP_LLD_GIT_BRANCH = "master"
-MCBSP_LLD_GIT_DESTSUFFIX = "git/ti/drv/mcbsp"
-
-# Below commit ID corresponds to "DEV.MCBSP_LLD.01.00.00.12"
-MCBSP_LLD_SRCREV = "cd201419a8b4e4aefee6b9323d9a84f4ea467d6a"
-
-BRANCH = "${MCBSP_LLD_GIT_BRANCH}"
-SRC_URI = "${MCBSP_LLD_GIT_URI};destsuffix=${MCBSP_LLD_GIT_DESTSUFFIX};protocol=${MCBSP_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${MCBSP_LLD_SRCREV}"
-PV = "01.00.00.12"
 PR = "r0"
 
-S = "${WORKDIR}/${MCBSP_LLD_GIT_DESTSUFFIX}"
 
 DEPENDS_append = " edma3-lld-rtos \
 "
Signature · 1 line
2.7.4
#27 lore raw

PATCH 19/42 mmcsd-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/mmcsd-lld/mmcsd-lld-rtos_git.bb | 19 +++++--------------
 1 file changed, 5 insertions(+), 14 deletions(-)
recipes-bsp/mmcsd-lld/mmcsd-lld-rtos_git.bb +5 -14
index e94d8c8..8c027cd 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI Multimedia card(MMC)/Secure Digital(SD) low level driver for RTOS "
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.mmcsd"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://MMCSD.h;beginline=1;endline=32;md5=f74069541d4d165a000a66b4043cb065"
@@ -8,22 +12,9 @@ LIC_FILES_CHKSUM = "file://MMCSD.h;beginline=1;endline=32;md5=f74069541d4d165a00
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g|omapl1|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-MMCSD_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/sd-mmc.git"
-MMCSD_LLD_GIT_PROTOCOL = "git"
-MMCSD_LLD_GIT_BRANCH = "master"
-MMCSD_LLD_GIT_DESTSUFFIX = "git/ti/drv/mmcsd"
-
-# Below commit ID corresponds to "DEV.MMCSD_LLD.01.00.00.17D"
-MMCSD_LLD_SRCREV = "d723e336b917989b08bef590c3e125010c0d3461"
-
-BRANCH = "${MMCSD_LLD_GIT_BRANCH}"
-SRC_URI = "${MMCSD_LLD_GIT_URI};destsuffix=${MMCSD_LLD_GIT_DESTSUFFIX};protocol=${MMCSD_LLD_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${MMCSD_LLD_SRCREV}"
-PV = "01.00.00.17D"
 PR = "r0"
 
-S = "${WORKDIR}/${MMCSD_LLD_GIT_DESTSUFFIX}"
 
 DEPENDS_append = " edma3-lld-rtos \
                    osal-rtos \
Signature · 1 line
2.7.4
#28 lore raw

PATCH 20/42 nwal-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler

LIC_FILES_CHKSUM changed to use a relative path.

---
 recipes-bsp/nwal-lld/nwal-lld.inc | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
recipes-bsp/nwal-lld/nwal-lld.inc +4 -11
index 024aeef..3a593c7 100644
@@ -1,25 +1,18 @@
 LICENSE = "BSD-3-Clause"
-LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"
 
 COMPATIBLE_MACHINE = "keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-NWAL_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/nwal-lld.git"
-NWAL_LLD_GIT_PROTOCOL = "git"
-NWAL_LLD_GIT_BRANCH = "master"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.NWAL.02.01.00.13"
-NWAL_LLD_SRCREV = "dd41b84a985ef2824068e57525158c350e0d51be"
+TI_PDK_COMP = "ti.drv.nwal"
 
-BRANCH = "${NWAL_LLD_GIT_BRANCH}"
-SRC_URI = "${NWAL_LLD_GIT_URI};protocol=${NWAL_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${NWAL_LLD_SRCREV}"
+PE = "1"
 
-PV = "02.01.00.13"
 INC_PR = "r0"
 
 BASEDIR = "${WORKDIR}/git"
-S = "${BASEDIR}/ti/drv/nwal"
 
 DEVICELIST_k2hk = "k2h k2k"
 DEVICELIST_k2l  = "k2l"
Signature · 1 line
2.7.4
#29 lore raw

PATCH 21/42 osal: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/osal/osal-rtos_git.bb |  2 --
 recipes-bsp/osal/osal-test_git.bb |  2 --
 recipes-bsp/osal/osal.inc         | 14 ++++----------
 recipes-bsp/osal/osal_git.bb      |  2 --
 4 files changed, 4 insertions(+), 16 deletions(-)
recipes-bsp/osal/osal-rtos_git.bb +0 -2
index 62d1f99..a718f7c 100644
@@ -5,8 +5,6 @@ PR = "${INC_PR}.0"
 
 COMPATIBLE_MACHINE_append = "|c66x|k3"
 
-S = "${WORKDIR}/${OSAL_GIT_DESTSUFFIX}"
-
 DEPENDS_append_ti33x = " starterware-rtos"
 DEPENDS_append_ti43x = " starterware-rtos"
 
recipes-bsp/osal/osal-test_git.bb +0 -2
index 58156e3..354aa79 100644
@@ -6,8 +6,6 @@ include osal.inc
 
 PR = "${INC_PR}.1"
 
-S = "${WORKDIR}/${OSAL_GIT_DESTSUFFIX}"
-
 EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} OSAL_SRC_DIR=${S}"
 
 do_compile () {
recipes-bsp/osal/osal.inc +4 -10
index b0b015c..1f0a077 100644
@@ -4,17 +4,11 @@ LIC_FILES_CHKSUM = "file://osal.h;beginline=1;endline=31;md5=6fbde6922f8bca1e6cd
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-OSAL_GIT_URI = "git://git.ti.com/keystone-rtos/osal.git"
-OSAL_GIT_PROTOCOL = "git"
-OSAL_GIT_BRANCH = "master"
-OSAL_GIT_DESTSUFFIX = "git/ti/osal"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponding to "DEV.OSAL.01.00.00.16B"
-OSAL_SRCREV = "b78489d9d78d9366f1865aa847b743b1b29f6fd4"
+TI_PDK_COMP = "ti.osal"
 
-BRANCH = "${OSAL_GIT_BRANCH}"
-SRC_URI = "${OSAL_GIT_URI};destsuffix=${OSAL_GIT_DESTSUFFIX};protocol=${OSAL_GIT_PROTOCOL};branch=${BRANCH}"
+PE = "1"
 
-SRCREV = "${OSAL_SRCREV}"
-PV = "01.00.00.16B"
 INC_PR = "r0"
+
recipes-bsp/osal/osal_git.bb +0 -2
index 8f58937..4f881d2 100644
@@ -6,8 +6,6 @@ include osal.inc
 
 PR = "${INC_PR}.1"
 
-S = "${WORKDIR}/${OSAL_GIT_DESTSUFFIX}"
-
 EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
 
 do_compile () {
Signature · 1 line
2.7.4
#30 lore raw

PATCH 22/42 pa-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/pa-lld/pa-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/pa-lld/pa-lld.inc +3 -11
index 5af0e71..83c57e3 100644
@@ -4,22 +4,14 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/pa/COPYING.txt;md5=cd04fb087063
 COMPATIBLE_MACHINE = "keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-PA_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/pa-lld.git"
-PA_LLD_GIT_PROTOCOL = "git"
-PA_LLD_GIT_BRANCH = "master"
-PA_LLD_GIT_DESTSUFFIX = "git/ti/drv/pa"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponding to "DEV.PA_LLD.03.00.02.08A"
-PA_LLD_SRCREV = "02e790bdeba574c0bcca9c0bfe2c071c180c53c8"
+TI_PDK_COMP = "ti.drv.pa"
 
-BRANCH = "${PA_LLD_GIT_BRANCH}"
-SRC_URI = "${PA_LLD_GIT_URI};destsuffix=${PA_LLD_GIT_DESTSUFFIX};protocol=${PA_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${PA_LLD_SRCREV}"
+PE = "1"
 
-PV = "03.00.02.08A"
 INC_PR = "r0"
 
-S = "${WORKDIR}/${PA_LLD_GIT_DESTSUFFIX}"
 
 DEVICELIST = "k2h k2k k2l k2e"
 DEVICELIST_k2hk = "k2h k2k"
Signature · 1 line
2.7.4
#31 lore raw

PATCH 23/42 pcie-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/pcie-lld/pcie-lld-rtos_git.bb | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)
recipes-bsp/pcie-lld/pcie-lld-rtos_git.bb +5 -15
index 51a24e7..cbf15a3 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low lever driver for Peripheral Interconnect Express (PCIE)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.pcie"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://pcie.h;beginline=1;endline=34;md5=566a784d78790a716d641764d5d60b74"
@@ -8,25 +12,11 @@ LIC_FILES_CHKSUM = "file://pcie.h;beginline=1;endline=34;md5=566a784d78790a716d6
 COMPATIBLE_MACHINE = "omap-a15|keystone|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-PCIE_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/pcie-lld.git"
-PCIE_LLD_GIT_PROTOCOL = "git"
-PCIE_LLD_GIT_BRANCH = "master"
-PCIE_LLD_GIT_DESTSUFFIX = "git/ti/drv/pcie"
-
-# Below commit ID corresponds to "DEV.PCIE_LLD.02.03.00.05"
-PCIE_LLD_SRCREV = "3cdbb5e4e4ccced496a4ca91b203965fafffc3e9"
-
-BRANCH = "${PCIE_LLD_GIT_BRANCH}"
-SRC_URI = "${PCIE_LLD_GIT_URI};destsuffix=${PCIE_LLD_GIT_DESTSUFFIX};protocol=${PCIE_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${PCIE_LLD_SRCREV}"
-PV = "02.03.00.05"
 PR = "r0"
 
 DEPENDS_append_k3 = " udma-lld-rtos \
 "
 
-S = "${WORKDIR}/${PCIE_LLD_GIT_DESTSUFFIX}"
 
 export PDK_PCIE_ROOT_PATH ="${WORKDIR}/build"
 export DEST_ROOT="${S}"
Signature · 1 line
2.7.4
#32 lore raw

PATCH 24/42 pru: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/pru/pru-pwm-fw_git.bb    | 11 +++++------
 recipes-bsp/pru/pru-swuart-fw_git.bb | 12 ++++++------
 2 files changed, 11 insertions(+), 12 deletions(-)
recipes-bsp/pru/pru-pwm-fw_git.bb +5 -6
index 0fe7987..a8c7103 100644
@@ -8,17 +8,16 @@ require recipes-ti/includes/ti-paths.inc
 COMPATIBLE_MACHINE = "am65xx"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
-SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
 
-PV = "01.00.00.15B"
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git;protocol=git;branch=${BRANCH}"
+inherit ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.pruss.example.apps.icssg_pwm.firmware.src"
+
+PE = "1"
 
 DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos"
 
-S = "${WORKDIR}/git/example/apps/icssg_pwm/firmware/src"
 
 EXTRA_OEMAKE += " \
     PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \
recipes-bsp/pru/pru-swuart-fw_git.bb +6 -6
index e22b3be..1cb51f3 100644
@@ -8,20 +8,20 @@ require recipes-ti/includes/ti-paths.inc
 COMPATIBLE_MACHINE = "ti33x"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.UART_LLD.01.00.00.15"
-SRCREV = "4493f456549c85749a05b1f46bf0b75d23976db1"
 
-PV = "01.00.00.15"
+inherit ti-pdk-fetch
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/uart-lld.git;protocol=git;branch=${BRANCH} \
+TI_PDK_COMP = "ti.drv.uart"
+
+PE = "1"
+
+SRC_URI_append = " \
 	file://0001-icss_uart-add-Makefile-for-building-firmware.patch \
 	file://0001-icss_uart-remove-dependency-on-PDK-CSL.patch \
 "
 
 DEPENDS = "ti-cgt-pru-native pru-icss"
 
-S = "${WORKDIR}/git"
 
 export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
 export PRU_SSP = "${STAGING_DIR_TARGET}/usr"
Signature · 1 line
2.7.4
#33 lore raw

Re: [meta-ti] [master/thud][PATCH 24/42] pru: migrate to ti-pdk-fetch.bbclass

recipes-bsp/pru/pru-pwm-fw_git.bb

Quoted 7 lines · Jacob Stiffler
---
 recipes-bsp/pru/pru-pwm-fw_git.bb    | 11 +++++------
 recipes-bsp/pru/pru-swuart-fw_git.bb | 12 ++++++------
 2 files changed, 11 insertions(+), 12 deletions(-)
recipes-bsp/pru/pru-pwm-fw_git.bb +0 -0

This seems to break pru-pwm-fw on am65xx:

"iepPwm.c", line 594: error #20: identifier "CSL_ICSS_IEP0_CFG_BASE" is undefined "iepPwm.c", line 600: error #20: identifier "CSL_ICSS_IEP1_CFG_BASE" is undefined

Jake, do you know if this can be fixed quickly, so I don't have to drop 42 patches from next branch? Thanks!

Denys

Quoted 65 lines

index 0fe7987..a8c7103 100644

recipes-bsp/pru/pru-pwm-fw_git.bb +5 -6
@@ -8,17 +8,16 @@ require recipes-ti/includes/ti-paths.inc
 COMPATIBLE_MACHINE = "am65xx"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
-SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
 
-PV = "01.00.00.15B"
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git;protocol=git;branch=${BRANCH}"
+inherit ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.pruss.example.apps.icssg_pwm.firmware.src"
+
+PE = "1"
 
 DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos"
 
-S = "${WORKDIR}/git/example/apps/icssg_pwm/firmware/src"
 
 EXTRA_OEMAKE += " \
     PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \
recipes-bsp/pru/pru-swuart-fw_git.bb +6 -6
index e22b3be..1cb51f3 100644
@@ -8,20 +8,20 @@ require recipes-ti/includes/ti-paths.inc
 COMPATIBLE_MACHINE = "ti33x"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.UART_LLD.01.00.00.15"
-SRCREV = "4493f456549c85749a05b1f46bf0b75d23976db1"
 
-PV = "01.00.00.15"
+inherit ti-pdk-fetch
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/uart-lld.git;protocol=git;branch=${BRANCH} \
+TI_PDK_COMP = "ti.drv.uart"
+
+PE = "1"
+
+SRC_URI_append = " \
 	file://0001-icss_uart-add-Makefile-for-building-firmware.patch \
 	file://0001-icss_uart-remove-dependency-on-PDK-CSL.patch \
 "
 
 DEPENDS = "ti-cgt-pru-native pru-icss"
 
-S = "${WORKDIR}/git"
 
 export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
 export PRU_SSP = "${STAGING_DIR_TARGET}/usr"
Signature · 7 lines
2.7.4

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#34 lore raw

Re: [meta-ti] [master/thud][PATCH 24/42] pru: migrate to ti-pdk-fetch.bbclass

Quoted 7 lines · Denys Dmytriyenko
Quoted 6 lines · Jacob Stiffler
---
  recipes-bsp/pru/pru-pwm-fw_git.bb    | 11 +++++------
  recipes-bsp/pru/pru-swuart-fw_git.bb | 12 ++++++------
  2 files changed, 11 insertions(+), 12 deletions(-)
Quoted 8 lines

recipes-bsp/pru/pru-pwm-fw_git.bb

Quoted 1 line
recipes-bsp/pru/pru-pwm-fw_git.bb +0 -0

This seems to break pru-pwm-fw on am65xx:

"iepPwm.c", line 594: error #20: identifier "CSL_ICSS_IEP0_CFG_BASE" is undefined "iepPwm.c", line 600: error #20: identifier "CSL_ICSS_IEP1_CFG_BASE" is undefined

Jake, do you know if this can be fixed quickly, so I don't have to drop 42 patches from next branch? Thanks!

This depends on some CSL updates which are not quite ready yet. We should be able to revert to an older commit ("38857bc991494e8662d3ab7624b8ac5f026477c8"). Shall I submit a v2 with this commit?

Quoted 68 lines

Denys

Quoted 65 lines

index 0fe7987..a8c7103 100644

recipes-bsp/pru/pru-pwm-fw_git.bb +5 -6
@@ -8,17 +8,16 @@ require recipes-ti/includes/ti-paths.inc
  COMPATIBLE_MACHINE = "am65xx"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
-SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
 
-PV = "01.00.00.15B"
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git;protocol=git;branch=${BRANCH}"
+inherit ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.pruss.example.apps.icssg_pwm.firmware.src"
+
+PE = "1"
 
  DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos"
 
-S = "${WORKDIR}/git/example/apps/icssg_pwm/firmware/src"
 
  EXTRA_OEMAKE += " \
      PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \
recipes-bsp/pru/pru-swuart-fw_git.bb +6 -6
index e22b3be..1cb51f3 100644
@@ -8,20 +8,20 @@ require recipes-ti/includes/ti-paths.inc
  COMPATIBLE_MACHINE = "ti33x"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.UART_LLD.01.00.00.15"
-SRCREV = "4493f456549c85749a05b1f46bf0b75d23976db1"
 
-PV = "01.00.00.15"
+inherit ti-pdk-fetch
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/uart-lld.git;protocol=git;branch=${BRANCH} \
+TI_PDK_COMP = "ti.drv.uart"
+
+PE = "1"
+
+SRC_URI_append = " \
  	file://0001-icss_uart-add-Makefile-for-building-firmware.patch \
  	file://0001-icss_uart-remove-dependency-on-PDK-CSL.patch \
  "
 
  DEPENDS = "ti-cgt-pru-native pru-icss"
 
-S = "${WORKDIR}/git"
 
  export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
  export PRU_SSP = "${STAGING_DIR_TARGET}/usr"
Signature · 7 lines
2.7.4

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#35 lore raw

Re: [meta-ti] [master/thud][PATCH 24/42] pru: migrate to ti-pdk-fetch.bbclass

v2 would be nice, thanks.

On Dec 6, 2019 12:22, "Stiffler, Jacob" <[email protected]> wrote:

Quoted 7 lines · Denys Dmytriyenko
Quoted 6 lines · Jacob Stiffler
---
  recipes-bsp/pru/pru-pwm-fw_git.bb    | 11 +++++------
  recipes-bsp/pru/pru-swuart-fw_git.bb | 12 ++++++------
  2 files changed, 11 insertions(+), 12 deletions(-)
Quoted 8 lines

recipes-bsp/pru/pru-pwm-fw_git.bb

Quoted 1 line
recipes-bsp/pru/pru-pwm-fw_git.bb +0 -0

This seems to break pru-pwm-fw on am65xx:

"iepPwm.c", line 594: error #20: identifier "CSL_ICSS_IEP0_CFG_BASE" is undefined "iepPwm.c", line 600: error #20: identifier "CSL_ICSS_IEP1_CFG_BASE" is undefined

Jake, do you know if this can be fixed quickly, so I don't have to drop 42 patches from next branch? Thanks!

This depends on some CSL updates which are not quite ready yet. We should be able to revert to an older commit ("38857bc991494e8662d3ab7624b8ac5f026477c8"). Shall I submit a v2 with this commit?

Quoted 68 lines

Denys

Quoted 65 lines

index 0fe7987..a8c7103 100644

recipes-bsp/pru/pru-pwm-fw_git.bb +5 -6
@@ -8,17 +8,16 @@ require recipes-ti/includes/ti-paths.inc
  COMPATIBLE_MACHINE = "am65xx"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
-SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
 
-PV = "01.00.00.15B"
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git;protocol=git;branch=${BRANCH}"
+inherit ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.pruss.example.apps.icssg_pwm.firmware.src"
+
+PE = "1"
 
  DEPENDS = "ti-cgt-pru-native pru-icss common-csl-ip-rtos"
 
-S = "${WORKDIR}/git/example/apps/icssg_pwm/firmware/src"
 
  EXTRA_OEMAKE += " \
      PRU_CGT="${TI_CGT_PRU_INSTALL_DIR}" \
recipes-bsp/pru/pru-swuart-fw_git.bb +6 -7
index e22b3be..1cb51f3 100644
@@ -8,20 +8,20 @@ require recipes-ti/includes/ti-paths.inc
  COMPATIBLE_MACHINE = "ti33x"
  PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-# Below commit ID corresponds to "DEV.UART_LLD.01.00.00.15"
-SRCREV = "4493f456549c85749a05b1f46bf0b75d23976db1"
 
-PV = "01.00.00.15"
+inherit ti-pdk-fetch
 
-BRANCH = "master"
-SRC_URI = "git://git.ti.com/keystone-rtos/uart-lld.git;protocol=git;branch=${BRANCH} \
+TI_PDK_COMP = "ti.drv.uart"
+
+PE = "1"
+
+SRC_URI_append = " \
      file://0001-icss_uart-add-Makefile-for-building-firmware.patch \
      file://0001-icss_uart-remove-dependency-on-PDK-CSL.patch \
  "
 
  DEPENDS = "ti-cgt-pru-native pru-icss"
 
-S = "${WORKDIR}/git"
 
  export PRU_CGT = "${TI_CGT_PRU_INSTALL_DIR}"
  export PRU_SSP = "${STAGING_DIR_TARGET}/usr"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#36 lore raw

PATCH 25/42 prueth-fw: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler

* LIC_FILES_CHKSUM changed to due to a corresponding change in the S directory.

---
 recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb | 6 ++++--
 recipes-bsp/prueth-fw/prueth-fw_git.bb       | 7 ++++---
 2 files changed, 8 insertions(+), 5 deletions(-)
recipes-bsp/prueth-fw/prueth-fw-am65x_git.bb +4 -2
index 08ef7f0..430e2a4 100644
@@ -4,11 +4,13 @@ require recipes-ti/includes/ti-paths.inc
 require recipes-bsp/emac-lld/emac-lld.inc
 
 LICENSE = "TI-TFL"
-LIC_FILES_CHKSUM = "file://src/makefile;beginline=6;endline=53;md5=3f9129d208f240940749757214bdc191"
+LIC_FILES_CHKSUM = "file://icss_dualmac/src/makefile;beginline=6;endline=53;md5=3f9129d208f240940749757214bdc191"
 
 PR = "r0"
 
-S = "${WORKDIR}/git/firmware/icss_dualmac"
+TI_PDK_COMP = "ti.drv.emac.firmware"
+
+B = "${S}/icss_dualmac"
 
 COMPATIBLE_MACHINE = "am65xx"
 
recipes-bsp/prueth-fw/prueth-fw_git.bb +4 -3
index 573a428..14518e1 100644
@@ -4,12 +4,13 @@ require recipes-ti/includes/ti-paths.inc
 require recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 
 LICENSE = "TI-TFL"
-LIC_FILES_CHKSUM = "file://src/firmware_version.h;beginline=6;endline=53;md5=1f0a640a261059cdcbbcf01e6a739ff3"
+LIC_FILES_CHKSUM = "file://icss_dualemac/src/firmware_version.h;beginline=6;endline=53;md5=1f0a640a261059cdcbbcf01e6a739ff3"
 
-PV = "${PV_DUALEMAC_FW}"
 PR = "${INC_PR}.0"
 
-S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}/firmware/icss_dualemac"
+TI_PDK_COMP = "ti.drv.icss_emac.firmware"
+
+B = "${S}/icss_dualemac"
 
 COMPATIBLE_MACHINE = "am57xx-evm|am437x-evm|am335x-evm|k2g"
 
Signature · 1 line
2.7.4
#37 lore raw

PATCH 26/42 pruss-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/pruss-lld/pruss-lld-apps_git.bb |  2 --
 recipes-bsp/pruss-lld/pruss-lld-rtos_git.bb |  2 --
 recipes-bsp/pruss-lld/pruss-lld-test_git.bb |  2 --
 recipes-bsp/pruss-lld/pruss-lld.inc         | 13 +++----------
 recipes-bsp/pruss-lld/pruss-lld_git.bb      |  2 --
 5 files changed, 3 insertions(+), 18 deletions(-)
recipes-bsp/pruss-lld/pruss-lld-apps_git.bb +0 -2
index 5867984..48eab40 100644
@@ -9,8 +9,6 @@ include pruss-lld.inc
 
 PR = "${INC_PR}.0"
 
-S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}"
-
 EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} PDK_PKG_PATH=${STAGING_DATADIR}/ti/ti-pdk-tree/packages PRUSS_SRC_DIR=${S}"
 
 
recipes-bsp/pruss-lld/pruss-lld-rtos_git.bb +0 -2
index b8db20e..9ab09b6 100644
@@ -6,8 +6,6 @@ require recipes-bsp/pruss-lld/pruss-lld.inc
 COMPATIBLE_MACHINE_append = "|k3"
 PR = "${INC_PR}.0"
 
-S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}"
-
 DEPENDS_append = " osal-rtos"
 DEPENDS_append_ti33x = " starterware-rtos"
 DEPENDS_append_ti43x = " starterware-rtos"
recipes-bsp/pruss-lld/pruss-lld-test_git.bb +0 -2
index 93f1901..8007f65 100644
@@ -6,8 +6,6 @@ include pruss-lld.inc
 
 PR = "${INC_PR}.2"
 
-S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}"
-
 EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} PRUSS_SRC_DIR=${S}"
 
 DEVICE_LIST ?= "${TI_PDK_LIMIT_SOCS}"
recipes-bsp/pruss-lld/pruss-lld.inc +3 -10
index 1fd3fb7..793ba83 100644
@@ -4,18 +4,11 @@ LIC_FILES_CHKSUM = "file://pruicss.h;beginline=1;endline=31;md5=315177aa03d58bcd
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-PRUSS_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/pruss-lld.git"
-PRUSS_LLD_GIT_PROTOCOL = "git"
-PRUSS_LLD_GIT_BRANCH = "master"
-PRUSS_LLD_GIT_DESTSUFFIX = "git/ti/drv/pruss"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.PRUSS_LLD.01.00.00.15B"
-PRUSS_LLD_SRCREV = "989f802266d52f50a6db8f2be6967eacd9d2b409"
+TI_PDK_COMP = "ti.drv.pruss"
 
-BRANCH = "${PRUSS_LLD_GIT_BRANCH}"
-SRC_URI = "${PRUSS_LLD_GIT_URI};destsuffix=${PRUSS_LLD_GIT_DESTSUFFIX};protocol=${PRUSS_LLD_GIT_PROTOCOL};branch=${BRANCH}"
+PE = "1"
 
-SRCREV = "${PRUSS_LLD_SRCREV}"
-PV = "01.00.00.15B"
 INC_PR = "r0"
 
recipes-bsp/pruss-lld/pruss-lld_git.bb +0 -2
index 5b0a257..f1e93cd 100644
@@ -6,8 +6,6 @@ include pruss-lld.inc
 
 PR = "${INC_PR}.2"
 
-S = "${WORKDIR}/${PRUSS_LLD_GIT_DESTSUFFIX}"
-
 EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
 
 do_compile () {
Signature · 1 line
2.7.4
#38 lore raw

PATCH 27/42 qmss-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/qmss-lld/qmss-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/qmss-lld/qmss-lld.inc +3 -11
index f42f16e..5c9620f 100644
@@ -4,19 +4,12 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/qmss/COPYING.txt;md5=cd04fb0870
 COMPATIBLE_MACHINE = "keystone"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-QMSS_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/qmss-lld.git"
-QMSS_LLD_GIT_PROTOCOL = "git"
-QMSS_LLD_GIT_BRANCH = "master"
-QMSS_LLD_GIT_DESTSUFFIX = "git/ti/drv/qmss"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponding to "DEV.QMSS_LLD.02.01.00.16A"
-QMSS_LLD_SRCREV = "7ca6e92b2081bd2eb64fa3dc9ca33df78b3ce292"
+TI_PDK_COMP = "ti.drv.qmss"
 
-BRANCH ="${QMSS_LLD_GIT_BRANCH}"
-SRC_URI = "${QMSS_LLD_GIT_URI};destsuffix=${QMSS_LLD_GIT_DESTSUFFIX};protocol=${QMSS_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${QMSS_LLD_SRCREV}"
+PE = "1"
 
-PV = "02.01.00.16A"
 INC_PR = "r0"
 
 DEVICELIST = "k2h k2k k2l k2e"
@@ -24,4 +17,3 @@ DEVICELIST_k2hk = "k2h k2k"
 DEVICELIST_k2l = "k2l"
 DEVICELIST_k2e = "k2e"
 
-S = "${WORKDIR}/${QMSS_LLD_GIT_DESTSUFFIX}"
Signature · 1 line
2.7.4
#39 lore raw

PATCH 28/42 rm-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/rm-lld/rm-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/rm-lld/rm-lld.inc +3 -11
index 69f950e..e6e61af 100644
@@ -2,22 +2,14 @@ DESCRIPTION = "TI Resource Manager Low Level Driver"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/rm/COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"
 
-RM_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/rm-lld.git"
-RM_LLD_GIT_PROTOCOL = "git"
-RM_LLD_GIT_BRANCH = "master"
-RM_LLD_GIT_DESTSUFFIX = "git/ti/drv/rm"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.RM_LLD.02.02.00.03B"
-RM_LLD_SRCREV = "dbe616355318981999c2f7a70a14377fcda913c8"
+TI_PDK_COMP = "ti.drv.rm"
 
-BRANCH = "${RM_LLD_GIT_BRANCH}"
-SRC_URI = "${RM_LLD_GIT_URI};destsuffix=${RM_LLD_GIT_DESTSUFFIX};protocol=${RM_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${RM_LLD_SRCREV}"
+PE = "1"
 
-PV = "02.02.00.03B"
 INC_PR = "r0"
 
 COMPATIBLE_MACHINE = "keystone"
 
 BASEDIR = "${WORKDIR}/git"
-S = "${BASEDIR}/ti/drv/rm"
Signature · 1 line
2.7.4
#40 lore raw

PATCH 29/42 sciclient: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/sciclient/sciclient-rtos_git.bb | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
recipes-bsp/sciclient/sciclient-rtos_git.bb +6 -14
index bfaa84a..6a3d79c 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for SCICLIENT"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.sciclient"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444815f1737bfcdfa892a"
@@ -8,18 +12,6 @@ LIC_FILES_CHKSUM = "file://sciclient.h;beginline=1;endline=31;md5=7224b2eeca1444
 COMPATIBLE_MACHINE = "k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SCICLIENT_GIT_URI = "git://git.ti.com/keystone-rtos/sciclient.git"
-SCICLIENT_GIT_PROTOCOL = "git"
-SCICLIENT_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.SCICLIENT.01.00.00.04"
-SCICLIENT_SRCREV = "287fe553ef548a60cce59e6a41d2e173ecbbc18a"
-
-BRANCH = "${SCICLIENT_GIT_BRANCH}"
-SRC_URI = "${SCICLIENT_GIT_URI};protocol=${SCICLIENT_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${SCICLIENT_SRCREV}"
-PV = "01.00.00.04"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos common-csl-ip-rtos"
@@ -27,7 +19,7 @@ DEPENDS_append = " osal-rtos common-csl-ip-rtos"
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
 
-SCICLIENT_PACKAGE_BASE   = "${S}/../sciclient_base"
+SCICLIENT_PACKAGE_BASE = "${WORKDIR}/sciclient_base"
 SCICLIENT_ROOTPATH = "${SCICLIENT_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/sciclient"
 
 export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
Signature · 1 line
2.7.4
#41 lore raw

PATCH 30/42 spi-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/spi-lld/spi-lld-rtos_git.bb | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
recipes-bsp/spi-lld/spi-lld-rtos_git.bb +5 -13
index 1dab251..7d53d15 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for Serial Peripheral Interface (SPI)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.spi"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://SPI.h;beginline=1;endline=31;md5=8580f9c5c0de8d5d13518cf18a0122b8"
@@ -8,18 +12,6 @@ LIC_FILES_CHKSUM = "file://SPI.h;beginline=1;endline=31;md5=8580f9c5c0de8d5d1351
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|c66x|omapl1|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-SPI_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/spi-lld.git"
-SPI_LLD_GIT_PROTOCOL = "git"
-SPI_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.SPI_LLD.01.00.00.16A"
-SPI_LLD_SRCREV = "4319424ca55676d25758f3e05797fac707b0b1f8"
-
-BRANCH = "${SPI_LLD_GIT_BRANCH}"
-SRC_URI = "${SPI_LLD_GIT_URI};protocol=${SPI_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${SPI_LLD_SRCREV}"
-PV = "01.00.00.16A"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos \
Signature · 1 line
2.7.4
#42 lore raw

PATCH 31/42 srio-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/srio-lld/srio-lld.inc | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)
recipes-bsp/srio-lld/srio-lld.inc +3 -11
index 0512f0f..efe379f 100644
@@ -3,24 +3,16 @@ LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/srio/srio_drv.h;beginline=1;end
 
 COMPATIBLE_MACHINE = "k2hk"
 
-SRIO_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/srio-lld.git"
-SRIO_LLD_GIT_PROTOCOL = "git"
-SRIO_LLD_GIT_BRANCH = "master"
-SRIO_LLD_GIT_DESTSUFFIX = "git/ti/drv/srio"
+inherit ti-pdk-fetch
 
-# commit ID corresponding to "DEV.SRIO_LLD.02.00.00.17A"
-SRIO_LLD_SRCREV = "8f230bda0a5a4c510101834bb7bb403182ac2ed8"
+TI_PDK_COMP = "ti.drv.srio"
 
-BRANCH = "${SRIO_LLD_GIT_BRANCH}"
-SRC_URI = "${SRIO_LLD_GIT_URI};destsuffix=${SRIO_LLD_GIT_DESTSUFFIX};protocol=${SRIO_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-SRCREV = "${SRIO_LLD_SRCREV}"
+PE = "1"
 
-PV = "02.00.00.17A"
 INC_PR = "r0"
 
 DEVICELIST = "k2h k2k"
 
 BASEDIR = "${WORKDIR}/git"
-S = "${BASEDIR}/ti/drv/srio"
 
 EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
Signature · 1 line
2.7.4
#43 lore raw

PATCH 32/42 tcp3d-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/tcp3d-lld/tcp3d-lld-rtos_git.bb | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)
recipes-bsp/tcp3d-lld/tcp3d-lld-rtos_git.bb +5 -16
index 31922c2..0f7c52b 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI third generation Turbo Coprocessor (TCP3) low level driver"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.tcp3d"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://tcp3dver.h;beginline=1;endline=47;md5=3fe46c6320fb9ca4ac6692961402beb7"
@@ -8,23 +12,8 @@ LIC_FILES_CHKSUM = "file://tcp3dver.h;beginline=1;endline=47;md5=3fe46c6320fb9ca
 COMPATIBLE_MACHINE = "k2hk|k2l|c66x"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-TCP3D_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/tcp3d-lld.git"
-TCP3D_LLD_GIT_PROTOCOL = "git"
-TCP3D_LLD_GIT_BRANCH = "master"
-TCP3D_LLD_GIT_DESTSUFFIX = "git/ti/drv/bcp"
-
-# Below commit ID corresponds to "DEV.TCP3D_LLD.02.01.00.06B"
-TCP3D_LLD_SRCREV = "a8b3791044edf632e8348cdbd287d48a754d11ac"
-
-BRANCH = "${TCP3D_LLD_GIT_BRANCH}"
-SRC_URI = "${TCP3D_LLD_GIT_URI};destsuffix=${TCP3D_LLD_GIT_DESTSUFFIX};protocol=${TCP3D_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${TCP3D_LLD_SRCREV}"
-PV = "02.01.00.06B"
 PR = "r0"
 
-S = "${WORKDIR}/${TCP3D_LLD_GIT_DESTSUFFIX}"
-
 DEPENDS_append = " edma3-lld-rtos"
 
 export EDMA3LLD_BIOS6_INSTALLDIR = "${EDMA3_LLD_INSTALL_DIR}"
Signature · 1 line
2.7.4
#44 lore raw

PATCH 33/42 transport-rtos: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler

* Add new recipe for timesync-rtos

---
 recipes-bsp/transport-rtos/bmet-eth-rtos_git.bb  |  4 +--
 recipes-bsp/transport-rtos/nimu-icss-rtos_git.bb |  4 +--
 recipes-bsp/transport-rtos/nimu-rtos_git.bb      |  4 +--
 recipes-bsp/transport-rtos/timesync-rtos_git.bb  | 32 ++++++++++++++++++++++++
 recipes-bsp/transport-rtos/transport.inc         | 12 +++------
 5 files changed, 38 insertions(+), 18 deletions(-)
 create mode 100644 recipes-bsp/transport-rtos/timesync-rtos_git.bb
recipes-bsp/transport-rtos/bmet-eth-rtos_git.bb +1 -3
index 137476e..f14161f 100644
@@ -13,9 +13,7 @@ DEPENDS_append = " qmss-lld-rtos \
                    cppi-lld-rtos \
 "
 
-BMET_ETH_DESTSUFFIX = "git/bmet_eth"
-
-S = "${WORKDIR}/${BMET_ETH_DESTSUFFIX}"
+TI_PDK_COMP = "ti.transport.bmet_eth"
 
 # HTML doc link params
 PDK_COMP_LINK_TEXT = "Baremetal Ethernet Transport"
recipes-bsp/transport-rtos/nimu-icss-rtos_git.bb +1 -3
index 4750e04..02ddc47 100644
@@ -17,13 +17,11 @@ DEPENDS_append_c665x-evm = " emac-lld-rtos"
 DEPENDS_append_c667x-evm = " pa-lld-rtos"
 DEPENDS_append_omapl1 = " emac-lld-rtos"
 
-NIMU_ICSS_DESTSUFFIX = "git/ndk/nimu_icss"
+TI_PDK_COMP = "ti.transport.ndk.nimu_icss"
 
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
 
-S = "${WORKDIR}/${NIMU_ICSS_DESTSUFFIX}"
-
 export PDK_NIMU_ICSS_ROOT_PATH ="${WORKDIR}/build"
 export DEST_ROOT="${S}"
 
recipes-bsp/transport-rtos/nimu-rtos_git.bb +1 -3
index 1e3bc18..4389b1e 100644
@@ -9,9 +9,7 @@ LIC_FILES_CHKSUM = "file://nimu_eth.h;beginline=1;endline=35;md5=ee9c662c39d4584
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|c66x|omapl1|k3"
 
-NIMU_DESTSUFFIX = "git/ndk/nimu"
-
-S = "${WORKDIR}/${NIMU_DESTSUFFIX}"
+TI_PDK_COMP = "ti.transport.ndk.nimu"
 
 DEPENDS_append = " ti-ndk osal-rtos"
 DEPENDS_append_ti33x = " starterware-rtos emac-lld-rtos"
recipes-bsp/transport-rtos/timesync-rtos_git.bb new file +32 -0
new file mode 100644
index 0000000..e776c66
@@ -0,0 +1,32 @@
+SUMMARY = "RTOS driver for timesync driver"
+
+inherit ti-pdk
+require recipes-ti/includes/ti-paths.inc
+require recipes-bsp/transport-rtos/transport.inc
+
+PR = "${INC_PR}.0"
+
+LIC_FILES_CHKSUM = "file://timeSync_ver.h;beginline=23;endline=45;md5=4bd873035e47065aaa811e53622992e9"
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g"
+
+DEPENDS_append = " ti-ndk \
+                   osal-rtos \
+                   pruss-lld-rtos \
+                   icss-emac-lld-rtos \
+                   nimu-icss-rtos \
+                   edma3-lld-rtos \
+"
+
+TI_PDK_COMP = "ti.transport.timeSync"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+export PDK_TIMESYNC_ROOT_PATH ="${WORKDIR}/build"
+export DEST_ROOT="${S}"
+
+export NDK_INSTALL_PATH = "${NDK_INSTALL_DIR}"
+export EDMA3LLD_BIOS6_INSTALLDIR = "${EDMA3_LLD_INSTALL_DIR}"
+
+XDCPATH_append = ";${NDK_INSTALL_DIR}/packages"
recipes-bsp/transport-rtos/transport.inc +3 -9
index 345cd6d..866d7a3 100644
@@ -2,16 +2,10 @@ LICENSE = "BSD-3-Clause"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-TRANSPORT_GIT_URI = "git://git.ti.com/keystone-rtos/transport.git"
-TRANSPORT_GIT_PROTOCOL = "git"
-TRANSPORT_GIT_BRANCH = "master"
+inherit ti-pdk-fetch
 
-# Below commit ID corresponds to "DEV.TRANSPORT.01.00.00.17A"
-TRANSPORT_SRCREV = "9ed171c476a5606777d2dcb4e831c279a5160245"
+TI_PDK_COMP = "ti.transport"
 
-BRANCH = "${TRANSPORT_GIT_BRANCH}"
-SRC_URI = "${TRANSPORT_GIT_URI};protocol=${TRANSPORT_GIT_PROTOCOL};branch=${BRANCH}"
+PE = "1"
 
-SRCREV = "${TRANSPORT_SRCREV}"
-PV = "01.00.00.17A"
 INC_PR = "r0"
Signature · 1 line
2.7.4
#45 lore raw

PATCH 34/42 tsip-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/tsip-lld/tsip-lld-rtos_git.bb | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
recipes-bsp/tsip-lld/tsip-lld-rtos_git.bb +5 -13
index 6da80dd..bd8a6e3 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS low level driver for Telecom Serial Interface Port (TSIP)"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.tsip"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://tsip.h;beginline=1;endline=32;md5=dab2257b0b8a3678c26915f6eb49b71e"
@@ -8,18 +12,6 @@ LIC_FILES_CHKSUM = "file://tsip.h;beginline=1;endline=32;md5=dab2257b0b8a3678c26
 COMPATIBLE_MACHINE = "k2e|c667x-evm"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-TSIP_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/tsip-lld.git"
-TSIP_LLD_GIT_PROTOCOL = "git"
-TSIP_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.TSIP_LLD.01.00.00.08A"
-TSIP_LLD_SRCREV = "368ff5fbd963f4b5d5c81bbfaf3daca23beb2a87"
-
-BRANCH = "${TSIP_LLD_GIT_BRANCH}"
-SRC_URI = "${TSIP_LLD_GIT_URI};protocol=${TSIP_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${TSIP_LLD_SRCREV}"
-PV = "01.00.00.08A"
 PR = "r0"
 
 # HTML doc link params
Signature · 1 line
2.7.4
#46 lore raw

PATCH 35/42 uart-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/uart-lld/uart-lld-rtos_git.bb | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
recipes-bsp/uart-lld/uart-lld-rtos_git.bb +5 -13
index f279a67..f293fdd 100644
@@ -1,7 +1,11 @@
 SUMMARY = "TI RTOS low level driver for UART"
 DESCRIPTION = "TI RTOS low level driver for Universal Asynchronous Receiver/Transmitter (UART) module "
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.uart"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=1;endline=31;md5=94b6a199da1caf777f6756cb70aca4a7"
@@ -9,18 +13,6 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=1;endline=31;md5=94b6a199da1caf
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-UART_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/uart-lld.git"
-UART_LLD_GIT_PROTOCOL = "git"
-UART_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.UART_LLD.01.00.00.16B"
-UART_LLD_SRCREV = "227feb6e1da72bf0a785d95b7aaffd3216885f95"
-
-BRANCH = "${UART_LLD_GIT_BRANCH}"
-SRC_URI = "${UART_LLD_GIT_URI};protocol=${UART_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${UART_LLD_SRCREV}"
-PV = "01.00.00.16B"
 PR = "r0"
 
 DEPENDS_append = " edma3-lld-rtos \
Signature · 1 line
2.7.4
#47 lore raw

PATCH 36/42 udma-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/udma-lld/udma-lld-rtos_git.bb | 20 ++++++--------------
 1 file changed, 6 insertions(+), 14 deletions(-)
recipes-bsp/udma-lld/udma-lld-rtos_git.bb +6 -14
index c3352c1..214317c 100644
@@ -1,7 +1,11 @@
 SUMMARY = "TI RTOS low level driver for UDMA"
 DESCRIPTION = "TI RTOS low level driver for Universal DMA module "
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.udma"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://udma.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
@@ -9,18 +13,6 @@ LIC_FILES_CHKSUM = "file://udma.h;beginline=1;endline=31;md5=83d177cf3df55c16b27
 COMPATIBLE_MACHINE = "k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-UDMA_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/udma-lld.git"
-UDMA_LLD_GIT_PROTOCOL = "git"
-UDMA_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.UDMA_LLD.01.00.00.04"
-UDMA_LLD_SRCREV = "67edfa436beb3362051a097b456ba07c95faa4a6"
-
-BRANCH = "${UDMA_LLD_GIT_BRANCH}"
-SRC_URI = "${UDMA_LLD_GIT_URI};protocol=${UDMA_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${UDMA_LLD_SRCREV}"
-PV = "01.00.00.04"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos \
@@ -30,7 +22,7 @@ DEPENDS_append = " osal-rtos \
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
 
-UDMA_PACKAGE_BASE   = "${S}/../udma_base"
+UDMA_PACKAGE_BASE   = "${WORKDIR}/udma_base"
 UDMA_LLD_ROOTPATH = "${UDMA_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/udma"
 
 export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
Signature · 1 line
2.7.4
#48 lore raw

PATCH 37/42 usb-lld: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/usb-lld/usb-lld-rtos_git.bb | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)
recipes-bsp/usb-lld/usb-lld-rtos_git.bb +5 -13
index 6a212e3..7aa0d1b 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS USB low level driver"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.usb"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://USBver.h;beginline=16;endline=46;md5=5394fa32763383d2c8e2aca5a1c67805"
@@ -8,18 +12,6 @@ LIC_FILES_CHKSUM = "file://USBver.h;beginline=16;endline=46;md5=5394fa32763383d2
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k2g|omapl1|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-USB_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/usb.git"
-USB_LLD_GIT_PROTOCOL = "git"
-USB_LLD_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.USB_LLD.01.00.00.19"
-USB_LLD_SRCREV = "1304fbdc7e0d67dd3722ac1a450a547a5d82d20a"
-
-BRANCH = "${USB_LLD_GIT_BRANCH}"
-SRC_URI = "${USB_LLD_GIT_URI};protocol=${USB_LLD_GIT_PROTOCOL};branch=${BRANCH}"
-
-SRCREV = "${USB_LLD_SRCREV}"
-PV = "01.00.00.19"
 PR = "r0"
 
 DEPENDS_append = " osal-rtos"
Signature · 1 line
2.7.4
#49 lore raw

PATCH 38/42 utils-rtos: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-bsp/utils-rtos/profiling-rtos_git.bb | 18 +++++-------------
 recipes-bsp/utils-rtos/trace-rtos_git.bb     | 18 +++++-------------
 2 files changed, 10 insertions(+), 26 deletions(-)
recipes-bsp/utils-rtos/profiling-rtos_git.bb +5 -13
index 134a0f9..9846804 100644
@@ -1,6 +1,10 @@
 SUMMARY = "TI RTOS profiling utilities"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.utils.profiling"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://profilingver.h;beginline=1;endline=46;md5=974494ad60f33cfc0340e421c5a5a7a0"
@@ -8,21 +12,9 @@ LIC_FILES_CHKSUM = "file://profilingver.h;beginline=1;endline=46;md5=974494ad60f
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-PROFILING_GIT_URI = "git://git.ti.com/keystone-rtos/utils.git"
-PROFILING_GIT_PROTOCOL = "git"
-PROFILING_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.UTILS.01.00.00.10"
-PROFILING_SRCREV = "dbd2683d80326165d078282b1ef7dce44667e972"
-
-BRANCH = "${PROFILING_GIT_BRANCH}"
-SRC_URI = "${PROFILING_GIT_URI};protocol=${PROFILING_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${PROFILING_SRCREV}"
-PV = "01.00.00.10"
 PR = "r0"
 
-S = "${WORKDIR}/git/profiling"
 
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
recipes-bsp/utils-rtos/trace-rtos_git.bb +5 -13
index 48b3bf2..249ffc7 100644
@@ -2,7 +2,11 @@ SUMMARY = "TI RTOS Trace utility"
 
 DESCRIPTION = "This utility allows for tracing support in PDK drivers"
 
-inherit ti-pdk
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.utils.trace"
+
+PE = "1"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://tracever.h;beginline=19;endline=47;md5=983f531ecfc9fc8c4bc3af9333ab6696"
@@ -10,21 +14,9 @@ LIC_FILES_CHKSUM = "file://tracever.h;beginline=19;endline=47;md5=983f531ecfc9fc
 COMPATIBLE_MACHINE = "k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-TRACE_GIT_URI = "git://git.ti.com/keystone-rtos/utils.git"
-TRACE_GIT_PROTOCOL = "git"
-TRACE_GIT_BRANCH = "master"
-
-# Below commit ID corresponds to "DEV.UTILS.01.00.00.09"
-TRACE_SRCREV = "84802d7a787a53f33a24254069c90208c5d87d1e"
-
-BRANCH = "${TRACE_GIT_BRANCH}"
-SRC_URI = "${TRACE_GIT_URI};protocol=${TRACE_GIT_PROTOCOL};branch=${BRANCH}"
 
-SRCREV = "${TRACE_SRCREV}"
-PV = "01.00.00.09"
 PR = "r0"
 
-S = "${WORKDIR}/git/trace"
 
 # Build with make instead of XDC
 TI_PDK_XDCMAKE = "0"
Signature · 1 line
2.7.4
#50 lore raw

PATCH 39/42 ti-pdk-build: migrate to ti-pdk-fetch.bbclass

In reply to Jacob Stiffler
---
 recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb | 17 +++--------------
 1 file changed, 3 insertions(+), 14 deletions(-)
recipes-ti/ti-pdk-build/ti-pdk-build-rtos_git.bb +3 -14
index 6667fe0..9664881 100644
@@ -4,28 +4,17 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=1;endline=31;md5=92ab6f5e10f150
 
 require recipes-ti/includes/ti-paths.inc
 
-PV = "01.00.00.14B"
 PR = "r0"
 
-PDK_BUILD_GIT_URI = "git://git.ti.com/keystone-rtos/processor-pdk-build.git"
-PDK_BUILD_GIT_PROTOCOL = "git"
-PDK_BUILD_GIT_BRANCH = "master"
+inherit ti-pdk-fetch
 
-# Below Commit ID corresponds to "DEV.PDK_BUILD.01.00.00.14B"
-PDK_BUILD_SRCREV = "ace03765311d61234e86f6ba04912ab808d37d30"
+TI_PDK_COMP = "ti.build"
 
-BRANCH = "${PDK_BUILD_GIT_BRANCH}"
-SRC_URI = "\
-    ${PDK_BUILD_GIT_URI};protocol=${PDK_BUILD_GIT_PROTOCOL};branch=${BRANCH} \
-    "
-
-SRCREV = "${PDK_BUILD_SRCREV}"
+PE = "1"
 
 COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|keystone|omapl1|c66x|k3"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-S = "${WORKDIR}/git/"
-
 PARALLEL_MAKE = ""
 CLEANBROKEN = "1"
 
Signature · 1 line
2.7.4
#51 lore raw

PATCH 40/42 cal-lld: TI RTOS low level driver for CAL

In reply to Jacob Stiffler
---
 recipes-bsp/cal-lld/cal-lld-rtos_git.bb | 78 +++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)
 create mode 100644 recipes-bsp/cal-lld/cal-lld-rtos_git.bb
recipes-bsp/cal-lld/cal-lld-rtos_git.bb new file +78 -0
new file mode 100644
index 0000000..9a34cd2
@@ -0,0 +1,78 @@
+SUMMARY = "TI RTOS low level driver for CAL"
+
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.cal"
+
+PE = "1"
+
+require recipes-ti/includes/ti-paths.inc
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://cal.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+
+PR = "r0"
+
+DEPENDS_append = " osal-rtos \
+                   fvid2-rtos \
+"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+CAL_PACKAGE_BASE   = "${WORKDIR}/cal_base"
+CAL_LLD_ROOTPATH = "${CAL_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/cal"
+
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+export PDK_CAL_ROOT_PATH = "${CAL_PACKAGE_BASE}/package/all/pdk_/packages"
+
+LIMSOCS = ""
+LIMSOCS_am65xx-evm = "am65xx"
+LIMSOCS_am65xx-hs-evm = "am65xx"
+
+LIMBOARDS = ""
+LIMBOARDS_am65xx-evm = "am65xx_evm"
+LIMBOARDS_am65xx-hs-evm = "am65xx_evm"
+
+BOARD_PACKAGE = ""
+BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
+BOARD_PACKAGE_am65xx-hs-evm = "am65xx_evm"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "CAL"
+
+do_configure() {
+    rm -rf ${CAL_PACKAGE_BASE}
+    cd ${S}
+
+    # remove any previous package
+    rm -f ${CAL_PACKAGE_BASE}
+
+    # make the release package before building it
+    make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${CAL_PACKAGE_BASE} PDK_CAL_COMP_PATH=${S}
+}
+
+do_compile() {
+    echo "cal lld root path is ${CAL_LLD_ROOTPATH}"
+    cd ${CAL_LLD_ROOTPATH}
+
+    # Build am65xx libraries
+    make clean lib xdc_meta doxygen LIMIT_SOCS="${LIMSOCS}" LIMIT_BOARDS="${LIMBOARDS}"
+
+    #archive
+    tar -cf cal_lld.tar --exclude='*.tar' ./*
+}
+
+do_install() {
+    cd ${CAL_LLD_ROOTPATH}
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/cal
+    find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/cal \;
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INSANE_SKIP_${PN} = "arch ldflags"
Signature · 1 line
2.7.4
#52 lore raw

PATCH 41/42 fvid2: TI RTOS Video Driver Interface

In reply to Jacob Stiffler
---
 recipes-bsp/fvid2/fvid2-rtos_git.bb | 70 +++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
 create mode 100755 recipes-bsp/fvid2/fvid2-rtos_git.bb
recipes-bsp/fvid2/fvid2-rtos_git.bb new file +70 -0
new file mode 100755
index 0000000..07f2c34
@@ -0,0 +1,70 @@
+SUMMARY = "TI RTOS Video Driver Interface"
+
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.fvid2"
+
+PE = "1"
+
+require recipes-ti/includes/ti-paths.inc
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://fvid2.h;beginline=1;endline=31;md5=83d177cf3df55c16b27ae4102b6ade9a"
+
+COMPATIBLE_MACHINE = "k3"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PR = "r0"
+
+DEPENDS_append = " osal-rtos \
+"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+FVID2_PACKAGE_BASE   = "${WORKDIR}/fvid2_base"
+FVID2_ROOTPATH = "${FVID2_PACKAGE_BASE}/package/all/pdk_/packages/ti/drv/fvid2"
+
+export PDK_INSTALL_PATH = "${PDK_INSTALL_DIR}/packages"
+export PDK_FVID2_ROOT_PATH = "${FVID2_PACKAGE_BASE}/package/all/pdk_/packages"
+
+
+BOARD_PACKAGE = ""
+BOARD_PACKAGE_am65xx-evm = "am65xx_evm"
+BOARD_PACKAGE_am65xx-hs-evm = "am65xx_evm"
+BOARD_PACKAGE_j7-evm = "j721e_evm"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "FVID2"
+
+do_configure() {
+    rm -rf ${FVID2_PACKAGE_BASE}
+    cd ${S}
+
+    # remove any previous package
+    rm -f ${FVID2_PACKAGE_BASE}
+
+    # make the release package before building it
+    make package BOARD=${BOARD_PACKAGE} DEST_ROOT=${FVID2_PACKAGE_BASE} PDK_FVID2_COMP_PATH=${S}
+}
+
+do_compile() {
+    echo "fvid2 root path is ${FVID2_ROOTPATH}"
+    cd ${FVID2_ROOTPATH}
+
+    # Build am65xx libraries
+    make clean lib xdc_meta LIMIT_SOCS="${TI_PDK_LIMIT_SOCS}" LIMIT_BOARDS="${TI_PDK_LIMIT_BOARDS}"  LIMIT_CORES="${TI_PDK_LIMIT_CORES}"
+
+    #archive
+    tar -cf fvid2.tar --exclude='*.tar' ./*
+}
+
+do_install() {
+    cd ${FVID2_ROOTPATH}
+    install -d ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/fvid2
+    find -name "*.tar" -exec tar xf {} --no-same-owner -C ${D}${PDK_INSTALL_DIR_RECIPE}/packages/ti/drv/fvid2 \;
+}
+
+FILES_${PN} += "${PDK_INSTALL_DIR_RECIPE}/packages"
+
+INSANE_SKIP_${PN} = "arch ldflags"
Signature · 1 line
2.7.4
#53 lore raw

PATCH 42/42 iolink-lld: TI RTOS low level driver for IO-Link Master

In reply to Jacob Stiffler
---
 recipes-bsp/iolink-lld/iolink-lld-rtos_git.bb | 33 +++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 recipes-bsp/iolink-lld/iolink-lld-rtos_git.bb
recipes-bsp/iolink-lld/iolink-lld-rtos_git.bb new file +33 -0
new file mode 100644
index 0000000..c0c27b6
@@ -0,0 +1,33 @@
+SUMMARY = "TI RTOS low level driver for IO-Link Master"
+
+inherit ti-pdk ti-pdk-fetch
+
+TI_PDK_COMP = "ti.drv.iolink"
+
+PE = "1"
+
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://IOLINK.h;beginline=1;endline=32;md5=da669339a4b8594ed3edbe7ca30c726e"
+
+COMPATIBLE_MACHINE = "ti43x"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+PR = "r2"
+
+DEPENDS_append = " osal-rtos \
+"
+DEPENDS_append_ti43x = " starterware-rtos \
+                         pruss-lld-rtos \
+"
+
+# Build with make instead of XDC
+TI_PDK_XDCMAKE = "0"
+
+
+export PDK_IOLINK_ROOT_PATH ="${WORKDIR}/build"
+export DEST_ROOT="${S}"
+
+INSANE_SKIP_${PN} = "arch"
+
+# HTML doc link params
+PDK_COMP_LINK_TEXT = "IOLINK LLD"
Signature · 1 line
2.7.4