summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/eject/eject_2.1.5.bb
diff options
context:
space:
mode:
authorAsh Charles <ashcharles@gmail.com>2014-06-13 13:45:36 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2014-06-21 10:32:31 +0200
commit20944d9c8a3996eb820f747d0adf4e14c5d157d2 (patch)
tree67844babba6703324df7a51840862ec2b0763e6b /meta-oe/recipes-support/eject/eject_2.1.5.bb
parentc992b1ba176af7071416c405df03633ef7bf8e20 (diff)
downloadmeta-openembedded-20944d9c8a3996eb820f747d0adf4e14c5d157d2.tar.gz
eject: copy po subdirectory for out-of-tree build
The po subdirectory found on the VPATH for an out-of-tree build so we copy it over. See [1] for discussion. [1] http://lists.openembedded.org/pipermail/openembedded-devel/2014-May/096052.html v3: only create and populate po/ if it doesn't already exist v4: test to see if we're building out-of-tree Signed-off-by: Ash Charles <ashcharles@gmail.com> Reviewed-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/eject/eject_2.1.5.bb')
-rw-r--r--meta-oe/recipes-support/eject/eject_2.1.5.bb8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/eject/eject_2.1.5.bb b/meta-oe/recipes-support/eject/eject_2.1.5.bb
index c47c65344..95345776b 100644
--- a/meta-oe/recipes-support/eject/eject_2.1.5.bb
+++ b/meta-oe/recipes-support/eject/eject_2.1.5.bb
@@ -16,6 +16,14 @@ S = "${WORKDIR}/${BPN}"
16 16
17PR = "r1" 17PR = "r1"
18 18
19do_compile_prepend() {
20 # PO subdir must be in build directory
21 if [ ! ${S} = ${B} ]; then
22 mkdir -p ${B}/po
23 cp -r ${S}/po/* ${B}/po/
24 fi
25}
26
19ALTERNATIVE_${PN} = "volname eject" 27ALTERNATIVE_${PN} = "volname eject"
20ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname" 28ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname"
21ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" 29ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject"