Skip to contentSkip to conversation

ti-hyplnk: Add recipe for ti hyperlink low level driver

PATCH In review Sam Nelson 3 participants 6 messages Mar 2, 2014 – May 16, 2014

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH 1/1 ti-hyplnk: Add recipe for ti hyperlink low level driver

- User space low level driver and test code for hyperlink peripheral

---
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb     |   38 ++++++++++++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb     |   21 +++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk.inc            |   10 ++++++
 3 files changed, 69 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +38 -0
new file mode 100755
index 0000000..9938b18
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+DEVICELIST = " k2h \
+               k2k \
+"
+
+CHOICELIST = " yes \
+               no  \
+"
+
+do_compile () {
+	make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}
+	done
+}
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +21 -0
new file mode 100755
index 0000000..03399c6
@@ -0,0 +1,21 @@
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory	
+    make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
+}
+
+do_install () {
+    make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +10 -0
new file mode 100644
index 0000000..26f22db
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}"
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
Signature · 1 line
1.7.9.5
#1 lore raw

This one as well - is this a v2 of previously submitted patch, or just re-send?

Quoted 108 lines · Sam Nelson

- User space low level driver and test code for hyperlink peripheral

---
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb     |   38 ++++++++++++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb     |   21 +++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk.inc            |   10 ++++++
 3 files changed, 69 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb
 create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +38 -0
new file mode 100755
index 0000000..9938b18
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+DEVICELIST = " k2h \
+               k2k \
+"
+
+CHOICELIST = " yes \
+               no  \
+"
+
+do_compile () {
+	make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}
+	done
+}
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +21 -0
new file mode 100755
index 0000000..03399c6
@@ -0,0 +1,21 @@
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory	
+    make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
+}
+
+do_install () {
+    make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+}
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +10 -0
new file mode 100644
index 0000000..26f22db
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM = "file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac872dffdec915b819654ee23ea"
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}"
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
Signature · 6 lines
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw

Previous one can be ignored.
Thanks,
Sam

Quoted 140 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, March 04, 2014 10:10 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

This one as well - is this a v2 of previously submitted patch, or just re-send?

Quoted 6 lines · Sam Nelson

- User space low level driver and test code for hyperlink peripheral

---
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb     |   38

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

Quoted 4 lines
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb     |   21 +++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk.inc            |   10 ++++++
 3 files changed, 69 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

bin_git.bb

Quoted 1 line
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

lib_git.bb

Quoted 1 line
 create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-

hyplnk.inc

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 18 lines

new file mode 100755
index 0000000..9938b18

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +13 -0
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 23

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +10 -0
+DEVICELIST = " k2h \
+               k2k \
+"
+
+CHOICELIST = " yes \
+               no  \
+"
+
+do_compile () {
+	make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +5 -0
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +8 -0
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}

Review

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +2 -0
+	done
+}
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb

Quoted 11 lines

new file mode 100755
index 0000000..03399c6

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +6 -0
@@ -0,0 +1,21 @@
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb line 16

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +10 -0
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory
+    make -f makefile_armv7 clean lib

PDK_INSTALL_PATH=${STAGING_INCDIR}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb line 20

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +4 -0
+}
+
+do_install () {
+    make -f makefile_armv7 install

PDK_INSTALL_PATH=${STAGING_INCDIR}
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}${libdir}

meta-

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +1 -0
+}
meta- renamed from meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc +0 -0

arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc line 3

Quoted 8 lines

new file mode 100644
index 0000000..26f22db

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac872df fdec915b819654ee23ea"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-

lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}"

Quoted 12 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +4 -1
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#3 lore raw

Any update on this?

Quoted 158 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Tuesday, March 04, 2014 10:41 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

Previous one can be ignored.
Thanks,
Sam

Quoted 114 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, March 04, 2014 10:10 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

This one as well - is this a v2 of previously submitted patch, or just re-send?

Quoted 6 lines · Sam Nelson

- User space low level driver and test code for hyperlink peripheral

---
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb     |   38

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

Quoted 4 lines
 .../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb     |   21 +++++++++++
 .../recipes-bsp/ti-hyplnk/ti-hyplnk.inc            |   10 ++++++
 3 files changed, 69 insertions(+)
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

bin_git.bb

Quoted 1 line
 create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

lib_git.bb

Quoted 1 line
 create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti-

hyplnk.inc

Review

Quoted 2 lines
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 18 lines

new file mode 100755
index 0000000..9938b18

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +13 -0
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 23

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +10 -0
+DEVICELIST = " k2h \
+               k2k \
+"
+
+CHOICELIST = " yes \
+               no  \
+"
+
+do_compile () {
+	make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +5 -0
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +8 -0
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}

Review

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +2 -0
+	done
+}
(quoted diff) +0 -0

b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb

Quoted 11 lines

new file mode 100755
index 0000000..03399c6

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +6 -0
@@ -0,0 +1,21 @@
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb line 16

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +10 -0
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory
+    make -f makefile_armv7 clean lib

PDK_INSTALL_PATH=${STAGING_INCDIR}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb line 20

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +4 -0
+}
+
+do_install () {
+    make -f makefile_armv7 install

PDK_INSTALL_PATH=${STAGING_INCDIR}
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}${libdir}

meta-

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +1 -0
+}
meta- renamed from meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc +0 -0

arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc

Quoted 9 lines

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc line 3

Quoted 8 lines

new file mode 100644
index 0000000..26f22db

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac872df

Quoted 13 lines

fdec915b819654ee23ea"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-

lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRANCH}"

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +4 -1
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
--

1.7.9.5

Quoted 4 lines
Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#4 lore raw
In reply to Sam Nelson
Quoted 34 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Sunday, March 02, 2014 5:23 PM
To: [email protected]
Subject: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

- User space low level driver and test code for hyperlink peripheral

---
.../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb | 38
++++++++++++++++++++
.../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb | 21
+++++++++++
.../recipes-bsp/ti-hyplnk/ti-hyplnk.inc | 10 ++++++

3 files changed, 69 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk-bin_git.bb
create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk-lib_git.bb
create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk.inc

(quoted diff) +0 -0

bin_git.bb b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- bin_git.bb
new file mode 100755
index 0000000..9938b18

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 2

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +2 -0
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"

Include this in the .inc file since it is common between the two. Although I might question whether you really need two separate recipes and a .inc file or if you could use a single recipe and make different packages, i.e. PN and PN-lib

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 4

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +2 -0
+
+COMPATIBLE_MACHINE = "keystone"

Common between both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 7

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +3 -0
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"

Common between both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 12

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +5 -0
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"

Common beween both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 16

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +4 -0
+
+DEVICELIST = " k2h \
+               k2k \
+"

If you start using machines per device type do you still want to install K2H and K2K binaries and libraries into both or rather make this recipe machine specific ARCH and build and install only the libraries for that device?

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb line 20

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +4 -0
+
+CHOICELIST = " yes \
+               no  \
+"

Can you elaborate on these options here? Do you really need dynamic library and static library versions? Would it be better to package them separately or one as a -dbg package for example?

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +3 -0
+
+do_compile () {
+	make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}

This use of ${PWD} can cause you problems because it assumes you are in a certain directory. That can be painful when someone appends or prepends you. I would instead use ${S} or some such equivalent.

Quoted 17 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +5 -0
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +8 -0
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +1 -0
+	done

To help with the review can you detail what the resulting directory structure and files looks like after this install step?

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb

Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb new file +1 -0
+}
(quoted diff) +0 -0

lib_git.bb b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- lib_git.bb
new file mode 100755
index 0000000..03399c6

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +0 -0
@@ -0,0 +1,21 @@

I think you can combine this with the previous recipe and just make a -lib package.

Quoted 54 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +16 -0
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory
+    make -f makefile_armv7 clean lib

PDK_INSTALL_PATH=${STAGING_INCDIR}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +4 -0
+}
+
+do_install () {
+    make -f makefile_armv7 install

PDK_INSTALL_PATH=${STAGING_INCDIR}
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}${libdir}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb new file +1 -0
+}
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
new file mode 100644
index 0000000..26f22db
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac87 2dffdec915b819654ee23ea"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-

lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BRA NCH}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +4 -1
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
--

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

#5 lore raw

BTW, does this belong in meta-ti instead of meta-arago?

Quoted 196 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Maupin, Chase
Sent: Friday, May 16, 2014 1:32 PM
To: Nelson, Sam; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

Quoted 33 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Nelson, Sam
Sent: Sunday, March 02, 2014 5:23 PM
To: [email protected]
Subject: [meta-arago] [PATCH] ti-hyplnk: Add recipe for ti hyperlink low level driver

- User space low level driver and test code for hyperlink peripheral

---
.../recipes-bsp/ti-hyplnk/ti-hyplnk-bin_git.bb | 38
++++++++++++++++++++
.../recipes-bsp/ti-hyplnk/ti-hyplnk-lib_git.bb | 21
+++++++++++
.../recipes-bsp/ti-hyplnk/ti-hyplnk.inc | 10 ++++++

3 files changed, 69 insertions(+)

create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk-bin_git.bb
create mode 100755 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk-lib_git.bb
create mode 100644 meta-arago-extras/recipes-bsp/ti-hyplnk/ti- hyplnk.inc

(quoted diff) +0 -0

bin_git.bb b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- bin_git.bb
new file mode 100755
index 0000000..9938b18

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +0 -0

bin_git.bb

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 2

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +2 -0
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI HYPLNK low level driver test binaries"
+LICENSE = "TI BSD"

Include this in the .inc file since it is common between the two. Although I might question whether you really need two separate recipes and a .inc file or if you could use a single recipe and make different packages, i.e. PN and PN-lib

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 4

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +2 -0
+
+COMPATIBLE_MACHINE = "keystone"

Common between both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 7

Quoted 3 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +3 -0
+
+PR = "r0"
+DEPENDS="ti-csl ti-hyplnk-lib"

Common between both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 12

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +5 -0
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"

Common beween both recipes

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 16

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +4 -0
+
+DEVICELIST = " k2h \
+               k2k \
+"

If you start using machines per device type do you still want to install K2H and K2K binaries and libraries into both or rather make this recipe machine specific ARCH and build and install only the libraries for that device?

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- line 20

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +4 -0
+
+CHOICELIST = " yes \
+               no  \
+"

Can you elaborate on these options here? Do you really need dynamic library and static library versions? Would it be better to package them separately or one as a -dbg package for example?

Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +3 -0
+
+do_compile () {
+	make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} HYPLNK_SRC_DIR=${PWD}

This use of ${PWD} can cause you problems because it assumes you are in a certain directory. That can be painful when someone appends or prepends you. I would instead use ${S} or some such equivalent.

Quoted 17 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +5 -0
+	for device in ${DEVICELIST}
+	do
+		for choice in ${CHOICELIST}
+		do
+			make -f makefile_armv7 tests examples

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} USEDYNAMIC_LIB="${choice}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +8 -0
+		done
+	done
+}
+
+do_install () {
+    for device in ${DEVICELIST}
+	do
+	    make -f makefile_armv7 installbin

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="${device}" HYPLNK_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}/${bindir}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +1 -0
+	done

To help with the review can you detail what the resulting directory structure and files looks like after this install step?

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +1 -0
+}
(quoted diff) +0 -0

lib_git.bb b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- lib_git.bb
new file mode 100755
index 0000000..03399c6

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +0 -0

lib_git.bb

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk-

Quoted 1 line
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +0 -0
@@ -0,0 +1,21 @@

I think you can combine this with the previous recipe and just make a -lib package.

Review

Quoted 26 lines
meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +16 -0
+DESCRIPTION = "TI HYPLNK Low Level Driver"
+LICENSE = "TI BSD"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"
+DEPENDS="ti-csl"
+
+include ti-hyplnk.inc
+
+BASEDIR = "${WORKDIR}/git"
+S = "${BASEDIR}/ti/drv/${LLDNAME}"
+
+do_compile () {
+#   Now build the lld in the updated directory
+    make -f makefile_armv7 clean lib

PDK_INSTALL_PATH=${STAGING_INCDIR}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +4 -0
+}
+
+do_install () {
+    make -f makefile_armv7 install

PDK_INSTALL_PATH=${STAGING_INCDIR}
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}${libdir}

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk- new file +1 -0
+}
(quoted diff) +0 -0

hyplnk.inc

Quoted 10 lines

b/meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file mode 100644
index 0000000..26f22db

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
@@ -0,0 +1,10 @@
+LLDNAME="hyplnk"
+
+LIC_FILES_CHKSUM =

"file://${WORKDIR}/git/ti/drv/${LLDNAME}/COPYING.txt;md5=5bdceac8

7

Quoted 5 lines

2dffdec915b819654ee23ea"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +3 -0
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/hyplnk-

lld.git;destsuffix=git/ti/drv/${LLDNAME};protocol=git;branch=${BR

A

Quoted 9 lines

NCH}"

meta-arago-extras/recipes-bsp/ti-hyplnk/ti-hyplnk.inc new file +4 -1
+# Following commit corresponds to tag DEV.HYPLNK_LLD.02.00.00.09
+SRCREV = "f88e31b60aa2b4d591d5a845361c7e56792eeda1"
+
+PV = "2.0.0"
\ No newline at end of file
--

1.7.9.5

Quoted 4 lines

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago