This is done primarily to get a docs build fix merged via another tree so that "make htmldocs" stops failing.
Showing the changes to scripts (13 of 1361 files). Show all
Unified · Split
| @@ -487,7 +487,7 @@ $(subdir-ym): · 486 unmodified lines | ||
| 487 | 487 | need-modorder=$(if $(filter $@/modules.order, $(subdir-modorder)),1) \ |
| 488 | 488 | $(filter $@/%, $(single-subdir-goals)) |
| 489 | 489 | |
| 490 | −# Add FORCE to the prequisites of a target to force it to be always rebuilt. | |
| 490 | +# Add FORCE to the prerequisites of a target to force it to be always rebuilt. | |
| 491 | 491 | # --------------------------------------------------------------------------- |
| 492 | 492 | |
| 493 | 493 | PHONY += FORCE |
| @@ -400,26 +400,23 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE · 399 unmodified lines | ||
| 400 | 400 | $(obj)/%.dtbo.S: $(obj)/%.dtbo FORCE |
| 401 | 401 | $(call if_changed,wrap_S_dtb) |
| 402 | 402 | |
| 403 | −quiet_cmd_dtc = DTC $@ | |
| 403 | +quiet_dtb_check_tag = $(if $(dtb-check-enabled),[C], ) | |
| 404 | +cmd_dtb_check = $(if $(dtb-check-enabled),; $(DT_CHECKER) $(DT_CHECKER_FLAGS) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) $@ || true) | |
| 405 | + | |
| 406 | +quiet_cmd_dtc = DTC $(quiet_dtb_check_tag) $@ | |
| 404 | 407 | cmd_dtc = $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ |
| 405 | 408 | $(DTC) -o $@ -b 0 \ |
| 406 | 409 | $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ |
| 407 | 410 | -d $(depfile).dtc.tmp $(dtc-tmp) ; \ |
| 408 | − cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) | |
| 409 | − | |
| 410 | −DT_CHECK_CMD = $(DT_CHECKER) $(DT_CHECKER_FLAGS) -u $(srctree)/$(DT_BINDING_DIR) -p $(DT_TMP_SCHEMA) | |
| 411 | + cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) \ | |
| 412 | + $(cmd_dtb_check) | |
| 411 | 413 | |
| 412 | 414 | # NOTE: |
| 413 | 415 | # Do not replace $(filter %.dtb %.dtbo, $^) with $(real-prereqs). When a single |
| 414 | 416 | # DTB is turned into a multi-blob DTB, $^ will contain header file dependencies |
| 415 | 417 | # recorded in the .*.cmd file. |
| 416 | −ifneq ($(CHECK_DTBS),) | |
| 417 | −quiet_cmd_fdtoverlay = DTOVLCH $@ | |
| 418 | − cmd_fdtoverlay = $(objtree)/scripts/dtc/fdtoverlay -o $@ -i $(filter %.dtb %.dtbo, $^) ; $(DT_CHECK_CMD) $@ || true | |
| 419 | −else | |
| 420 | −quiet_cmd_fdtoverlay = DTOVL $@ | |
| 421 | − cmd_fdtoverlay = $(objtree)/scripts/dtc/fdtoverlay -o $@ -i $(filter %.dtb %.dtbo, $^) | |
| 422 | −endif | |
| 418 | +quiet_cmd_fdtoverlay = OVL $(quiet_dtb_check_tag) $@ | |
| 419 | + cmd_fdtoverlay = $(objtree)/scripts/dtc/fdtoverlay -o $@ -i $(filter %.dtb %.dtbo, $^) $(cmd_dtb_check) | |
| 423 | 420 | |
| 424 | 421 | $(multi-dtb-y): FORCE |
| 425 | 422 | $(call if_changed,fdtoverlay) |
| @@ -430,16 +427,11 @@ DT_CHECKER ?= dt-validate · 4 unmodified lines | ||
| 430 | 427 | DT_CHECKER_FLAGS ?= $(if $(DT_SCHEMA_FILES),-l $(DT_SCHEMA_FILES),-m) |
| 431 | 428 | DT_BINDING_DIR := Documentation/devicetree/bindings |
| 432 | 429 | DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/processed-schema.json |
| 433 | − | |
| 434 | −quiet_cmd_dtb = DTC_CHK $@ | |
| 435 | − cmd_dtb = $(cmd_dtc) ; $(DT_CHECK_CMD) $@ || true | |
| 436 | −else | |
| 437 | −quiet_cmd_dtb = $(quiet_cmd_dtc) | |
| 438 | − cmd_dtb = $(cmd_dtc) | |
| 430 | +dtb-check-enabled = $(if $(filter %.dtb, $@),y) | |
| 439 | 431 | endif |
| 440 | 432 | |
| 441 | 433 | $(obj)/%.dtb: $(obj)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE |
| 442 | − $(call if_changed_dep,dtb) | |
| 434 | + $(call if_changed_dep,dtc) | |
| 443 | 435 | |
| 444 | 436 | $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE |
| 445 | 437 | $(call if_changed_dep,dtc) |
| @@ -62,7 +62,7 @@ endif · 61 unmodified lines | ||
| 62 | 62 | |
| 63 | 63 | targets += $(modules:%.o=%.ko) $(modules:%.o=%.mod.o) |
| 64 | 64 | |
| 65 | −# Add FORCE to the prequisites of a target to force it to be always rebuilt. | |
| 65 | +# Add FORCE to the prerequisites of a target to force it to be always rebuilt. | |
| 66 | 66 | # --------------------------------------------------------------------------- |
| 67 | 67 | |
| 68 | 68 | PHONY += FORCE |
| @@ -33,7 +33,7 @@ targets += vmlinux · 32 unmodified lines | ||
| 33 | 33 | vmlinux: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE |
| 34 | 34 | +$(call if_changed_dep,link_vmlinux) |
| 35 | 35 | |
| 36 | −# Add FORCE to the prequisites of a target to force it to be always rebuilt. | |
| 36 | +# Add FORCE to the prerequisites of a target to force it to be always rebuilt. | |
| 37 | 37 | # --------------------------------------------------------------------------- |
| 38 | 38 | |
| 39 | 39 | PHONY += FORCE |
| @@ -87,7 +87,7 @@ targets += modules.builtin · 86 unmodified lines | ||
| 87 | 87 | modules.builtin: modules.builtin.modinfo FORCE |
| 88 | 88 | $(call if_changed,modules_builtin) |
| 89 | 89 | |
| 90 | −# Add FORCE to the prequisites of a target to force it to be always rebuilt. | |
| 90 | +# Add FORCE to the prerequisites of a target to force it to be always rebuilt. | |
| 91 | 91 | # --------------------------------------------------------------------------- |
| 92 | 92 | |
| 93 | 93 | PHONY += FORCE |
| @@ -4015,16 +4015,6 @@ sub process { · 4014 unmodified lines | ||
| 4015 | 4015 | } |
| 4016 | 4016 | } |
| 4017 | 4017 | |
| 4018 | −# Block comment styles | |
| 4019 | −# Networking with an initial /* | |
| 4020 | − if ($realfile =~ m@^(drivers/net/|net/)@ && | |
| 4021 | − $prevrawline =~ /^\+[ \t]*\/\*[ \t]*$/ && | |
| 4022 | − $rawline =~ /^\+[ \t]*\*/ && | |
| 4023 | − $realline > 3) { # Do not warn about the initial copyright comment block after SPDX-License-Identifier | |
| 4024 | − WARN("NETWORKING_BLOCK_COMMENT_STYLE", | |
| 4025 | − "networking block comments don't use an empty /* line, use /* Comment...\n" . $hereprev); | |
| 4026 | − } | |
| 4027 | − | |
| 4028 | 4018 | # Block comments use * on subsequent lines |
| 4029 | 4019 | if ($prevline =~ /$;[ \t]*$/ && #ends in comment |
| 4030 | 4020 | $prevrawline =~ /^\+.*?\/\*/ && #starting /* |
| @@ -19,10 +19,6 @@ · 18 unmodified lines | ||
| 19 | 19 | #include "gcc-common.h" |
| 20 | 20 | #include "randomize_layout_seed.h" |
| 21 | 21 | |
| 22 | −#if BUILDING_GCC_MAJOR < 4 || (BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR < 7) | |
| 23 | −#error "The RANDSTRUCT plugin requires GCC 4.7 or newer." | |
| 24 | −#endif | |
| 25 | − | |
| 26 | 22 | #define ORIG_TYPE_NAME(node) \ |
| 27 | 23 | (TYPE_NAME(TYPE_MAIN_VARIANT(node)) != NULL_TREE ? ((const unsigned char *)IDENTIFIER_POINTER(TYPE_NAME(TYPE_MAIN_VARIANT(node)))) : (const unsigned char *)"anonymous") |
| 28 | 24 | |
| @@ -145,6 +145,7 @@ def main(): · 144 unmodified lines | ||
| 145 | 145 | parser.add_argument('--cfgs', action='append', default=[]) |
| 146 | 146 | parser.add_argument("srctree", type=pathlib.Path) |
| 147 | 147 | parser.add_argument("objtree", type=pathlib.Path) |
| 148 | + parser.add_argument("sysroot", type=pathlib.Path) | |
| 148 | 149 | parser.add_argument("sysroot_src", type=pathlib.Path) |
| 149 | 150 | parser.add_argument("exttree", type=pathlib.Path, nargs="?") |
| 150 | 151 | args = parser.parse_args() |
| @@ -154,9 +155,12 @@ def main(): · 3 unmodified lines | ||
| 154 | 155 | level=logging.INFO if args.verbose else logging.WARNING |
| 155 | 156 | ) |
| 156 | 157 | |
| 158 | + # Making sure that the `sysroot` and `sysroot_src` belong to the same toolchain. | |
| 159 | + assert args.sysroot in args.sysroot_src.parents | |
| 160 | + | |
| 157 | 161 | rust_project = { |
| 158 | 162 | "crates": generate_crates(args.srctree, args.objtree, args.sysroot_src, args.exttree, args.cfgs), |
| 159 | − "sysroot_src": str(args.sysroot_src), | |
| 163 | + "sysroot": str(args.sysroot), | |
| 160 | 164 | } |
| 161 | 165 | |
| 162 | 166 | json.dump(rust_project, sys.stdout, sort_keys=True, indent=4) |
| @@ -162,7 +162,7 @@ fn main() { · 161 unmodified lines | ||
| 162 | 162 | "data-layout", |
| 163 | 163 | "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128", |
| 164 | 164 | ); |
| 165 | − let mut features = "-3dnow,-3dnowa,-mmx,+soft-float".to_string(); | |
| 165 | + let mut features = "-mmx,+soft-float".to_string(); | |
| 166 | 166 | if cfg.has("MITIGATION_RETPOLINE") { |
| 167 | 167 | features += ",+retpoline-external-thunk"; |
| 168 | 168 | } |
| @@ -179,7 +179,7 @@ fn main() { · 10 unmodified lines | ||
| 179 | 179 | "data-layout", |
| 180 | 180 | "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-i128:128-f64:32:64-f80:32-n8:16:32-S128", |
| 181 | 181 | ); |
| 182 | − let mut features = "-3dnow,-3dnowa,-mmx,+soft-float".to_string(); | |
| 182 | + let mut features = "-mmx,+soft-float".to_string(); | |
| 183 | 183 | if cfg.has("MITIGATION_RETPOLINE") { |
| 184 | 184 | features += ",+retpoline-external-thunk"; |
| 185 | 185 | } |
| @@ -5,8 +5,7 @@ · 4 unmodified lines | ||
| 5 | 5 | * This software may be used and distributed according to the terms |
| 6 | 6 | * of the GNU General Public License, incorporated herein by reference. |
| 7 | 7 | * |
| 8 | − * Usage: kallsyms [--all-symbols] [--absolute-percpu] | |
| 9 | − * [--lto-clang] in.map > out.S | |
| 8 | + * Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S | |
| 10 | 9 | * |
| 11 | 10 | * Table compression uses all the unused char codes on the symbols and |
| 12 | 11 | * maps these to the most used substrings (tokens). For instance, it might |
| @@ -62,7 +61,6 @@ static struct sym_entry **table; · 49 unmodified lines | ||
| 62 | 61 | static unsigned int table_size, table_cnt; |
| 63 | 62 | static int all_symbols; |
| 64 | 63 | static int absolute_percpu; |
| 65 | −static int lto_clang; | |
| 66 | 64 | |
| 67 | 65 | static int token_profit[0x10000]; |
| 68 | 66 | |
| @@ -73,8 +71,7 @@ static unsigned char best_table_len[256]; · 4 unmodified lines | ||
| 73 | 71 | |
| 74 | 72 | static void usage(void) |
| 75 | 73 | { |
| 76 | − fprintf(stderr, "Usage: kallsyms [--all-symbols] [--absolute-percpu] " | |
| 77 | − "[--lto-clang] in.map > out.S\n"); | |
| 74 | + fprintf(stderr, "Usage: kallsyms [--all-symbols] [--absolute-percpu] in.map > out.S\n"); | |
| 78 | 75 | exit(1); |
| 79 | 76 | } |
| 80 | 77 | |
| @@ -344,25 +341,6 @@ static bool symbol_absolute(const struct sym_entry *s) · 263 unmodified lines | ||
| 344 | 341 | return s->percpu_absolute; |
| 345 | 342 | } |
| 346 | 343 | |
| 347 | −static void cleanup_symbol_name(char *s) | |
| 348 | −{ | |
| 349 | − char *p; | |
| 350 | − | |
| 351 | − /* | |
| 352 | − * ASCII[.] = 2e | |
| 353 | − * ASCII[0-9] = 30,39 | |
| 354 | − * ASCII[A-Z] = 41,5a | |
| 355 | − * ASCII[_] = 5f | |
| 356 | − * ASCII[a-z] = 61,7a | |
| 357 | − * | |
| 358 | − * As above, replacing the first '.' in ".llvm." with '\0' does not | |
| 359 | − * affect the main sorting, but it helps us with subsorting. | |
| 360 | − */ | |
| 361 | − p = strstr(s, ".llvm."); | |
| 362 | − if (p) | |
| 363 | − *p = '\0'; | |
| 364 | −} | |
| 365 | − | |
| 366 | 344 | static int compare_names(const void *a, const void *b) |
| 367 | 345 | { |
| 368 | 346 | int ret; |
| @@ -526,10 +504,6 @@ static void write_src(void) · 157 unmodified lines | ||
| 526 | 504 | output_address(relative_base); |
| 527 | 505 | printf("\n"); |
| 528 | 506 | |
| 529 | − if (lto_clang) | |
| 530 | − for (i = 0; i < table_cnt; i++) | |
| 531 | − cleanup_symbol_name((char *)table[i]->sym); | |
| 532 | − | |
| 533 | 507 | sort_symbols_by_name(); |
| 534 | 508 | output_label("kallsyms_seqs_of_names"); |
| 535 | 509 | for (i = 0; i < table_cnt; i++) |
| @@ -807,7 +781,6 @@ int main(int argc, char **argv) · 271 unmodified lines | ||
| 807 | 781 | static const struct option long_options[] = { |
| 808 | 782 | {"all-symbols", no_argument, &all_symbols, 1}, |
| 809 | 783 | {"absolute-percpu", no_argument, &absolute_percpu, 1}, |
| 810 | − {"lto-clang", no_argument, <o_clang, 1}, | |
| 811 | 784 | {}, |
| 812 | 785 | }; |
| 813 | 786 | |
| @@ -167,6 +167,8 @@ for ORIG_MERGE_FILE in $MERGE_LIST ; do · 166 unmodified lines | ||
| 167 | 167 | sed -i "/$CFG[ =]/d" $MERGE_FILE |
| 168 | 168 | fi |
| 169 | 169 | done |
| 170 | + # In case the previous file lacks a new line at the end | |
| 171 | + echo >> $TMP_FILE | |
| 170 | 172 | cat $MERGE_FILE >> $TMP_FILE |
| 171 | 173 | done |
| 172 | 174 | |
| @@ -156,10 +156,6 @@ kallsyms() · 155 unmodified lines | ||
| 156 | 156 | kallsymopt="${kallsymopt} --absolute-percpu" |
| 157 | 157 | fi |
| 158 | 158 | |
| 159 | − if is_enabled CONFIG_LTO_CLANG; then | |
| 160 | − kallsymopt="${kallsymopt} --lto-clang" | |
| 161 | − fi | |
| 162 | − | |
| 163 | 159 | info KSYMS "${2}.S" |
| 164 | 160 | scripts/kallsyms ${kallsymopt} "${1}" > "${2}.S" |
| 165 | 161 | |
| @@ -219,7 +215,8 @@ kallsymso= · 53 unmodified lines | ||
| 219 | 215 | strip_debug= |
| 220 | 216 | |
| 221 | 217 | if is_enabled CONFIG_KALLSYMS; then |
| 222 | − kallsyms /dev/null .tmp_vmlinux0.kallsyms | |
| 218 | + truncate -s0 .tmp_vmlinux.kallsyms0.syms | |
| 219 | + kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms | |
| 223 | 220 | fi |
| 224 | 221 | |
| 225 | 222 | if is_enabled CONFIG_KALLSYMS || is_enabled CONFIG_DEBUG_INFO_BTF; then |
| @@ -53,6 +53,7 @@ · 52 unmodified lines | ||
| 53 | 53 | 39 common umount2 sys_umount |
| 54 | 54 | 40 common mount sys_mount |
| 55 | 55 | 41 common pivot_root sys_pivot_root |
| 56 | +42 common nfsservctl sys_ni_syscall | |
| 56 | 57 | 43 32 statfs64 sys_statfs64 compat_sys_statfs64 |
| 57 | 58 | 43 64 statfs sys_statfs |
| 58 | 59 | 44 32 fstatfs64 sys_fstatfs64 compat_sys_fstatfs64 |
| @@ -98,9 +99,9 @@ · 39 unmodified lines | ||
| 98 | 99 | 77 common tee sys_tee |
| 99 | 100 | 78 common readlinkat sys_readlinkat |
| 100 | 101 | 79 stat64 fstatat64 sys_fstatat64 |
| 101 | −79 newstat fstatat sys_newfstatat | |
| 102 | +79 64 newfstatat sys_newfstatat | |
| 102 | 103 | 80 stat64 fstat64 sys_fstat64 |
| 103 | −80 newstat fstat sys_newfstat | |
| 104 | +80 64 fstat sys_newfstat | |
| 104 | 105 | 81 common sync sys_sync |
| 105 | 106 | 82 common fsync sys_fsync |
| 106 | 107 | 83 common fdatasync sys_fdatasync |
| @@ -402,4 +403,3 @@ · 295 unmodified lines | ||
| 402 | 403 | 460 common lsm_set_self_attr sys_lsm_set_self_attr |
| 403 | 404 | 461 common lsm_list_modules sys_lsm_list_modules |
| 404 | 405 | 462 common mseal sys_mseal |
| 405 | −467 common uretprobe sys_uretprobe | |