All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pa-lld: Update to new version 3.0.1.5
@ 2015-10-19 19:29 Sam Nelson
  2015-10-19 21:06 ` Denys Dmytriyenko
  0 siblings, 1 reply; 3+ messages in thread
From: Sam Nelson @ 2015-10-19 19:29 UTC (permalink / raw)
  To: meta-ti

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

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
---
 recipes-bsp/pa-lld/pa-lld.inc    |    6 +++---
 recipes-bsp/pa-lld/pa-lld_git.bb |   14 ++++++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/recipes-bsp/pa-lld/pa-lld.inc b/recipes-bsp/pa-lld/pa-lld.inc
index 7d922fb..b8ade64 100644
--- a/recipes-bsp/pa-lld/pa-lld.inc
+++ b/recipes-bsp/pa-lld/pa-lld.inc
@@ -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"
diff --git a/recipes-bsp/pa-lld/pa-lld_git.bb b/recipes-bsp/pa-lld/pa-lld_git.bb
index 63e34ad..a264be2 100644
--- a/recipes-bsp/pa-lld/pa-lld_git.bb
+++ b/recipes-bsp/pa-lld/pa-lld_git.bb
@@ -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,11 @@ 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
+    cd ${D}${libdir}
+    ln -sf libpa.so.1.0.0 libpa_device.so.1
+    ln -sf libpa_device.so.1 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}
 }
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pa-lld: Update to new version 3.0.1.5
  2015-10-19 19:29 [PATCH] pa-lld: Update to new version 3.0.1.5 Sam Nelson
@ 2015-10-19 21:06 ` Denys Dmytriyenko
  2015-10-22  3:54   ` Nelson, Sam
  0 siblings, 1 reply; 3+ messages in thread
From: Denys Dmytriyenko @ 2015-10-19 21:06 UTC (permalink / raw)
  To: Sam Nelson; +Cc: meta-ti

On Mon, Oct 19, 2015 at 03:29:08PM -0400, Sam Nelson wrote:
> - Add script to create device independent symbolic link to actual
>   device library
> 
> Signed-off-by: Sam Nelson <sam.nelson@ti.com>
> ---
>  recipes-bsp/pa-lld/pa-lld.inc    |    6 +++---
>  recipes-bsp/pa-lld/pa-lld_git.bb |   14 ++++++++++++++
>  2 files changed, 17 insertions(+), 3 deletions(-)
> 
> diff --git a/recipes-bsp/pa-lld/pa-lld.inc b/recipes-bsp/pa-lld/pa-lld.inc
> index 7d922fb..b8ade64 100644
> --- a/recipes-bsp/pa-lld/pa-lld.inc
> +++ b/recipes-bsp/pa-lld/pa-lld.inc
> @@ -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"
> diff --git a/recipes-bsp/pa-lld/pa-lld_git.bb b/recipes-bsp/pa-lld/pa-lld_git.bb
> index 63e34ad..a264be2 100644
> --- a/recipes-bsp/pa-lld/pa-lld_git.bb
> +++ b/recipes-bsp/pa-lld/pa-lld_git.bb
> @@ -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,11 @@ 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
> +    cd ${D}${libdir}
> +    ln -sf libpa.so.1.0.0 libpa_device.so.1
> +    ln -sf libpa_device.so.1 libpa_device.so

Do this instead of the above 3 lines:
   ln -sf libpa.so.1.0.0 ${D}${libdir}/libpa_device.so.1
   ln -sf libpa_device.so.1 ${D}${libdir}/libpa_device.so

BTW, why are the lib names different (libpa vs. libpa_device)?


> +#   Copy init scripts
> +    install -d ${D}${sysconfdir}/init.d/
> +    install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME} ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
>  }
> -- 
> 1.7.9.5
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pa-lld: Update to new version 3.0.1.5
  2015-10-19 21:06 ` Denys Dmytriyenko
@ 2015-10-22  3:54   ` Nelson, Sam
  0 siblings, 0 replies; 3+ messages in thread
From: Nelson, Sam @ 2015-10-22  3:54 UTC (permalink / raw)
  To: Dmytriyenko, Denys; +Cc: meta-ti@yoctoproject.org



> -----Original Message-----
> From: Dmytriyenko, Denys
> Sent: Monday, October 19, 2015 5:06 PM
> To: Nelson, Sam
> Cc: meta-ti@yoctoproject.org
> Subject: Re: [meta-ti] [PATCH] pa-lld: Update to new version 3.0.1.5
> 
> On Mon, Oct 19, 2015 at 03:29:08PM -0400, Sam Nelson wrote:
> > - Add script to create device independent symbolic link to actual
> >   device library
> >
> > Signed-off-by: Sam Nelson <sam.nelson@ti.com>
> > ---
> >  recipes-bsp/pa-lld/pa-lld.inc    |    6 +++---
> >  recipes-bsp/pa-lld/pa-lld_git.bb |   14 ++++++++++++++
> >  2 files changed, 17 insertions(+), 3 deletions(-)
> >
> > diff --git a/recipes-bsp/pa-lld/pa-lld.inc
> > b/recipes-bsp/pa-lld/pa-lld.inc index 7d922fb..b8ade64 100644
> > --- a/recipes-bsp/pa-lld/pa-lld.inc
> > +++ b/recipes-bsp/pa-lld/pa-lld.inc
> > @@ -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"
> > diff --git a/recipes-bsp/pa-lld/pa-lld_git.bb
> > b/recipes-bsp/pa-lld/pa-lld_git.bb
> > index 63e34ad..a264be2 100644
> > --- a/recipes-bsp/pa-lld/pa-lld_git.bb
> > +++ b/recipes-bsp/pa-lld/pa-lld_git.bb
> > @@ -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,11 @@ 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
> > +    cd ${D}${libdir}
> > +    ln -sf libpa.so.1.0.0 libpa_device.so.1
> > +    ln -sf libpa_device.so.1 libpa_device.so
> 
> Do this instead of the above 3 lines:
>    ln -sf libpa.so.1.0.0 ${D}${libdir}/libpa_device.so.1
>    ln -sf libpa_device.so.1 ${D}${libdir}/libpa_device.so
Sounds good. I will replace.
> 
> BTW, why are the lib names different (libpa vs. libpa_device)?
libpa_device is a common symbolic link.
libpa and libpa2 are the different version of PA chosen run time based on the platform.
> 
> 
> > +#   Copy init scripts
> > +    install -d ${D}${sysconfdir}/init.d/
> > +    install -c -m 755 ${WORKDIR}/${INITSCRIPT_NAME}
> > +${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
> >  }
> > --
> > 1.7.9.5
> >
> > --
> > _______________________________________________
> > meta-ti mailing list
> > meta-ti@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-ti


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-22  3:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 19:29 [PATCH] pa-lld: Update to new version 3.0.1.5 Sam Nelson
2015-10-19 21:06 ` Denys Dmytriyenko
2015-10-22  3:54   ` Nelson, Sam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.