Skip to contentSkip to conversation

icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

PATCH In review Hongmei Gou 2 participants 6 messages Jul 11, 2017 – Aug 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47 ++++++++++++++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +47 -0
new file mode 100644
index 0000000..f62bf33
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am572x" TARGET="SOC_AM572x"
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am335x" TARGET="SOC_AM335x"
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am437x" TARGET="SOC_AM437x"
+}
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +22 -0
new file mode 100644
index 0000000..8e2ffd4
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d8516511304f11a28586d"
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"
+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"
+
+# Below commit ID corresponds to "DEV.ICSS_EMAC_LLD.01.00.00.07C"
+ICSS_EMAC_LLD_SRCREV = "08cb0540eeab7721fe82b603cb6285393f314117"
+
+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}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +26 -0
new file mode 100644
index 0000000..272529b
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 18 lines · Hongmei Gou
---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47 ++++++++++++++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +2 -0
new file mode 100644
index 0000000..f62bf33
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 12

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +10 -0
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"

What about am57xx-hs-evm? Or dra7xx-evm?

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 20

Quoted 8 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +8 -0
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"

Wouldn't this remove the am571x binaries before building am572x ones?

Quoted 33 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +27 -0
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am572x" TARGET="SOC_AM572x"
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am335x" TARGET="SOC_AM335x"
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="am437x" TARGET="SOC_AM437x"
+}
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +0 -0
new file mode 100644
index 0000000..8e2ffd4

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 4

Quoted 4 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +4 -0
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d8516511304f11a28586d"
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"

AM5 HS and K2G HS platforms will be missed.

Quoted 58 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +18 -0
+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"
+
+# Below commit ID corresponds to "DEV.ICSS_EMAC_LLD.01.00.00.07C"
+ICSS_EMAC_LLD_SRCREV = "08cb0540eeab7721fe82b603cb6285393f314117"
+
+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}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +26 -0
new file mode 100644
index 0000000..272529b
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}
Signature · 7 lines
1.9.1

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

Please see below inline.
Besides, icss-emac-lld-test has dependencies on starterware for AM3/AM4, I will upstream the recipes for starterware soon.

Thanks,
Hongmei

Quoted 33 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 24, 2017 5:48 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

Quoted 3 lines · Hongmei Gou
---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47

++++++++++++++++++++++

recipes-

Quoted 8 lines
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 11 lines

new file mode 100644
index 0000000..f62bf33

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 12

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"

What about am57xx-hs-evm? Or dra7xx-evm?

ICSS-EMAC LLD will not be supported for am57xx-hs-evm and dra7xx-evm.

Quoted 4 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 14

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +2 -0
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"

Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 20

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"

Wouldn't this remove the am571x binaries before building am572x ones?

The make clean operation in the current makefile is not removing the binaries, but only the library files.

Quoted 43 lines
Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +10 -0
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am571x" TARGET="SOC_AM571x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 36

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am572x" TARGET="SOC_AM572x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am437x" TARGET="SOC_AM437x"

recipes-bsp/icss-

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+}
recipes-bsp/icss- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld.inc +0 -0

emac-lld/icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 2

Quoted 7 lines

new file mode 100644
index 0000000..8e2ffd4

recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d851651130 4f11a28586d"

Quoted 4 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 4

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"

AM5 HS and K2G HS platforms will be missed.

Yes, this is intended as ICSS-EMAC LLD will not be supported for AM5HS and K2G HS.

Quoted 65 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +9 -0
+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"
+
+# Below commit ID corresponds to "DEV.ICSS_EMAC_LLD.01.00.00.07C"
+ICSS_EMAC_LLD_SRCREV =

"08cb0540eeab7721fe82b603cb6285393f314117"

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+
+BRANCH = "${ICSS_EMAC_LLD_GIT_BRANCH}"
+SRC_URI =

"${ICSS_EMAC_LLD_GIT_URI};destsuffix=${ICSS_EMAC_LLD_GIT_DESTSUFFI X};protocol=${ICSS_EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"

recipes-

Quoted 7 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +6 -0
+
+SRCREV = "${ICSS_EMAC_LLD_SRCREV}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines

new file mode 100644
index 0000000..272529b

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +5 -0
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb line 15

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir}

INSTALL_LIB_BASE_DIR=${D}${libdir}

Quoted 9 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +1 -1
+}
--

1.9.1

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

#3 lore raw
Quoted 1 line · Hongmei

Please see below inline.

Ok, makes sense.

Quoted 2 lines

Besides, icss-emac-lld-test has dependencies on starterware for AM3/AM4, I will upstream the recipes for starterware soon.

Why is there a different starterware vs. starterware-rtos? Isn't it RTOS-specific anyway and has nothing to do with Linux?

Quoted 174 lines
Quoted 33 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 24, 2017 5:48 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

Quoted 3 lines · Hongmei Gou
---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47

++++++++++++++++++++++

recipes-

Quoted 8 lines
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 11 lines

new file mode 100644
index 0000000..f62bf33

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 12

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"

What about am57xx-hs-evm? Or dra7xx-evm?

ICSS-EMAC LLD will not be supported for am57xx-hs-evm and dra7xx-evm.

Quoted 4 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 14

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +2 -0
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"

Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 20

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"

Wouldn't this remove the am571x binaries before building am572x ones?

The make clean operation in the current makefile is not removing the binaries, but only the library files.

Quoted 43 lines
Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +10 -0
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am571x" TARGET="SOC_AM571x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 36

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am572x" TARGET="SOC_AM572x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am437x" TARGET="SOC_AM437x"

recipes-bsp/icss-

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+}
recipes-bsp/icss- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld.inc +0 -0

emac-lld/icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 2

Quoted 7 lines

new file mode 100644
index 0000000..8e2ffd4

recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d851651130 4f11a28586d"

Quoted 4 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 4

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"

AM5 HS and K2G HS platforms will be missed.

Yes, this is intended as ICSS-EMAC LLD will not be supported for AM5HS and K2G HS.

Quoted 65 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +9 -0
+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"
+
+# Below commit ID corresponds to "DEV.ICSS_EMAC_LLD.01.00.00.07C"
+ICSS_EMAC_LLD_SRCREV =

"08cb0540eeab7721fe82b603cb6285393f314117"

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+
+BRANCH = "${ICSS_EMAC_LLD_GIT_BRANCH}"
+SRC_URI =

"${ICSS_EMAC_LLD_GIT_URI};destsuffix=${ICSS_EMAC_LLD_GIT_DESTSUFFI X};protocol=${ICSS_EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"

recipes-

Quoted 7 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +6 -0
+
+SRCREV = "${ICSS_EMAC_LLD_SRCREV}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines

new file mode 100644
index 0000000..272529b

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +5 -0
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb line 15

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir}

INSTALL_LIB_BASE_DIR=${D}${libdir}

Quoted 9 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +1 -1
+}
--

1.9.1

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

#4 lore raw
Quoted 11 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, August 29, 2017 5:21 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

Quoted 1 line · Hongmei

Please see below inline.

Quoted 8 lines

Ok, makes sense.

Quoted 2 lines

Besides, icss-emac-lld-test has dependencies on starterware for AM3/AM4, I will upstream the recipes for starterware soon.

Why is there a different starterware vs. starterware-rtos? Isn't it RTOS- specific anyway and has nothing to do with Linux?

This is similar to common-csl-ip vs. common-csl-ip-rtos.
starterware and starterware-rtos use the same source git repo. starterware used for Linux will only install the header files without compiling the libraries.

Quoted 185 lines
Quoted 7 lines
Quoted 7 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 24, 2017 5:48 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C

with

Quoted 11 lines
Quoted 11 lines

recipes for linux user space

Quoted 3 lines · Hongmei Gou
---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47

++++++++++++++++++++++

Quoted 4 lines
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld-

test_git.bb

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb
(quoted diff) +0 -0

b/recipes-

Quoted 36 lines
Quoted 12 lines

bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 11 lines

new file mode 100644
index 0000000..f62bf33

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 12

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"

What about am57xx-hs-evm? Or dra7xx-evm?

ICSS-EMAC LLD will not be supported for am57xx-hs-evm and dra7xx-evm.

Quoted 4 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 14

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +2 -0
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"

Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 20

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"

Wouldn't this remove the am571x binaries before building am572x ones?

Quoted 1 line

The make clean operation in the current makefile is not removing the

binaries, but only the library files.

Quoted 26 lines
Quoted 26 lines
Quoted 7 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +10 -0
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am571x" TARGET="SOC_AM571x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 36

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am572x" TARGET="SOC_AM572x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am335x" TARGET="SOC_AM335x"

Quoted 8 lines
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am437x" TARGET="SOC_AM437x"

recipes-

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+}
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld.inc +0 -0

bsp/icss-

Quoted 9 lines
Quoted 9 lines

emac-lld/icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 2

Quoted 7 lines

new file mode 100644
index 0000000..8e2ffd4

recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d851651130

Quoted 7 lines
Quoted 5 lines

4f11a28586d"

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 4

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"

AM5 HS and K2G HS platforms will be missed.

Yes, this is intended as ICSS-EMAC LLD will not be supported for AM5HS

and K2G HS.

Quoted 5 lines
Quoted 5 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+ICSS_EMAC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/icss-

emac.git"

Quoted 5 lines
Quoted 5 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +5 -0
+ICSS_EMAC_LLD_GIT_PROTOCOL = "git"
+ICSS_EMAC_LLD_GIT_BRANCH = "master"
+ICSS_EMAC_LLD_GIT_DESTSUFFIX = "git/ti/drv/icss_emac"
+
+# Below commit ID corresponds to

"DEV.ICSS_EMAC_LLD.01.00.00.07C"

Quoted 6 lines
Quoted 6 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 13

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +1 -0
+ICSS_EMAC_LLD_SRCREV =

"08cb0540eeab7721fe82b603cb6285393f314117"

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+
+BRANCH = "${ICSS_EMAC_LLD_GIT_BRANCH}"
+SRC_URI =

"${ICSS_EMAC_LLD_GIT_URI};destsuffix=${ICSS_EMAC_LLD_GIT_DESTSUFFI

Quoted 50 lines
Quoted 50 lines

X};protocol=${ICSS_EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"

recipes-

Quoted 7 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +6 -0
+
+SRCREV = "${ICSS_EMAC_LLD_SRCREV}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines

new file mode 100644
index 0000000..272529b

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +5 -0
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb line 15

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir}

INSTALL_LIB_BASE_DIR=${D}${libdir}

Quoted 9 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +1 -1
+}
--

1.9.1

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

#5 lore raw

Hi Denys,

The patch for starterware has been submitted. Please review.

Thanks,
Hongmei

Quoted 233 lines

-----Original Message-----
From: [email protected] [mailto:meta-ti- [email protected]] On Behalf Of Gou, Hongmei
Sent: Wednesday, August 30, 2017 10:18 AM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: [EXTERNAL] Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

Quoted 11 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, August 29, 2017 5:21 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C with recipes for linux user space

Quoted 1 line · Hongmei

Please see below inline.

Quoted 8 lines

Ok, makes sense.

Quoted 2 lines

Besides, icss-emac-lld-test has dependencies on starterware for AM3/AM4, I will upstream the recipes for starterware soon.

Why is there a different starterware vs. starterware-rtos? Isn't it RTOS- specific anyway and has nothing to do with Linux?

This is similar to common-csl-ip vs. common-csl-ip-rtos.
starterware and starterware-rtos use the same source git repo. starterware used for Linux will only install the header files without compiling the libraries.

Quoted 20 lines
Quoted 8 lines
Quoted 8 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, August 24, 2017 5:48 PM
To: Gou, Hongmei
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] icss-emac-lld*: upstream version 1.0.0.7C

with

Quoted 11 lines
Quoted 11 lines

recipes for linux user space

Quoted 3 lines · Hongmei Gou
---
 .../icss-emac-lld/icss-emac-lld-test_git.bb        | 47

++++++++++++++++++++++

Quoted 4 lines
 recipes-bsp/icss-emac-lld/icss-emac-lld.inc        | 22 ++++++++++
 recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb     | 26 ++++++++++++
 3 files changed, 95 insertions(+)  create mode 100644

recipes-bsp/icss-emac-lld/icss-emac-lld-

Quoted 29 lines

test_git.bb

Quoted 5 lines
Quoted 5 lines

Review

Quoted 5 lines
 create mode 100644 recipes-bsp/icss-emac-lld/icss-emac-lld.inc
 create mode 100644

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb

(quoted diff) +0 -0

b/recipes-

Quoted 22 lines
Quoted 12 lines

bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 11 lines

new file mode 100644
index 0000000..f62bf33

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
@@ -0,0 +1,47 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver tests"
+
+DEPENDS="common-csl-ip pruss-lld icss-emac-lld osal"
+
+DEPENDS_append_ti33x = " starterware"
+DEPENDS_append_ti43x = " starterware"
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 12

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+include icss-emac-lld.inc
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"

What about am57xx-hs-evm? Or dra7xx-evm?

ICSS-EMAC LLD will not be supported for am57xx-hs-evm and dra7xx-

evm.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 14

Quoted 4 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +2 -0
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} ICSS_EMAC_SRC_DIR=${S}"

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 20

Quoted 6 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +6 -0
+
+do_compile_am57xx-evm () {
+#   Build the tests
+    oe_runmake tests DEVICE="am571x" TARGET="SOC_AM571x"
+    oe_runmake clean
+    oe_runmake tests DEVICE="am572x" TARGET="SOC_AM572x"

Wouldn't this remove the am571x binaries before building am572x

ones?

Quoted 35 lines
Quoted 2 lines

The make clean operation in the current makefile is not removing the

binaries, but only the library files.

Quoted 32 lines
Quoted 32 lines
Quoted 7 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_compile_ti33x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +10 -0
+}
+
+do_compile_ti43x () {
+#   Build the tests
+    oe_runmake tests DEVICE="am437x" TARGET="SOC_AM437x"
+}
+
+do_install_am57xx-evm () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am571x" TARGET="SOC_AM571x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb line 36

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am572x" TARGET="SOC_AM572x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti33x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am335x" TARGET="SOC_AM335x"

recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +5 -0
+}
+
+do_install_ti43x () {
+#   Install the binary
+    oe_runmake installbin INSTALL_BIN_BASE_DIR=${D}${bindir}

DEVICE="am437x" TARGET="SOC_AM437x"

Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

recipes-

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld-test_git.bb new file +1 -0
+}
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld.inc +0 -0

bsp/icss-

Quoted 9 lines
Quoted 9 lines

emac-lld/icss-emac-lld.inc

Quoted 7 lines

new file mode 100644
index 0000000..8e2ffd4

recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
@@ -0,0 +1,22 @@
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM =

"file://icss_emacDrv.h;beginline=1;endline=40;md5=88d270788c1d85165113

Quoted 16 lines

0

Quoted 8 lines
Quoted 5 lines

4f11a28586d"

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 4

Quoted 2 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +2 -0
+
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx-evm|k2g-evm"

AM5 HS and K2G HS platforms will be missed.

Yes, this is intended as ICSS-EMAC LLD will not be supported for AM5HS

and K2G HS.

Quoted 5 lines
Quoted 5 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+ICSS_EMAC_LLD_GIT_URI = "git://git.ti.com/keystone-rtos/icss-

emac.git"

Quoted 13 lines
Quoted 5 lines
Quoted 5 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc

Quoted 5 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +5 -0
+ICSS_EMAC_LLD_GIT_PROTOCOL = "git"
+ICSS_EMAC_LLD_GIT_BRANCH = "master"
+ICSS_EMAC_LLD_GIT_DESTSUFFIX = "git/ti/drv/icss_emac"
+
+# Below commit ID corresponds to

"DEV.ICSS_EMAC_LLD.01.00.00.07C"

Quoted 6 lines
Quoted 6 lines

recipes-bsp/icss-emac-lld/icss-emac-lld.inc line 13

Quoted 1 line
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +1 -0
+ICSS_EMAC_LLD_SRCREV =

"08cb0540eeab7721fe82b603cb6285393f314117"

Quoted 3 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +3 -0
+
+BRANCH = "${ICSS_EMAC_LLD_GIT_BRANCH}"
+SRC_URI =

"${ICSS_EMAC_LLD_GIT_URI};destsuffix=${ICSS_EMAC_LLD_GIT_DESTSUFFI

Quoted 46 lines
Quoted 46 lines
Quoted 46 lines

X};protocol=${ICSS_EMAC_LLD_GIT_PROTOCOL};branch=${BRANCH}"

recipes-

Quoted 8 lines
recipes-bsp/icss-emac-lld/icss-emac-lld.inc new file +6 -0
+
+SRCREV = "${ICSS_EMAC_LLD_SRCREV}"
+PV = "01.00.00.07C"
+INC_PR = "r0"
+
+S = "${WORKDIR}/${ICSS_EMAC_LLD_GIT_DESTSUFFIX}"
recipes- renamed from recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb +0 -0

bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines

new file mode 100644
index 0000000..272529b

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +5 -0
@@ -0,0 +1,26 @@
+DESCRIPTION = "TI ICSS-EMAC low level driver library"
+
+DEPENDS="common-csl-ip pruss-lld osal"
+
+include icss-emac-lld.inc

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb line 15

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+PR = "${INC_PR}.0"
+
+COMPATIBLE_MACHINE = "am57xx-evm|ti33x|ti43x"
+
+TARGET_NAME_am57xx-evm = "SOC_AM572x"
+TARGET_NAME_ti33x = "SOC_AM335x"
+TARGET_NAME_ti43x = "SOC_AM437x"
+
+EXTRA_OEMAKE += "-f makefile_armv7

PDK_INSTALL_PATH=${STAGING_INCDIR} TARGET=${TARGET_NAME}"

recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb

Quoted 10 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +10 -0
+
+do_compile () {
+#   Build the lib
+    oe_runmake clean
+    oe_runmake lib
+}
+
+do_install () {
+#   Install the lib
+    oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir}

INSTALL_LIB_BASE_DIR=${D}${libdir}

Quoted 4 lines
recipes-bsp/icss-emac-lld/icss-emac-lld_git.bb new file +1 -1
+}
--

1.9.1

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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

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