We used to have the file added via SRC_URI in well known macro relative to ${WORKDIR} & have standard macro's
Example for imagemagick:
P="imagemagick-7.1.2-5"
S="/mnt/addon-drive/00-upstream/master/build/tmp/work/x86-64-v3-poky-linux/imagemagick/7.1.2-5/sources/imagemagick-7.1.2-5"
WORKDIR="/mnt/addon-drive/00-upstream/master/build/tmp/work/x86-64-v3-poky-linux/imagemagick/7.1.2-5"
00-upstream/master/build : ls -al 00-upstream/master/build/tmp/work/x86-64-v3-poky-linux/imagemagick/7.1.2-5/sources/
total 20
drwxr-xr-x 3 bti-001003 domain users 4096 Oct 30 15:08 .
drwxr-xr-x 20 bti-001003 domain users 4096 Oct 30 15:29 ..
drwxr-xr-x 22 bti-001003 domain users 4096 Oct 30 15:08 imagemagick-7.1.2-5
-rwxr-xr-x 1 bti-001003 domain users 3679 Oct 30 15:07 imagemagick-ptest.sh
-rw-r--r-- 1 bti-001003 domain users 962 Oct 29 17:50 run-ptest
so in recipe we have to make use either of :
- ${S}/../run-ptest
- ${WORKDIR}/sources/run-ptest
i am naturally aligned for approach (b) from above
a) But wanted to check what's the preferred way from community ?
b) Or if we have any standard macro for ${WORKDIR}/sources to be used in recipe
c) Or if members are expecting a new macro to be created ?
Thanks ,
Ashish Kumar Mishra