Skip to contentSkip to conversation

pa-lld: Update to new version 3.0.1.5

PATCH In review Sam Nelson 2 participants 2 messages Oct 22, 2015 – Oct 27, 2015

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v2 1/1 pa-lld: Update to new version 3.0.1.5

- Add script to create device independent symbolic link to actual device library

---
Changes from previous version of patch
- Reformatted symbolic link commands
---

---
 recipes-bsp/pa-lld/pa-lld.inc    |    6 +++---
 recipes-bsp/pa-lld/pa-lld_git.bb |   13 +++++++++++++
 2 files changed, 16 insertions(+), 3 deletions(-)
recipes-bsp/pa-lld/pa-lld.inc +3 -3
index 7d922fb..b8ade64 100644
@@ -6,9 +6,9 @@ COMPATIBLE_MACHINE = "keystone"
 BRANCH = "master"
 SRC_URI = "git://git.ti.com/keystone-rtos/pa-lld.git;destsuffix=git/ti/drv/pa;protocol=git;branch=${BRANCH}"
 
-# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.04"
-SRCREV = "92de8879be3712af684bd031ca0ed291c05d6050"
-PV = "03.00.01.04"
+# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.05A"
+SRCREV = "ae3aa3e80ecf64fe5a16515d134a6bc217220e2e"
+PV = "03.00.01.05"
 PR = "r1"
 
 BASEDIR = "${WORKDIR}/git"
recipes-bsp/pa-lld/pa-lld_git.bb +13 -0
index 63e34ad..468113b 100644
@@ -4,6 +4,13 @@ DEPENDS = "common-csl-ip rm-lld"
 
 include pa-lld.inc
 
+SRC_URI += "file://init_pa.sh"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "init_pa.sh"
+INITSCRIPT_PARAMS = "defaults 10"
+
 do_compile () {
 #   Now build the lld in the updated directory
 	make -f makefile_armv7 DEVICE=k2h clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
@@ -12,4 +19,10 @@ do_compile () {
 
 do_install () {
 	make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+#   Set the generic device library symbolic link
+    ln -sf libpa.so.1.0.0 ${D}${libdir}/libpa_device.so.1
+    ln -sf libpa_device.so.1 ${D}${libdir}/libpa_device.so
+#   Copy init scripts
+    install -d ${D}${sysconfdir}/init.d/
+    install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
 }
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 36 lines · Sam Nelson

- Add script to create device independent symbolic link to actual device library

---
Changes from previous version of patch
- Reformatted symbolic link commands
---

---
  recipes-bsp/pa-lld/pa-lld.inc    |    6 +++---
  recipes-bsp/pa-lld/pa-lld_git.bb |   13 +++++++++++++
  2 files changed, 16 insertions(+), 3 deletions(-)
recipes-bsp/pa-lld/pa-lld.inc +3 -3
index 7d922fb..b8ade64 100644
@@ -6,9 +6,9 @@ COMPATIBLE_MACHINE = "keystone"
  BRANCH = "master"
  SRC_URI = "git://git.ti.com/keystone-rtos/pa-lld.git;destsuffix=git/ti/drv/pa;protocol=git;branch=${BRANCH}"
 
-# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.04"
-SRCREV = "92de8879be3712af684bd031ca0ed291c05d6050"
-PV = "03.00.01.04"
+# Below Commit ID corresponds to "DEV.PA_LLD.03.00.01.05A"
+SRCREV = "ae3aa3e80ecf64fe5a16515d134a6bc217220e2e"
+PV = "03.00.01.05"
  PR = "r1"
 
  BASEDIR = "${WORKDIR}/git"
recipes-bsp/pa-lld/pa-lld_git.bb +0 -0
index 63e34ad..468113b 100644

recipes-bsp/pa-lld/pa-lld_git.bb DEPENDS = "common-csl-ip rm-lld" · line 7

Quoted 4 lines
recipes-bsp/pa-lld/pa-lld_git.bb +1 -0
@@ -4,6 +4,13 @@ DEPENDS = "common-csl-ip rm-lld"
 
  include pa-lld.inc
 
+SRC_URI += "file://init_pa.sh"

This file does not exist.

Quoted 20 lines
recipes-bsp/pa-lld/pa-lld_git.bb +12 -0
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "init_pa.sh"
+INITSCRIPT_PARAMS = "defaults 10"
+
  do_compile () {
  #   Now build the lld in the updated directory
  	make -f makefile_armv7 DEVICE=k2h clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
@@ -12,4 +19,10 @@ do_compile () {
 
  do_install () {
  	make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
+#   Set the generic device library symbolic link
+    ln -sf libpa.so.1.0.0 ${D}${libdir}/libpa_device.so.1
+    ln -sf libpa_device.so.1 ${D}${libdir}/libpa_device.so
+#   Copy init scripts
+    install -d ${D}${sysconfdir}/init.d/
+    install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
  }