Split up external-sourcery-toolchain into separate recipes

common-license.bbclass will set LIC_FILES_CHKSUM to a common license file
based on LICENSE, which is appropriate for a case where we have no sources to
refer to.
external-toolchain.bbclass, among other things, handles extraction of files in
the external toolchain sysroot, based on patterns in the FILES variables,
checking alternate locations to better support any arbitrary toolchain, and
has basic mirror handling for checking multiple paths within the sysroots.

Under normal circumstances, I'd want this to use highly granular commits, but
this branch has been extremely long lived (>1yr) and is such an invasive
refactoring that attempting to break it down now would be of limited
usefulness.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2014-12-16 09:44:01 -07:00
parent ff66926c25
commit 0beb66b376
34 changed files with 1190 additions and 716 deletions

View File

@@ -0,0 +1,17 @@
require recipes-kernel/linux-libc-headers/linux-libc-headers.inc
inherit external-toolchain
LIC_FILES_CHKSUM = "${COMMON_LIC_CHKSUM}"
DEPENDS = ""
SRC_URI = ""
linux_include_subdirs = "asm asm-generic bits drm linux mtd rdma sound sys video"
FILES_${PN}-dev = "${@' '.join('${includedir}/%s' % d for d in '${linux_include_subdirs}'.split())}"
BBCLASSEXTEND = ""
inherit multilib_header
do_install_extra () {
oe_multilib_header bits/syscall.h
}