@@ -390,29 +390,15 @@ $(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler
390
390
$(subdir-builtin): $(obj)/%/built-in.a: $(obj)/% ;
391
391
$(subdir-modorder): $(obj)/%/modules.order: $(obj)/% ;
392
392
393
- # combine symversions for later processing
394
- ifeq ($(CONFIG_LTO_CLANG) $(CONFIG_MODVERSIONS),y y)
395
- cmd_update_lto_symversions = \
396
-
397
- $(foreach n, $(filter-out FORCE,$^), \
398
- $(if $(shell test -s $(n).symversions && echo y), \
399
- ; cat $(n).symversions >>
[email protected] ))
400
- else
401
- cmd_update_lto_symversions = echo >/dev/null
402
- endif
403
-
404
393
#
405
394
# Rule to compile a set of .o files into one .a file (without symbol table)
406
395
#
407
396
408
397
quiet_cmd_ar_builtin = AR $@
409
398
cmd_ar_builtin = rm -f $@; $(AR) cDPrST $@ $(real-prereqs)
410
399
411
- quiet_cmd_ar_and_symver = AR $@
412
- cmd_ar_and_symver = $(cmd_update_lto_symversions); $(cmd_ar_builtin)
413
-
414
400
$(obj)/built-in.a: $(real-obj-y) FORCE
415
- $(call if_changed,ar_and_symver )
401
+ $(call if_changed,ar_builtin )
416
402
417
403
#
418
404
# Rule to create modules.order file
@@ -432,16 +418,13 @@ $(obj)/modules.order: $(obj-m) FORCE
432
418
#
433
419
# Rule to compile a set of .o files into one .a file (with symbol table)
434
420
#
435
- quiet_cmd_ar_lib = AR $@
436
- cmd_ar_lib = $(cmd_update_lto_symversions); $(cmd_ar)
437
421
438
422
$(obj)/lib.a: $(lib-y) FORCE
439
- $(call if_changed,ar_lib )
423
+ $(call if_changed,ar )
440
424
441
425
ifneq ($(CONFIG_LTO_CLANG)$(CONFIG_X86_KERNEL_IBT),)
442
426
quiet_cmd_link_multi-m = AR [M] $@
443
427
cmd_link_multi-m = \
444
- $(cmd_update_lto_symversions); \
445
428
rm -f $@; \
446
429
$(AR) cDPrsT $@ @$(patsubst %.o,%.mod,$@)
447
430
else
0 commit comments