Skip to contentSkip to conversation

ti-rm: provides ti resouce manager recipe for KeyStone devices

PATCH Superseded Aravind Batni 3 participants 9 messages Feb 12, 2014 – Feb 19, 2014

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-rm: provides ti resouce manager recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
 meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc    |    7 ++++
 meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb |   45 ++++++++++++++++++++++
 2 files changed, 52 insertions(+)
 create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc
 create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +7 -0
new file mode 100644
index 0000000..96da467
@@ -0,0 +1,7 @@
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"
+
+BRANCH="master"
+SRC_URI = "git://git.ti.com/keystone-rtos/rm-lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08
+SRCREV = "3a73cfe015214ff0401639f85fa5e52ea610e59d"
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 35 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+)

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

meta- renamed from meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc +0 -0

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
@@ -0,0 +1,7 @@
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc line 7

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08
+SRCREV = "3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the .inc is not required. If you do plan for multiple versions then the SRCREV at least is probably best left in the version specific recipe and not in the .inc. Looking at this I would think it likely that you could/should just roll this .inc into the regular .bb recipe.

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this 02.00.00.08 version of the recipe instead of just _git?

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 11 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change this recipe to a specific version.

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+                    ${bindir}/ti/drv/rm/test/dts_files/*.dtb"
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

I'm not sure I understand what you are trying to do here. It seems like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}? Looking below it seems like you then want to pass ${S}/ti/drm/rm, which points to ${S} to the make commands. So can't you just point things to ${S}?

Are you trying to work around the Makefile maybe looking for other files in the ti/drv directory? Since you created that directory that doesn't seem likely though. This seems like an issue best handled by updating the Makefiles to allow you to set paths and have a set of defaults. i.e. PATHX ?= "default path". That way you can update PATHX as a parameter you pass. But this seems strange to make new direcory structures that then link back to the base directory you were already in.

Quoted 15 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean

Quoted 8 lines

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the different DEVICE settings?
2. Since you don't seem to be breaking these libraries out per DEVICE and I think you are packaging both static and dynamic libraries would an "all" make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs. static libraries. Why are both packaged? Or maybe I don't understand what you are doing here?
3. Should the libraries be packaged per DEVICE? The root of this question is whether this recipe should be machine specific and you build the package for k2k and k2h devices. It seems like you are making one package that has support for multiple devices.

Quoted 22 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin installbin_test

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin installbin_test
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--
1.7.9.5

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

#2 lore raw
Quoted 76 lines · Chase
Quoted 35 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+)

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

meta- renamed from meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc +0 -0

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
@@ -0,0 +1,7 @@
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc line 7

Quoted 2 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08
+SRCREV = "3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the .inc is not required. If you do plan for multiple versions then the SRCREV at least is probably best left in the version specific recipe and not in the .inc. Looking at this I would think it likely that you could/should just roll this .inc into the regular .bb recipe.

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this 02.00.00.08 version of the recipe instead of just _git?

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 11 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change this recipe to a specific version.

Quoted 12 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +12 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +8 -0
+                    ${bindir}/ti/drv/rm/test/dts_files/*.dtb"
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores, while not recommended, are still acceptable:

LLDBLDDIR - best from Bitbake perspective, not very human-readable LLD_BLD_DIR - not perfect from Bitbake perspective, but parseable and readable LLD-BLD-DIR - may cause all kinds of issues

Quoted 78 lines

I'm not sure I understand what you are trying to do here. It seems like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}? Looking below it seems like you then want to pass ${S}/ti/drm/rm, which points to ${S} to the make commands. So can't you just point things to ${S}?

Are you trying to work around the Makefile maybe looking for other files in the ti/drv directory? Since you created that directory that doesn't seem likely though. This seems like an issue best handled by updating the Makefiles to allow you to set paths and have a set of defaults. i.e. PATHX ?= "default path". That way you can update PATHX as a parameter you pass. But this seems strange to make new direcory structures that then link back to the base directory you were already in.

Quoted 15 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean

Quoted 8 lines

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k RM_SRC_DIR=${LLD- BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the different DEVICE settings?
2. Since you don't seem to be breaking these libraries out per DEVICE and I think you are packaging both static and dynamic libraries would an "all" make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs. static libraries. Why are both packaged? Or maybe I don't understand what you are doing here?
3. Should the libraries be packaged per DEVICE? The root of this question is whether this recipe should be machine specific and you build the package for k2k and k2h devices. It seems like you are making one package that has support for multiple devices.

Quoted 18 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin installbin_test

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin installbin_test
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--
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

#3 lore raw

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 8 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Quoted 45 lines
Quoted 44 lines · Chase
Quoted 34 lines

-----Original Message-----
From: [email protected] [mailto:meta-arago- [email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+)

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

meta- renamed from meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc +0 -0

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
@@ -0,0 +1,7 @@
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08 SRCREV = +"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the .inc is not required. If you do plan for multiple versions then the SRCREV at least is probably best left in the version specific recipe and not in the .inc. Looking at this I would think it likely that you could/should just roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb recipe

Quoted 5 lines
Quoted 5 lines

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this 02.00.00.08 version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe since we don't plan to provide multiple recipes per RM release.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +0 -0
@@ -0,0 +1,45 @@
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 5 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change this recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 25 lines
Quoted 13 lines
Quoted 13 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +12 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +8 -0
+                    ${bindir}/ti/drv/rm/test/dts_files/*.dtb"
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores, while not recommended, are still acceptable:

Quoted 4 lines

LLDBLDDIR - best from Bitbake perspective, not very human-readable LLD_BLD_DIR - not perfect from Bitbake perspective, but parseable and readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any dashes

Quoted 6 lines
Quoted 6 lines

I'm not sure I understand what you are trying to do here. It seems like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}? Looking below it seems like you then want to pass ${S}/ti/drm/rm, which points to ${S} to the make commands. So can't you just point things to ${S}?

Quoted 8 lines
Quoted 5 lines

Are you trying to work around the Makefile maybe looking for other files in the ti/drv directory? Since you created that directory that doesn't seem likely though. This seems like an issue best handled by updating the Makefiles to allow you to set paths and have a set of defaults. i.e. PATHX ?= "default path". That way you can update PATHX as

a parameter you pass.

Quoted 2 lines

But this seems strange to make new direcory structures that then link back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from ${S} directly. If we had a way to create ${S} (git clone) under ti/drv/rm, then we don't need to create the symbolic links to build RM lld. This is done originally to support DSP builds that are delivered from PDK, which demand this depth in the directory.

Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 14 lines
Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 6 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the different DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the recipe to have for loops .

Quoted 12 lines
Quoted 2 lines

2. Since you don't seem to be breaking these libraries out per DEVICE and I think you are packaging both static and dynamic libraries would an

"all"

Quoted 3 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs. static libraries. Why are both packaged? Or maybe I don't understand

what

Quoted 5 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of this question is whether this recipe should be machine specific and you build the package for k2k and k2h devices. It seems like you are making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K devices, the options are for test applications. I now modified the recipe to build the library only once for both K2H and K2K and build all other variations on the test applications in the next updated patch submit.

Quoted 17 lines
Quoted 17 lines
Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin installbin_test

INSTALL_INC_BASE_DIR=${D}/${includedir}

Quoted 8 lines

INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin installbin_test
INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for every device.

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

1.7.9.5

_______________________________________________
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
Quoted 163 lines

-----Original Message-----
From: Aravind Batni
Sent: Tuesday, February 18, 2014 7:41 PM
To: Dmytriyenko, Denys; Maupin, Chase
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 5 lines

for KeyStone devices

Quoted 2 lines · Chase
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+)

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-

rm.inc

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

(quoted diff) +0 -0

b/meta-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +0 -0
@@ -0,0 +1,7 @@
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08

SRCREV =

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

+"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the

.inc is

Quoted 1 line
Quoted 1 line

not required. If you do plan for multiple versions then the

SRCREV at

Quoted 1 line
Quoted 1 line

least is probably best left in the version specific recipe and

not in the .inc.

Quoted 1 line
Quoted 1 line

Looking at this I would think it likely that you could/should

just

Quoted 2 lines
Quoted 2 lines

roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb recipe

Quoted 3 lines
Quoted 3 lines

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this

02.00.00.08

Quoted 2 lines
Quoted 2 lines

version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe since we don't plan to provide multiple recipes per RM release.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +0 -0
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change

this

Quoted 1 line
Quoted 1 line

recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +3 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+

${bindir}/ti/drv/rm/test/dts_files/*.dtb"

Quoted 9 lines
Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores,

while not

Quoted 3 lines

recommended, are still acceptable:

LLDBLDDIR - best from Bitbake perspective, not very human-

readable

Quoted 1 line

LLD_BLD_DIR - not perfect from Bitbake perspective, but

parseable and

Quoted 2 lines

readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any dashes

Quoted 2 lines
Quoted 2 lines

I'm not sure I understand what you are trying to do here. It

seems

Quoted 1 line
Quoted 1 line

like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}?

Looking

Quoted 1 line
Quoted 1 line

below it seems like you then want to pass ${S}/ti/drm/rm,

which points

Quoted 1 line
Quoted 1 line

to ${S} to the make commands. So can't you just point things

to ${S}?

Quoted 2 lines
Quoted 2 lines

Are you trying to work around the Makefile maybe looking for

other

Quoted 1 line
Quoted 1 line

files in the ti/drv directory? Since you created that

directory that

Quoted 1 line
Quoted 1 line

doesn't seem likely though. This seems like an issue best

handled by

Quoted 1 line
Quoted 1 line

updating the Makefiles to allow you to set paths and have a

set of

Quoted 1 line
Quoted 1 line

defaults. i.e. PATHX ?= "default path". That way you can

update PATHX as

Quoted 1 line

a parameter you pass.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

But this seems strange to make new direcory structures that

then link

Quoted 1 line
Quoted 1 line

back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from ${S} directly. If we had a way to create ${S} (git clone) under ti/drv/rm, then we don’t need to create the symbolic links to build RM lld. This is done originally to support DSP builds that are delivered from PDK, which demand this depth in the directory.

OK, help me understand here. You are cloning to ${WORKDIR}/git, but you need the clone to really be in ${WORKDIR}/git/ti/drv/rm directory because the makefiles/sources demand this directory structure?

Denys, are you aware of any option to control where the clone checks out to?

If the sources were stored in the repo under ti/drm/rm would this work?

Quoted 95 lines
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 13 lines
Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 5 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the

different

Quoted 1 line
Quoted 1 line

DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the recipe to have for loops .

Quoted 1 line
Quoted 1 line

2. Since you don't seem to be breaking these libraries out per

DEVICE

Quoted 1 line
Quoted 1 line

and I think you are packaging both static and dynamic

libraries would an

Quoted 3 lines

"all"

Quoted 2 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs.

static

Quoted 1 line
Quoted 1 line

libraries. Why are both packaged? Or maybe I don't

understand

Quoted 3 lines

what

Quoted 2 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of

this

Quoted 1 line
Quoted 1 line

question is whether this recipe should be machine specific and

you

Quoted 1 line
Quoted 1 line

build the package for k2k and k2h devices. It seems like you

are

Quoted 1 line
Quoted 1 line

making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K devices, the options are for test applications. I now modified the recipe
to build the library only once for both K2H and K2K and build all other variations on the test applications in the next updated patch submit.

Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin

installbin_test

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin

installbin_test

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for every device.

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

1.7.9.5

_______________________________________________
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

#5 lore raw
Quoted 179 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, February 19, 2014 9:18 AM
To: Aravind Batni; Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Quoted 162 lines

-----Original Message-----
From: Aravind Batni
Sent: Tuesday, February 18, 2014 7:41 PM
To: Dmytriyenko, Denys; Maupin, Chase
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 5 lines

for KeyStone devices

Quoted 2 lines · Chase
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+) create mode 100644

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

rm.inc

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

(quoted diff) +0 -0

b/meta-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +0 -0
@@ -0,0 +1,7 @@
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08

SRCREV =

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

+"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the

.inc is

Quoted 1 line
Quoted 1 line

not required. If you do plan for multiple versions then the

SRCREV at

Quoted 1 line
Quoted 1 line

least is probably best left in the version specific recipe and

not in the .inc.

Quoted 1 line
Quoted 1 line

Looking at this I would think it likely that you could/should

just

Quoted 2 lines
Quoted 2 lines

roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb recipe

Quoted 3 lines
Quoted 3 lines

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this

02.00.00.08

Quoted 2 lines
Quoted 2 lines

version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe since we don't plan to provide multiple recipes per RM release.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +0 -0
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change

this

Quoted 1 line
Quoted 1 line

recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +3 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+

${bindir}/ti/drv/rm/test/dts_files/*.dtb"

Quoted 9 lines
Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores,

while not

Quoted 3 lines

recommended, are still acceptable:

LLDBLDDIR - best from Bitbake perspective, not very human-

readable

Quoted 1 line

LLD_BLD_DIR - not perfect from Bitbake perspective, but

parseable and

Quoted 2 lines

readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any dashes

Quoted 2 lines
Quoted 2 lines

I'm not sure I understand what you are trying to do here. It

seems

Quoted 1 line
Quoted 1 line

like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}?

Looking

Quoted 1 line
Quoted 1 line

below it seems like you then want to pass ${S}/ti/drm/rm,

which points

Quoted 1 line
Quoted 1 line

to ${S} to the make commands. So can't you just point things

to ${S}?

Quoted 2 lines
Quoted 2 lines

Are you trying to work around the Makefile maybe looking for

other

Quoted 1 line
Quoted 1 line

files in the ti/drv directory? Since you created that

directory that

Quoted 1 line
Quoted 1 line

doesn't seem likely though. This seems like an issue best

handled by

Quoted 1 line
Quoted 1 line

updating the Makefiles to allow you to set paths and have a

set of

Quoted 1 line
Quoted 1 line

defaults. i.e. PATHX ?= "default path". That way you can

update PATHX as

Quoted 1 line

a parameter you pass.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

But this seems strange to make new direcory structures that

then link

Quoted 1 line
Quoted 1 line

back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from ${S} directly. If we had a way to create ${S} (git clone) under ti/drv/rm, then we don't need to create the symbolic links to build RM lld. This is done originally to support DSP builds that are delivered from PDK, which demand this depth in the directory.

Quoted 9 lines

OK, help me understand here. You are cloning to ${WORKDIR}/git, but you need the clone to really be in ${WORKDIR}/git/ti/drv/rm directory because the makefiles/sources demand this directory structure?

Denys, are you aware of any option to control where the clone checks out to?

If the sources were stored in the repo under ti/drm/rm would this work?

[Aravind Batni] Yes, if we had an option to clone the repo under ${WORKDIR}/git/ti/drv/rm everything would work and we don't need to do symbolic links for the builds.

Quoted 94 lines
Quoted 94 lines
Quoted 22 lines
Quoted 9 lines
Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 13 lines
Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 5 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the

different

Quoted 1 line
Quoted 1 line

DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the recipe to have for loops .

Quoted 1 line
Quoted 1 line

2. Since you don't seem to be breaking these libraries out per

DEVICE

Quoted 1 line
Quoted 1 line

and I think you are packaging both static and dynamic

libraries would an

Quoted 3 lines

"all"

Quoted 2 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs.

static

Quoted 1 line
Quoted 1 line

libraries. Why are both packaged? Or maybe I don't

understand

Quoted 3 lines

what

Quoted 2 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of

this

Quoted 1 line
Quoted 1 line

question is whether this recipe should be machine specific and

you

Quoted 1 line
Quoted 1 line

build the package for k2k and k2h devices. It seems like you

are

Quoted 1 line
Quoted 1 line

making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K devices, the options are for test applications. I now modified the recipe to build the library only once for both K2H and K2K and build all other variations on the test applications in the next updated patch submit.

Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin

installbin_test

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin

installbin_test

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for every device.

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

1.7.9.5

_______________________________________________
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

#6 lore raw
Quoted 217 lines

-----Original Message-----
From: Aravind Batni
Sent: Wednesday, February 19, 2014 9:07 AM
To: Maupin, Chase; Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Quoted 6 lines

-----Original Message-----
From: Maupin, Chase
Sent: Wednesday, February 19, 2014 9:18 AM
To: Aravind Batni; Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 8 lines

for KeyStone devices

Quoted 6 lines

-----Original Message-----
From: Aravind Batni
Sent: Tuesday, February 18, 2014 7:41 PM
To: Dmytriyenko, Denys; Maupin, Chase
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager

Quoted 19 lines
Quoted 19 lines

recipe for KeyStone devices

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 3 lines

for KeyStone devices

On Thu, Feb 13, 2014 at 02:14:56PM +0000, Maupin, Chase

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce

Quoted 8 lines
Quoted 8 lines

manager

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7

++++

Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+) create mode 100644

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

rm.inc

Quoted 1 line
Quoted 1 line
Quoted 1 line

create mode 100644 meta-arago-extras/recipes-bsp/ti-

rm/ti-

Quoted 19 lines
Quoted 19 lines
Quoted 3 lines
Quoted 3 lines

Review

Quoted 3 lines

rm_git.bb

(quoted diff) +0 -0

b/meta-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +0 -0
@@ -0,0 +1,7 @@
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08

SRCREV =

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

+"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe

the

Quoted 2 lines
Quoted 2 lines

.inc is

Quoted 1 line
Quoted 1 line

not required. If you do plan for multiple versions then

the

Quoted 2 lines
Quoted 2 lines

SRCREV at

Quoted 1 line
Quoted 1 line

least is probably best left in the version specific recipe

and

Quoted 2 lines
Quoted 2 lines

not in the .inc.

Quoted 1 line
Quoted 1 line

Looking at this I would think it likely that you

could/should

Quoted 5 lines
Quoted 5 lines

just

Quoted 2 lines
Quoted 2 lines

roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb

recipe

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +0 -0

rm_git.bb

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

Looking at the SRCREV below do you want to call this

02.00.00.08

Quoted 2 lines
Quoted 2 lines

version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe

since we

Quoted 15 lines
Quoted 15 lines

don't plan to provide multiple recipes per RM release.

Quoted 13 lines
Quoted 13 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 11 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to

change

Quoted 31 lines
Quoted 31 lines

this

Quoted 1 line
Quoted 1 line

recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +3 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+

${bindir}/ti/drv/rm/test/dts_files/*.dtb"

Quoted 9 lines
Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores,

while not

Quoted 2 lines

recommended, are still acceptable:

Quoted 7 lines
Quoted 7 lines
Quoted 1 line

LLDBLDDIR - best from Bitbake perspective, not very human-

readable

Quoted 1 line

LLD_BLD_DIR - not perfect from Bitbake perspective, but

parseable and

Quoted 2 lines

readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any

dashes

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I'm not sure I understand what you are trying to do here.

It

Quoted 2 lines
Quoted 2 lines

seems

Quoted 1 line
Quoted 1 line

like you want ${WORKDIR}/git/ti/drv/rm to be pointed to

${S}?

Quoted 4 lines
Quoted 4 lines

Looking

Quoted 1 line
Quoted 1 line

below it seems like you then want to pass ${S}/ti/drm/rm,

which points

Quoted 1 line
Quoted 1 line

to ${S} to the make commands. So can't you just point

things

Quoted 3 lines
Quoted 3 lines

to ${S}?

Quoted 2 lines
Quoted 2 lines

Are you trying to work around the Makefile maybe looking

for

Quoted 6 lines
Quoted 6 lines

other

Quoted 1 line
Quoted 1 line

files in the ti/drv directory? Since you created that

directory that

Quoted 1 line
Quoted 1 line

doesn't seem likely though. This seems like an issue best

handled by

Quoted 1 line
Quoted 1 line

updating the Makefiles to allow you to set paths and have a

Quoted 8 lines
Quoted 8 lines

set of

Quoted 1 line
Quoted 1 line

defaults. i.e. PATHX ?= "default path". That way you can

update PATHX as

Quoted 2 lines

a parameter you pass.

Quoted 1 line

But this seems strange to make new direcory structures that

then link

Quoted 1 line
Quoted 1 line

back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from

${S}

Quoted 1 line
Quoted 1 line

directly. If we had a way to create ${S} (git clone) under

ti/drv/rm,

Quoted 1 line
Quoted 1 line

then we don’t need to create the symbolic links to build RM

lld. This

Quoted 1 line
Quoted 1 line

is done originally to support DSP builds that are delivered

from PDK,

Quoted 3 lines
Quoted 1 line

which demand this depth in the directory.

OK, help me understand here. You are cloning to ${WORKDIR}/git,

but you

Quoted 1 line

need the clone to really be in ${WORKDIR}/git/ti/drv/rm

directory because

Quoted 3 lines

the makefiles/sources demand this directory structure?

Denys, are you aware of any option to control where the clone

checks out

Quoted 8 lines
Quoted 3 lines

to?

If the sources were stored in the repo under ti/drm/rm would

this work?

Quoted 1 line

[Aravind Batni] Yes, if we had an option to clone the repo under ${WORKDIR}/git/ti/drv/rm everything would work and we don't need to do symbolic links for the builds.

Aravind, my question is whether inside the git repository you can store the sources in a ti/drv/rm directory.

Quoted 106 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 9 lines
Quoted 9 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the

different

Quoted 1 line
Quoted 1 line

DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the

recipe to

Quoted 2 lines
Quoted 2 lines

have for loops .

Quoted 1 line
Quoted 1 line

2. Since you don't seem to be breaking these libraries out

per

Quoted 6 lines
Quoted 6 lines

DEVICE

Quoted 1 line
Quoted 1 line

and I think you are packaging both static and dynamic

libraries would an

Quoted 3 lines

"all"

Quoted 2 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split

dynamic vs.

Quoted 8 lines
Quoted 8 lines

static

Quoted 1 line
Quoted 1 line

libraries. Why are both packaged? Or maybe I don't

understand

Quoted 3 lines

what

Quoted 2 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of

this

Quoted 1 line
Quoted 1 line

question is whether this recipe should be machine specific

and

Quoted 2 lines
Quoted 2 lines

you

Quoted 1 line
Quoted 1 line

build the package for k2k and k2h devices. It seems like

you

Quoted 4 lines
Quoted 4 lines

are

Quoted 1 line
Quoted 1 line

making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K

devices,

Quoted 1 line
Quoted 1 line

the options are for test applications. I now modified the

recipe to

Quoted 1 line
Quoted 1 line

build the library only once for both K2H and K2K and build all

other

Quoted 1 line
Quoted 1 line

variations on the test applications in the next updated patch

submit.

Quoted 13 lines
Quoted 13 lines
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin

installbin_test

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin

Quoted 7 lines
Quoted 7 lines

installbin_test

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for

every

Quoted 7 lines
Quoted 7 lines

device.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

1.7.9.5

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

arago

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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

arago

#7 lore raw
In reply to Maupin, Chase
Quoted 172 lines · Chase
Quoted 163 lines

-----Original Message-----
From: Aravind Batni
Sent: Tuesday, February 18, 2014 7:41 PM
To: Dmytriyenko, Denys; Maupin, Chase
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 5 lines

for KeyStone devices

Quoted 2 lines · Chase
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+)

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti-

rm.inc

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

(quoted diff) +0 -0

b/meta-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +0 -0
@@ -0,0 +1,7 @@
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08

SRCREV =

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

+"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the

.inc is

Quoted 1 line
Quoted 1 line

not required. If you do plan for multiple versions then the

SRCREV at

Quoted 1 line
Quoted 1 line

least is probably best left in the version specific recipe and

not in the .inc.

Quoted 1 line
Quoted 1 line

Looking at this I would think it likely that you could/should

just

Quoted 2 lines
Quoted 2 lines

roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb recipe

Quoted 3 lines
Quoted 3 lines

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this

02.00.00.08

Quoted 2 lines
Quoted 2 lines

version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe since we don't plan to provide multiple recipes per RM release.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +0 -0
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change

this

Quoted 1 line
Quoted 1 line

recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +3 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+

${bindir}/ti/drv/rm/test/dts_files/*.dtb"

Quoted 9 lines
Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores,

while not

Quoted 3 lines

recommended, are still acceptable:

LLDBLDDIR - best from Bitbake perspective, not very human-

readable

Quoted 1 line

LLD_BLD_DIR - not perfect from Bitbake perspective, but

parseable and

Quoted 2 lines

readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any dashes

Quoted 2 lines
Quoted 2 lines

I'm not sure I understand what you are trying to do here. It

seems

Quoted 1 line
Quoted 1 line

like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}?

Looking

Quoted 1 line
Quoted 1 line

below it seems like you then want to pass ${S}/ti/drm/rm,

which points

Quoted 1 line
Quoted 1 line

to ${S} to the make commands. So can't you just point things

to ${S}?

Quoted 2 lines
Quoted 2 lines

Are you trying to work around the Makefile maybe looking for

other

Quoted 1 line
Quoted 1 line

files in the ti/drv directory? Since you created that

directory that

Quoted 1 line
Quoted 1 line

doesn't seem likely though. This seems like an issue best

handled by

Quoted 1 line
Quoted 1 line

updating the Makefiles to allow you to set paths and have a

set of

Quoted 1 line
Quoted 1 line

defaults. i.e. PATHX ?= "default path". That way you can

update PATHX as

Quoted 1 line

a parameter you pass.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

But this seems strange to make new direcory structures that

then link

Quoted 1 line
Quoted 1 line

back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from ${S} directly. If we had a way to create ${S} (git clone) under ti/drv/rm, then we don’t need to create the symbolic links to build RM lld. This is done originally to support DSP builds that are delivered from PDK, which demand this depth in the directory.

Quoted 5 lines

OK, help me understand here. You are cloning to ${WORKDIR}/git, but you need the clone to really be in ${WORKDIR}/git/ti/drv/rm directory because the makefiles/sources demand this directory structure?

Denys, are you aware of any option to control where the clone checks out to?

Yes, adding ;destsuffix=ti/drv/rm to SRC_URI will check out into that directory relative to ${WORKDIR}. If you want the default "git" part preserved, you can do ;destsuffix=git/ti/drv/rm - either way is fine.

Quoted 98 lines

If the sources were stored in the repo under ti/drm/rm would this work?

Quoted 95 lines
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 13 lines
Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 5 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the

different

Quoted 1 line
Quoted 1 line

DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the recipe to have for loops .

Quoted 1 line
Quoted 1 line

2. Since you don't seem to be breaking these libraries out per

DEVICE

Quoted 1 line
Quoted 1 line

and I think you are packaging both static and dynamic

libraries would an

Quoted 3 lines

"all"

Quoted 2 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs.

static

Quoted 1 line
Quoted 1 line

libraries. Why are both packaged? Or maybe I don't

understand

Quoted 3 lines

what

Quoted 2 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of

this

Quoted 1 line
Quoted 1 line

question is whether this recipe should be machine specific and

you

Quoted 1 line
Quoted 1 line

build the package for k2k and k2h devices. It seems like you

are

Quoted 1 line
Quoted 1 line

making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K devices, the options are for test applications. I now modified the recipe
to build the library only once for both K2H and K2K and build all other variations on the test applications in the next updated patch submit.

Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin

installbin_test

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin

installbin_test

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for every device.

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

1.7.9.5

_______________________________________________
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

#8 lore raw
Quoted 185 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 19, 2014 5:04 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Quoted 176 lines · Chase
Quoted 163 lines

-----Original Message-----
From: Aravind Batni
Sent: Tuesday, February 18, 2014 7:41 PM
To: Dmytriyenko, Denys; Maupin, Chase
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH] ti-rm: provides ti resouce manager recipe for KeyStone devices

Denys/Chase,
Thanks for the inputs - Please find the response in-lined.

-Best Regards,
Aravind

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 4:12 PM
To: Maupin, Chase
Cc: Aravind Batni; [email protected]
Subject: Re: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager recipe

Quoted 5 lines

for KeyStone devices

Quoted 2 lines · Chase
Quoted 2 lines

-----Original Message-----
From: [email protected] [mailto:meta-

arago-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

[email protected]] On Behalf Of Aravind Batni
Sent: Wednesday, February 12, 2014 4:15 PM
To: [email protected]
Cc: Aravind Batni
Subject: [meta-arago] [PATCH] ti-rm: provides ti resouce

manager

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

recipe for KeyStone devices

- TI Resource Manager Low Level Driver

---
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc | 7 ++++
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb | 45
++++++++++++++++++++++

2 files changed, 52 insertions(+) create mode 100644

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

rm.inc

Quoted 4 lines
Quoted 4 lines

Review

Quoted 4 lines

create mode 100644 meta-arago-extras/recipes-bsp/ti-rm/ti- rm_git.bb

(quoted diff) +0 -0

b/meta-

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

arago-extras/recipes-bsp/ti-rm/ti-rm.inc
new file mode 100644
index 0000000..96da467

meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +0 -0
@@ -0,0 +1,7 @@
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm.inc new file +2 -0
+LICENSE = "TI BSD"
+LIC_FILES_CHKSUM =

"file://COPYING.txt;md5=dc61631b65360e6beb73b6c337800afc"

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

lld.git;protocol=git;branch=${BRANCH}"
+# Below commit ID corresponds to DEV.RM_LLD.02.00.00.08

SRCREV =

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

+"3a73cfe015214ff0401639f85fa5e52ea610e59d"

If you aren't going to have multiple versions of a recipe the

.inc is

Quoted 1 line
Quoted 1 line

not required. If you do plan for multiple versions then the

SRCREV at

Quoted 1 line
Quoted 1 line

least is probably best left in the version specific recipe and

not in the .inc.

Quoted 1 line
Quoted 1 line

Looking at this I would think it likely that you could/should

just

Quoted 2 lines
Quoted 2 lines

roll this .inc into the regular .bb recipe.

[Aravind Batni] Yes, we can roll this to the regular .bb recipe

Quoted 3 lines
Quoted 3 lines

Review

Quoted 1 line
(quoted diff) +0 -0

Looking at the SRCREV below do you want to call this

02.00.00.08

Quoted 2 lines
Quoted 2 lines

version of the recipe instead of just _git?

[Aravind Batni] We would like to call this as _git recipe since we don't plan to provide multiple recipes per RM release.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

b/meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file mode 100644
index 0000000..7c8dad0

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +0 -0
Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 5

Quoted 6 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +5 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "TI Resource Manager Low Level Driver"
+
+COMPATIBLE_MACHINE = "keystone"
+
+PR = "r0"

You should probably set PV here if you are not going to change

this

Quoted 1 line
Quoted 1 line

recipe to a specific version.

[Aravind Batni] Yes, I would add PV variable in the recipe

Quoted 14 lines
Quoted 14 lines
Quoted 4 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +3 -0
+DEPENDS="ti-ipc"
+LLD-NAME="rm"
+

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 19

Quoted 10 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +10 -0
+include ti-rm.inc
+
+S = "${WORKDIR}/git"
+LLD-BLD-DIR="${S}/ti/drv"
+
+PACKAGES =+ "${PN}-test"
+
+FILES_${PN}-test = "${bindir}/rmDspClientTest_*.out \
+                    ${bindir}/rmLinuxClientTest_*.out \
+

${bindir}/ti/drv/rm/test/dts_files/*.dtb"

Quoted 9 lines
Quoted 7 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb line 25

Quoted 7 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+
+do_configure () {
+#   tweak the directory structure to LLD way
+    cd ${S}
+    mkdir -p ${LLD-BLD-DIR}
+    cd ${LLD-BLD-DIR}
+    ln -s ${S} ${LLD-NAME}

Also, please don't use dashes in variable names! Underscores,

while not

Quoted 3 lines

recommended, are still acceptable:

LLDBLDDIR - best from Bitbake perspective, not very human-

readable

Quoted 1 line

LLD_BLD_DIR - not perfect from Bitbake perspective, but

parseable and

Quoted 2 lines

readable LLD-BLD-DIR - may cause all kinds of issues

[Aravind Batni] Yes, I would correct the recipe not to use any dashes

Quoted 2 lines
Quoted 2 lines

I'm not sure I understand what you are trying to do here. It

seems

Quoted 1 line
Quoted 1 line

like you want ${WORKDIR}/git/ti/drv/rm to be pointed to ${S}?

Looking

Quoted 1 line
Quoted 1 line

below it seems like you then want to pass ${S}/ti/drm/rm,

which points

Quoted 1 line
Quoted 1 line

to ${S} to the make commands. So can't you just point things

to ${S}?

Quoted 2 lines
Quoted 2 lines

Are you trying to work around the Makefile maybe looking for

other

Quoted 1 line
Quoted 1 line

files in the ti/drv directory? Since you created that

directory that

Quoted 1 line
Quoted 1 line

doesn't seem likely though. This seems like an issue best

handled by

Quoted 1 line
Quoted 1 line

updating the Makefiles to allow you to set paths and have a

set of

Quoted 1 line
Quoted 1 line

defaults. i.e. PATHX ?= "default path". That way you can

update PATHX as

Quoted 1 line

a parameter you pass.

Quoted 8 lines
Quoted 1 line
Quoted 1 line

But this seems strange to make new direcory structures that

then link

Quoted 1 line
Quoted 1 line

back to the base directory you were already in.

[Aravind Batni] The RM source does not permit to build from ${S} directly. If we had a way to create ${S} (git clone) under ti/drv/rm, then we don’t need to create the symbolic links to build RM lld. This is done originally to support DSP builds that are delivered from PDK, which demand this depth in the directory.

OK, help me understand here. You are cloning to ${WORKDIR}/git, but you need the clone to really be in ${WORKDIR}/git/ti/drv/rm directory because the makefiles/sources demand this directory structure?

Quoted 7 lines
Quoted 1 line

Denys, are you aware of any option to control where the clone checks out

to?

Yes, adding ;destsuffix=ti/drv/rm to SRC_URI will check out into that directory relative to ${WORKDIR}. If you want the default "git" part preserved, you can do ;destsuffix=git/ti/drv/rm - either way is fine.

[Aravind Batni] Denys, Thanks - this would help me not to have any symbolic links in the recipe.

Quoted 98 lines
Quoted 98 lines

If the sources were stored in the repo under ti/drm/rm would this work?

Quoted 94 lines
Quoted 21 lines
Quoted 8 lines
Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +6 -0
+}
+
+do_compile () {
+#   Now build the lld in the updated directory
+    cd ${LLD-BLD-DIR}/${LLD-NAME}
+    make -f makefile_armv7 clean

PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2h

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes
+ make -f makefile_armv7 clean
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 13 lines
Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 3 lines
Quoted 3 lines

BLD-DIR}/${LLD-NAME}
+ make -f makefile_armv7 lib tests
PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE=k2k

RM_SRC_DIR=${LLD-

Quoted 5 lines
Quoted 1 line

BLD-DIR}/${LLD-NAME} USEDYNAMIC_LIB=yes

Some thoughts:

1. Would this be better done as a for loop iterated of the

different

Quoted 1 line
Quoted 1 line

DEVICE settings?

[Aravind Batni] Yes, thanks for the inputs. I will modify the recipe to have for loops .

Quoted 1 line
Quoted 1 line

2. Since you don't seem to be breaking these libraries out per

DEVICE

Quoted 1 line
Quoted 1 line

and I think you are packaging both static and dynamic

libraries would an

Quoted 3 lines

"all"

Quoted 2 lines

make target be better than calling each individually?
- I actually wonder if you would prefer to split dynamic vs.

static

Quoted 1 line
Quoted 1 line

libraries. Why are both packaged? Or maybe I don't

understand

Quoted 3 lines

what

Quoted 2 lines

you are doing here?
3. Should the libraries be packaged per DEVICE? The root of

this

Quoted 1 line
Quoted 1 line

question is whether this recipe should be machine specific and

you

Quoted 1 line
Quoted 1 line

build the package for k2k and k2h devices. It seems like you

are

Quoted 1 line
Quoted 1 line

making one package that has support for multiple devices.

[Aravind Batni] There is a single library for both K2H and K2K devices, the options are for test applications. I now modified the recipe to build the library only once for both K2H and K2K and build all other variations on the test applications in the next updated patch submit.

Quoted 8 lines
Quoted 8 lines

meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb

Quoted 8 lines
meta-arago-extras/recipes-bsp/ti-rm/ti-rm_git.bb new file +7 -0
+}
+
+do_install () {
+    install -d ${D}/${includedir}/ti/drv/${LLD-NAME}
+    install -d ${D}/${libdir}
+    install -d ${D}/${bindir}
+    make -f makefile_armv7 install installbin

installbin_test

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2h
+ make -f makefile_armv7 install installbin

installbin_test

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

INSTALL_INC_BASE_DIR=${D}/${includedir}
INSTALL_LIB_BASE_DIR=${D}/${libdir}
INSTALL_BIN_BASE_DIR=${D}/${bindir} DEVICE=k2k
+}
--

[Aravind Batni] I would have a for loop based installs for every device.

Quoted 10 lines
Quoted 10 lines
Quoted 6 lines

1.7.9.5

_______________________________________________
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