代码拉取完成,页面将自动刷新
同步操作将从 YingyiTech/Mortise 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
$(eval $(call addlib,appmortise))
################################################################################
# Include Libraries
################################################################################
ASINCLUDES += -I$(CONFIG_MT_BASE)/include
CINCLUDES += -I$(CONFIG_MT_BASE)/include
CXXINCLUDES += -I$(CONFIG_MT_BASE)/include
ifneq ($(strip $(VM_CONFIG_FILE)),)
APPMORTISE_SRCS-y += $(VM_CONFIG_FILE)
else
$(error VM_CONFIG_FILE is not set)
endif
ifeq ($(CONFIG_UK_ARCH),arm64)
ASINCLUDES += -I$(CONFIG_MT_BASE)/arch/arm64/include
CINCLUDES += -I$(CONFIG_MT_BASE)/arch/arm64/include
CXXINCLUDES += -I$(CONFIG_MT_BASE)/arch/arm64/include
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/aborts.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/boot.S
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/cache.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/exceptions.S
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/iommu.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/page_table.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/pagetables.S
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/psci.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/smc.c
APPMORTISE_SRCS-y += $(CONFIG_MT_BASE)/arch/arm64/smmuv2.c
endif
################################################################################
# Include platforms
################################################################################
PLATFORM_BASE = $(CONFIG_MT_BASE)/platform
PLATFORM ?= qemu-aarch64-virt
ASINCLUDES += -I$(PLATFORM_BASE)/$(PLATFORM)/include
CINCLUDES += -I$(PLATFORM_BASE)/$(PLATFORM)/include
CXXINCLUDES += -I$(PLATFORM_BASE)/$(PLATFORM)/include
APPMORTISE_SRCS-y += $(PLATFORM_BASE)/$(PLATFORM)/desc.c
################################################################################
# Build flags
################################################################################
APPMORTISE_SUPPRESS_FLAGS += -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers
CFLAGS-y += $(APPMORTISE_SUPPRESS_FLAGS)
CXXFLAGS-y += $(APPMORTISE_SUPPRESS_FLAGS)
################################################################################
# Generate depedency header files
################################################################################
cur_dir:=$(CONFIG_MT_BASE)
src_dir:=$(CONFIG_MT_BASE)
build_dir:=$(CONFIG_MT_BASE)/workdir/build
generated_header_dir:=$(build_dir)/include
cpu_arch_dir=$(src_dir)/arch/arm64
asm_defs_src:=$(cpu_arch_dir)/asm_defs.c
TOOLS_HEADERS += $(CINCLUDES)
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/config/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/mem/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/memprot/mmu/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/cache/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/bitmap/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/vm/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/interrupts/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/interrupts/arch/arm64/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/ipimsg/include
TOOLS_HEADERS += -I$(CONFIG_MT_BASE)/lib/cpu/include
asm_defs_hdr:= $(generated_header_dir)/mt/asm_defs.h
ifneq ($(wildcard $(asm_defs_src)),)
$(asm_defs_hdr): $(asm_defs_src)
@mkdir -p $(generated_header_dir)/mt
@echo "Generating header 11 $(patsubst $(cur_dir)/%, %, $@)"
@$(CC) -S $(CFLAGS) $(TOOLS_HEADERS) -DGENERATING_DEFS $< -o - \
| awk '($$1 == "->") { gsub("#", "", $$3); print "#define " $$2 " " $$3 }' > $@
endif
tools_dir:=$(CONFIG_MT_BASE)/tools
tools_build_dir:=$(build_dir)
config_def_generator_src:=$(tools_dir)/config_defs_gen.c
config_def_generator:=$(tools_build_dir)/config_defs_gen
config_defs:=$(generated_header_dir)/mt/config_defs_gen.h
uk_config_header_dir:=$(src_dir)/include/uk/bits
uk_config_header:=$(uk_config_header_dir)/config.h
$(uk_config_header):
@mkdir -p $(uk_config_header_dir)
@touch $@
config_src:=$(VM_CONFIG_FILE)
build_macros:=
$(config_def_generator): $(config_def_generator_src) $(config_src) $(uk_config_header)
@echo "Compiling generator $(TOOLS_HEADERS) $(patsubst $(cur_dir)/%, %, $@)"
@$(HOSTCC) $^ $(build_macros) $(CFLAGS) -DGENERATING_DEFS \
$(TOOLS_HEADERS) -o $@
$(config_defs): $(config_def_generator) $(uk_config_header)
@echo "Generating header $(patsubst $(cur_dir)/%, %, $@)"
@$(config_def_generator) > $(config_defs)
@rm -f $(uk_config_header)
ASINCLUDES += -I$(generated_header_dir)
CINCLUDES += -I$(generated_header_dir)
CXXINCLUDES += -I$(generated_header_dir)
UK_PREPROCESS += $(asm_defs_hdr)
UK_PREPROCESS += $(config_defs)
UK_CLEAN += $(asm_defs_hdr)
UK_CLEAN += $(config_defs)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。