4 Star 0 Fork 12

征西车马羽书迟/tee_tee_os_kernel

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
config.mk 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
shijc 提交于 2023-05-17 23:02 . add kernel, system servers and libohtee
# Copyright (c) 2023 Institute of Parallel And Distributed Systems (IPADS)
# Licensed under the Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
# PURPOSE.
# See the Mulan PSL v2 for more details.
# string config
STR_CONFIGS = \
CHCORE_COMPILER=clang \
CHCORE_CROSS_COMPILE=aarch64-linux-ohos- \
CHCORE_PLAT=rk3399 \
CHCORE_ARCH=aarch64
# bool config
BOOL_CONFIGS = \
CHCORE_VERBOSE_BUILD=OFF \
CHCORE_ENABLE_FMAP=ON \
CHCORE_USER_DEBUG=OFF \
CHCORE_MINI=ON \
CHCORE_OH_TEE=ON \
CHCORE_KERNEL_DEBUG=OFF \
CHCORE_KERNEL_TEST=OFF \
CHCORE_KERNEL_RT=OFF
# set the config in Makefile
$(foreach CONFIG,$(STR_CONFIGS) $(BOOL_CONFIGS), \
$(eval KEY = $(word 1,$(subst =, ,$(CONFIG)))) \
$(eval VALUE = $(word 2,$(subst =, ,$(CONFIG)))) \
$(eval $(KEY)=$(VALUE)) \
)
# set CONFIG_FLAGS
$(foreach CONFIG,$(STR_CONFIGS), \
$(eval CONFIG_FLAGS += -D$(CONFIG)) \
)
$(foreach CONFIG,$(BOOL_CONFIGS), \
$(eval KEY = $(word 1,$(subst =, ,$(CONFIG)))) \
$(eval VALUE = $(word 2,$(subst =, ,$(CONFIG)))) \
$(eval CONFIG_FLAGS += $(if $(filter ON,$(VALUE)),-D$(KEY),)) \
)
CONFIG_FLAGS += -DCHCORE_ARCH_$(shell echo $(CHCORE_ARCH) | tr '[:lower:]' '[:upper:]')
CONFIG_FLAGS += -DCHCORE_PLAT_$(shell echo $(CHCORE_PLAT) | tr '[:lower:]' '[:upper:]')
CONFIG_FLAGS += -DCHCORE
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fourstring/tee_tee_os_kernel.git
git@gitee.com:fourstring/tee_tee_os_kernel.git
fourstring
tee_tee_os_kernel
tee_tee_os_kernel
master

搜索帮助