diff options
| -rw-r--r-- | meta/classes/kernel-yocto.bbclass | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass index cb7614d64a..092afe251d 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
| @@ -86,6 +86,21 @@ def get_machine_branch(d, default): | |||
| 86 | 86 | ||
| 87 | return default | 87 | return default |
| 88 | 88 | ||
| 89 | # returns a list of all directories that are on FILESEXTRAPATHS (and | ||
| 90 | # hence available to the build) that contain .scc or .cfg files | ||
| 91 | def get_dirs_with_fragments(d): | ||
| 92 | extrapaths = [] | ||
| 93 | extrafiles = [] | ||
| 94 | extrapathsvalue = (d.getVar("FILESEXTRAPATHS") or "") | ||
| 95 | # Remove default flag which was used for checking | ||
| 96 | extrapathsvalue = extrapathsvalue.replace("__default:", "") | ||
| 97 | extrapaths = extrapathsvalue.split(":") | ||
| 98 | for path in extrapaths: | ||
| 99 | if path + ":True" not in extrafiles: | ||
| 100 | extrafiles.append(path + ":" + str(os.path.exists(path))) | ||
| 101 | |||
| 102 | return " ".join(extrafiles) | ||
| 103 | |||
| 89 | do_kernel_metadata() { | 104 | do_kernel_metadata() { |
| 90 | set +e | 105 | set +e |
| 91 | 106 | ||
| @@ -368,6 +383,7 @@ do_kernel_checkout[dirs] = "${S}" | |||
| 368 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc | 383 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc |
| 369 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch | 384 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch |
| 370 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" | 385 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" |
| 386 | do_kernel_metadata[file-checksums] = " ${@get_dirs_with_fragments(d)}" | ||
| 371 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" | 387 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" |
| 372 | 388 | ||
| 373 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" | 389 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" |
