mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 09:41:18 -04:00
f21b8491ec
Signed-off-by: carmincol <changchen5@huawei.com> Change-Id: I45b71b20874d18cdb1a31a1038e1456f0a03d065 Signed-off-by: carmincol <changchen5@huawei.com>
38 lines
1.0 KiB
Makefile
Executable File
38 lines
1.0 KiB
Makefile
Executable File
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# Copyright (c) 2023 Huawei Device Co., Ltd.
|
|
#
|
|
# Makefile for memory_security manager module
|
|
#
|
|
obj-$(CONFIG_HIDE_MEM_ADDRESS) += \
|
|
src/hideaddr.o \
|
|
module.o
|
|
|
|
obj-$(CONFIG_JIT_MEM_CONTROL) += \
|
|
src/jit_space_list.o \
|
|
src/jit_process.o \
|
|
src/jit_memory.o \
|
|
src/jit_memory_module.o \
|
|
module.o
|
|
|
|
ccflags-$(CONFIG_HIDE_MEM_ADDRESS) += \
|
|
-I$(srctree)/fs/proc \
|
|
-I$(srctree)/fs/proc/memory_security/include \
|
|
-I$(srctree)/security/selinux/include \
|
|
-I$(srctree)/security/selinux
|
|
|
|
ccflags-$(CONFIG_JIT_MEM_CONTROL) += \
|
|
-I$(srctree)/fs/proc \
|
|
-I$(srctree)/fs/proc/memory_security/include \
|
|
-I$(srctree)/security/selinux/include \
|
|
-I$(srctree)/security/selinux
|
|
|
|
$(addprefix $(obj)/,$(obj-y)): $(obj)/flask.h
|
|
|
|
quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
|
|
cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
|
|
|
|
targets += flask.h av_permissions.h
|
|
$(obj)/flask.h: $(srctree)/security/selinux/include/classmap.h FORCE
|
|
$(call if_changed,flask)
|