diff options
Diffstat (limited to 'meta')
-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 3311f6e84e..cc8bcb909a 100644 --- a/meta/classes/kernel-yocto.bbclass +++ b/meta/classes/kernel-yocto.bbclass | |||
@@ -85,6 +85,21 @@ def get_machine_branch(d, default): | |||
85 | 85 | ||
86 | return default | 86 | return default |
87 | 87 | ||
88 | # returns a list of all directories that are on FILESEXTRAPATHS (and | ||
89 | # hence available to the build) that contain .scc or .cfg files | ||
90 | def get_dirs_with_fragments(d): | ||
91 | extrapaths = [] | ||
92 | extrafiles = [] | ||
93 | extrapathsvalue = (d.getVar("FILESEXTRAPATHS") or "") | ||
94 | # Remove default flag which was used for checking | ||
95 | extrapathsvalue = extrapathsvalue.replace("__default:", "") | ||
96 | extrapaths = extrapathsvalue.split(":") | ||
97 | for path in extrapaths: | ||
98 | if path + ":True" not in extrafiles: | ||
99 | extrafiles.append(path + ":" + str(os.path.exists(path))) | ||
100 | |||
101 | return " ".join(extrafiles) | ||
102 | |||
88 | do_kernel_metadata() { | 103 | do_kernel_metadata() { |
89 | set +e | 104 | set +e |
90 | cd ${S} | 105 | cd ${S} |
@@ -330,6 +345,7 @@ do_kernel_checkout[dirs] = "${S}" | |||
330 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc | 345 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc |
331 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch | 346 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch |
332 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" | 347 | do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" |
348 | do_kernel_metadata[file-checksums] = " ${@get_dirs_with_fragments(d)}" | ||
333 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" | 349 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" |
334 | 350 | ||
335 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" | 351 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" |