summaryrefslogtreecommitdiffstats
path: root/meta/classes/binconfig.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-09-16 23:09:44 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-17 22:24:36 +0100
commitaf85ce4b4e675feb5796f87137c86d70c2f15b9a (patch)
treef19dbb9bcf1eec671b26685458f7cc47ebb3721e /meta/classes/binconfig.bbclass
parent046ae6a38d829048663fe1afb1f67de1fbe2e3b5 (diff)
downloadpoky-af85ce4b4e675feb5796f87137c86d70c2f15b9a.tar.gz
Remove layout_* variables
Remove layout_* variables and replace them with variables specific to the different classes. The layout variables were only useful for the native/cross classes and caused more confusion than they solved. They didn't scale to the sdk class. It now clear a small set of native/cross variables fulfil the needs. This patch also changes native.bbclass to use "/" as the STAGING_DIR which makes sense since we're installing binaries into the locations we're compiling them for. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/binconfig.bbclass')
-rw-r--r--meta/classes/binconfig.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 50c66ae8d3..9ebb54887c 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -14,8 +14,8 @@ def get_binconfig_mangle(d):
14 s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'" 14 s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
15 s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'" 15 s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
16 s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'" 16 s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
17 s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${layout_prefix}:'" 17 s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'"
18 s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${layout_exec_prefix}:'" 18 s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
19 s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'" 19 s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
20 s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'" 20 s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
21 return s 21 return s
@@ -31,7 +31,7 @@ do_install_append() {
31 -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ 31 -e 's:${STAGING_LIBDIR}:${libdir}:g;' \
32 -e 's:${STAGING_INCDIR}:${includedir}:g;' \ 32 -e 's:${STAGING_INCDIR}:${includedir}:g;' \
33 -e 's:${STAGING_DATADIR}:${datadir}:' \ 33 -e 's:${STAGING_DATADIR}:${datadir}:' \
34 -e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' > ${D}${bindir}/`basename $config` 34 -e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' > ${D}${bindir}/`basename $config`
35 done 35 done
36 fi 36 fi
37 37
@@ -40,7 +40,7 @@ do_install_append() {
40 -e 's:${STAGING_LIBDIR}:${libdir}:g;' \ 40 -e 's:${STAGING_LIBDIR}:${libdir}:g;' \
41 -e 's:${STAGING_INCDIR}:${includedir}:g;' \ 41 -e 's:${STAGING_INCDIR}:${includedir}:g;' \
42 -e 's:${STAGING_DATADIR}:${datadir}:' \ 42 -e 's:${STAGING_DATADIR}:${datadir}:' \
43 -e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' \ 43 -e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
44 $lafile 44 $lafile
45 done 45 done
46} 46}