mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
ANDROID: GKI: Move GKI module headers to generated includes
Change build time generated GKI module headers location From :- kernel/module/gki_module_*.h To :- include/generated/gki_module_*.h This prevents the kernel source from being contaminated. By placing the header files in a generated directory, the default filters that ignore certain files will work without any special handling required. Bug: 286529877 Test: Manual verification & TH Change-Id: Ie247d1c132ddae54906de2e2850e95d7ae9edd50 Signed-off-by: Ramji Jiyani <ramjiyani@google.com> (cherry picked from commit e9cba885543fc50a5b59ff7234d02b74a380573c)
This commit is contained in:
committed by
Treehugger Robot
parent
c51761363c
commit
48fffa48b0
@@ -163,12 +163,12 @@ clean-files := kheaders_data.tar.xz kheaders.md5
|
|||||||
# ANDROID: GKI: Generate headerfiles required for gki_module.o
|
# ANDROID: GKI: Generate headerfiles required for gki_module.o
|
||||||
#
|
#
|
||||||
# Dependencies on generated files need to be listed explicitly
|
# Dependencies on generated files need to be listed explicitly
|
||||||
$(obj)/gki_module.o: $(obj)/gki_module_protected_exports.h \
|
$(obj)/gki_module.o: include/generated/gki_module_protected_exports.h \
|
||||||
$(obj)/gki_module_unprotected.h
|
include/generated/gki_module_unprotected.h
|
||||||
|
|
||||||
ALL_KMI_SYMBOLS := all_kmi_symbols
|
ALL_KMI_SYMBOLS := all_kmi_symbols
|
||||||
|
|
||||||
$(obj)/gki_module_unprotected.h: $(ALL_KMI_SYMBOLS) \
|
include/generated/gki_module_unprotected.h: $(ALL_KMI_SYMBOLS) \
|
||||||
$(srctree)/scripts/gen_gki_modules_headers.sh
|
$(srctree)/scripts/gen_gki_modules_headers.sh
|
||||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/gen_gki_modules_headers.sh $@ \
|
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/gen_gki_modules_headers.sh $@ \
|
||||||
"$(srctree)" \
|
"$(srctree)" \
|
||||||
@@ -186,7 +186,7 @@ else
|
|||||||
ABI_PROTECTED_EXPORTS_FILE := $(wildcard $(srctree)/android/abi_gki_protected_exports_$(ARCH))
|
ABI_PROTECTED_EXPORTS_FILE := $(wildcard $(srctree)/android/abi_gki_protected_exports_$(ARCH))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(obj)/gki_module_protected_exports.h: $(ABI_PROTECTED_EXPORTS_FILE) \
|
include/generated/gki_module_protected_exports.h: $(ABI_PROTECTED_EXPORTS_FILE) \
|
||||||
$(srctree)/scripts/gen_gki_modules_headers.sh
|
$(srctree)/scripts/gen_gki_modules_headers.sh
|
||||||
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/gen_gki_modules_headers.sh $@ \
|
$(Q)$(CONFIG_SHELL) $(srctree)/scripts/gen_gki_modules_headers.sh $@ \
|
||||||
"$(srctree)" \
|
"$(srctree)" \
|
||||||
|
|||||||
@@ -16,8 +16,8 @@
|
|||||||
* gki_module_protected_exports.h -- Symbols protected from _export_ by unsigned modules
|
* gki_module_protected_exports.h -- Symbols protected from _export_ by unsigned modules
|
||||||
* gki_module_unprotected.h -- Symbols allowed to _access_ by unsigned modules
|
* gki_module_unprotected.h -- Symbols allowed to _access_ by unsigned modules
|
||||||
*/
|
*/
|
||||||
#include "gki_module_protected_exports.h"
|
#include <generated/gki_module_protected_exports.h>
|
||||||
#include "gki_module_unprotected.h"
|
#include <generated/gki_module_unprotected.h>
|
||||||
|
|
||||||
#define MAX_STRCMP_LEN (max(MAX_UNPROTECTED_NAME_LEN, MAX_PROTECTED_EXPORTS_NAME_LEN))
|
#define MAX_STRCMP_LEN (max(MAX_UNPROTECTED_NAME_LEN, MAX_PROTECTED_EXPORTS_NAME_LEN))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user