ANDROID: enable protected-exports.c generation in modpost
Enable export protection when CONFIG_MODULE_SIG_PROTECT_LIST is set. Bug: 393366754 Change-Id: Ic31070d195c9cec2ef6feaa28e2cd0f7f36122db Signed-off-by: Sid Nayyar <sidnayyar@google.com>
This commit is contained in:
@@ -198,6 +198,13 @@ modpost-args += -e $(addprefix -i , $(KBUILD_EXTRA_SYMBOLS))
|
||||
|
||||
endif # ($(KBUILD_EXTMOD),)
|
||||
|
||||
ifdef CONFIG_MODULE_SIG_PROTECT
|
||||
mod-protect-list := $(CONFIG_MODULE_SIG_PROTECT_LIST)
|
||||
mod-protect-list := $(if $(filter-out /%, $(mod-protect-list)),$(if $(wildcard $(mod-protect-list)),,$(srctree)/))$(mod-protect-list)
|
||||
modpost-args += $(addprefix -p , $(mod-protect-list))
|
||||
modpost-deps += $(mod-protect-list)
|
||||
endif
|
||||
|
||||
quiet_cmd_modpost = MODPOST $@
|
||||
cmd_modpost = \
|
||||
$(if $(missing-input), \
|
||||
|
||||
Reference in New Issue
Block a user