Explorar el Código

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>
Christopher Larson hace 6 años
padre
commit
0400bc1919
Se han modificado 1 ficheros con 24 adiciones y 0 borrados
  1. 24 0
      classes/external-toolchain-cross-canadian.bbclass

+ 24 - 0
classes/external-toolchain-cross-canadian.bbclass

@@ -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"