aboutsummaryrefslogtreecommitdiffstats
path: root/classes/opie.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-08-16 19:04:41 +0100
committerPaul Eggleton <paul.eggleton@linux.intel.com>2011-08-20 00:25:48 +0100
commit0c7a20f2e86277c7fe37ed35454914c539f3bc7d (patch)
tree22b070e155297ca790ab992fa3b351ee89fca8d7 /classes/opie.bbclass
parent82cf86be7fd0218c56f181b080e4109c896875ea (diff)
downloadmeta-opie-0c7a20f2e86277c7fe37ed35454914c539f3bc7d.tar.gz
meta-opie-0c7a20f2e86277c7fe37ed35454914c539f3bc7d.tar.bz2
meta-opie-0c7a20f2e86277c7fe37ed35454914c539f3bc7d.zip
libopie2: install include.pro into palmtopdir
Installing files into the sysroot during do_install is not a good idea - in particular this breaks with OE-core's machine-specific sysroots. Instead we now install it to ${D}${palmtopdir} and package it with the other development files, and apply a sed hack to all .pro files within opie.bbclass to ensure it gets found when building each package. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'classes/opie.bbclass')
-rw-r--r--classes/opie.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/opie.bbclass b/classes/opie.bbclass
index 10dd177..4c13daf 100644
--- a/classes/opie.bbclass
+++ b/classes/opie.bbclass
@@ -27,6 +27,11 @@ EXTRA_QMAKEVARS_POST += " DESTDIR=${S} "
# Opie standard TAG value
TAG = "${@'v' + bb.data.getVar('PV',d,1).replace('.', '_')}"
+do_configure_prepend() {
+ # Ensure we find include.pro in the right place
+ find -name "*.pro" -exec sed -i 's!$(OPIEDIR)/include.pro!/${STAGING_DIR_HOST}${palmtopdir}/include.pro!' {} \;
+}
+
# plan for later:
# add common scopes for opie applications, see qmake-native/common.pro
# qmake should care about all the details then. qmake can do that, i know it :)