From 0c7a20f2e86277c7fe37ed35454914c539f3bc7d Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Tue, 16 Aug 2011 19:04:41 +0100 Subject: 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 --- classes/opie.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'classes') 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 :) -- cgit 1.2.3-korg