diff options
author | Ash Charles <ashcharles@gmail.com> | 2014-06-13 13:45:36 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-06-21 10:32:31 +0200 |
commit | 20944d9c8a3996eb820f747d0adf4e14c5d157d2 (patch) | |
tree | 67844babba6703324df7a51840862ec2b0763e6b /meta-oe/recipes-support/eject/eject_2.1.5.bb | |
parent | c992b1ba176af7071416c405df03633ef7bf8e20 (diff) | |
download | meta-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.bb | 8 |
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 | ||
17 | PR = "r1" | 17 | PR = "r1" |
18 | 18 | ||
19 | do_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 | |||
19 | ALTERNATIVE_${PN} = "volname eject" | 27 | ALTERNATIVE_${PN} = "volname eject" |
20 | ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname" | 28 | ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname" |
21 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" | 29 | ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" |