mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
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>
This commit is contained in:
@@ -14,8 +14,8 @@ def get_binconfig_mangle(d):
|
||||
s += " -e 's:OELIBDIR:${STAGING_LIBDIR}:;'"
|
||||
s += " -e 's:OEINCDIR:${STAGING_INCDIR}:;'"
|
||||
s += " -e 's:OEDATADIR:${STAGING_DATADIR}:'"
|
||||
s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${layout_prefix}:'"
|
||||
s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${layout_exec_prefix}:'"
|
||||
s += " -e 's:OEPREFIX:${STAGING_DIR_HOST}${prefix}:'"
|
||||
s += " -e 's:OEEXECPREFIX:${STAGING_DIR_HOST}${exec_prefix}:'"
|
||||
s += " -e 's:-I${WORKDIR}:-I${STAGING_INCDIR}:'"
|
||||
s += " -e 's:-L${WORKDIR}:-L${STAGING_LIBDIR}:'"
|
||||
return s
|
||||
@@ -31,7 +31,7 @@ do_install_append() {
|
||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
||||
-e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' > ${D}${bindir}/`basename $config`
|
||||
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' > ${D}${bindir}/`basename $config`
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -40,7 +40,7 @@ do_install_append() {
|
||||
-e 's:${STAGING_LIBDIR}:${libdir}:g;' \
|
||||
-e 's:${STAGING_INCDIR}:${includedir}:g;' \
|
||||
-e 's:${STAGING_DATADIR}:${datadir}:' \
|
||||
-e 's:${STAGING_DIR_HOST}${layout_prefix}:${prefix}:' \
|
||||
-e 's:${STAGING_DIR_HOST}${prefix}:${prefix}:' \
|
||||
$lafile
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user