ANDROID: kbuild: lto: permit the use of .a archives in LTO modules
Permit the use of AR archives in .a format as input to the partial link that produces a kernel module. This permits a set of builtin objects to be bundled with a module object, to create a single module carrying the payload of several modules. This is used by the FIPS 140 module. Bug: 153614920 Bug: 188620248 Change-Id: I7183e6922a03aed498f947062bf0d36709371294 Signed-off-by: Ard Biesheuvel <ardb@google.com> Signed-off-by: Eric Biggers <ebiggers@google.com>
This commit is contained in:
committed by
Eric Biggers
parent
5651d743ee
commit
557054dd76
@@ -464,7 +464,7 @@ quiet_cmd_link_multi-m = AR [M] $@
|
||||
cmd_link_multi-m = \
|
||||
$(cmd_update_lto_symversions); \
|
||||
rm -f $@; \
|
||||
$(AR) cDPrsT $@ $(filter %.o,$^)
|
||||
$(AR) cDPrsT $@ $(filter %.o %.a,$^)
|
||||
else
|
||||
quiet_cmd_link_multi-m = LD [M] $@
|
||||
cmd_link_multi-m = $(LD) $(ld_flags) -r -o $@ $(filter %.o,$^)
|
||||
|
||||
Reference in New Issue
Block a user