From 20944d9c8a3996eb820f747d0adf4e14c5d157d2 Mon Sep 17 00:00:00 2001 From: Ash Charles Date: Fri, 13 Jun 2014 13:45:36 -0700 Subject: 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 Reviewed-by: Otavio Salvador Signed-off-by: Martin Jansa --- meta-oe/recipes-support/eject/eject_2.1.5.bb | 8 ++++++++ 1 file changed, 8 insertions(+) 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 c47c653444..95345776bb 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}" PR = "r1" +do_compile_prepend() { + # PO subdir must be in build directory + if [ ! ${S} = ${B} ]; then + mkdir -p ${B}/po + cp -r ${S}/po/* ${B}/po/ + fi +} + ALTERNATIVE_${PN} = "volname eject" ALTERNATIVE_LINK_NAME[volname] = "${bindir}/volname" ALTERNATIVE_LINK_NAME[eject] = "${bindir}/eject" -- cgit 1.2.3-korg