I found that removing the initial $ from the line succeeded in changing the 
directory.

{S} = "${workdir}/${PN}/${PR}"

rob

-----Original Message-----
From: Sullivan, California L [mailto:[email protected]] 
Sent: Thursday, September 10, 2015 1:33 PM
To: Rob McPherson <[email protected]>
Subject: Re: [linux-yocto] ${S} variable resists being set in recipe

Hi Rob,

I am not an expert, but I believe you want:

S = "${workdir}"

---
Cal

On 09/10/2015 12:23 PM, Rob McPherson wrote:
All,

I'm having a problem with a recipe.  It runs without error, but doesn't build 
the code, and it doesn't deploy the artifacts.  It also give a warning that S 
must be set properly.  Here is my recipe.

DESCRIPTION = "Gstreamer plugin provided by RidgeRun to decrypt videos on the 
fly, static or streaming."
SECTION = "Digecor gstreamer"

LICENSE = "closed"
LIC_FILES_CHKSUM = 
"file://COPYING;md5=cb8aedd3bced19bd8026d96a8b6876d7"<file://COPYING;md5=cb8aedd3bced19bd8026d96a8b6876d7>

${S} = "${workdir}"
#SRC_URI = 
"file://gst-crypto_0.10.0.orig.tar.gz"<file://gst-crypto_0.10.0.orig.tar.gz>
SRC_URI = 
"file://gst-crypto-0.10.0.mod.tar.gz"<file://gst-crypto-0.10.0.mod.tar.gz>

DEPENDS = "autoconf gettext pkgconfig"

do_unpack() {
cd ..
rm -rf ./gst-crypto-0.10.0
}
do_install() {
        install -m 0755 -d ${S}/libgstcrypto.so ${D}/usr/lib/gstreamer-0.10 }

It doesn't matter what I change the S variable to, it always installs in 
tmp/work/nv8-poky-linux-gnueabi/gst-crypto/0.10.0-r0/, but bitbake gst-crypto 
-c devshell always opens in 
tmp/work/nv8-poky-linux-gnueabi/gst-crypto/0.10.0-r0/gst-crypto-0.10.0/, one 
extra directory below this.  Please help me understand what I'm doing wrong.  
The tarball is unpacking correctly, but in parent directory to the one called 
by S.

Rob


Rob McPherson
743 W. 1200 North
Springville, UT 84663
801.691.7253
mailto: [email protected]<mailto:[email protected]>


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

Reply via email to