external-toolchain-cross-canadian.bbclass: add class

This class will be used by the binutils and gcc cross-canadian recipes
which package and install the external toolchain binaries into the host
sysroot in the sdk.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2018-08-03 07:06:20 +05:00
parent 410b8c8e9e
commit 0400bc1919
@@ -0,0 +1,24 @@
inherit external-toolchain cross-canadian
PN .= "-${TRANSLATED_TARGET_ARCH}"
EXTERNAL_INSTALL_SOURCE_PATHS = "${EXTERNAL_TOOLCHAIN}"
FILES_MIRRORS += "\
${bindir}/|/bin/\n \
${libdir}/|/lib/\n \
${libexecdir}/|/libexec/\n \
${prefix}/|${target_prefix}/\n \
${prefix}/|${target_base_prefix}/\n \
${exec_prefix}/|${target_exec_prefix}/\n \
${exec_prefix}/|${target_base_prefix}/\n \
${base_prefix}/|${target_base_prefix}/\n \
"
# Align with more typical toolchain layout. Everything is already isolated by
# EXTERNAL_TARGET_SYS, we don't need cross-canadian.bbclass to do it for us.
bindir = "${exec_prefix}/bin"
libdir = "${exec_prefix}/lib"
libexecdir = "${exec_prefix}/libexec"
# We're relying on a compatible host libc, not one from a nativesdk build
INSANE_SKIP_${PN} += "build-deps file-rdeps"