1 Star 0 Fork 4

孙昊一/plat-rk3568

forked from TenonOS/plat-rk3568 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.uk 3.15 KB
一键复制 编辑 原始数据 按行查看 历史
##
## RK3568 platform registration
##
$(eval $(call addplat_s,rk3568,$(CONFIG_PLAT_RK3568)))
##
## RK3568 platform library registration
##
$(eval $(call addplatlib,rk3568,librk3568plat))
##
## Platform library definitions
##
LIBRK3568PLAT_ASINCLUDES-y += -I$(LIBRK3568PLAT_BASE)/include
LIBRK3568PLAT_ASINCLUDES-y += -I$(UK_PLAT_COMMON_BASE)/include
LIBRK3568PLAT_CINCLUDES-y += -I$(LIBRK3568PLAT_BASE)/include
LIBRK3568PLAT_CINCLUDES-y += -I$(UK_PLAT_COMMON_BASE)/include
LIBRK3568PLAT_CINCLUDES-y += -I$(UK_PLAT_DRIVERS_BASE)/include
LIBRK3568PLAT_ASFLAGS += -DRK3568PLAT -DUK_USE_SECTION_SEGMENTS
LIBRK3568PLAT_CFLAGS += -DRK3568PLAT -DUK_USE_SECTION_SEGMENTS
LIBRK3568PLAT_CXXFLAGS += -DRK3568PLAT -DUK_USE_SECTION_SEGMENTS
##
## Default Linker script
UK_PLAT_RK3568_DEF_LDS := $(UK_PLAT_COMMON_BASE)/arm/link64.lds.S
##
## Architecture library definitions
##
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/cpu_native.c|common
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/cache64.S|common
ifneq ($(CONFIG_HAVE_SYSTICK),y)
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/generic_timer.c|common
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/time.c|common
endif
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/lcpu.c|arm64_common
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/traps_arm64.c|isr
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/smccc.c|common
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/smccc_invoke.S|common
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/lcpu.c|common
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/memory.c|common
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/tls.c|common
ifeq ($(CONFIG_ENFORCE_W_XOR_X),y)
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/w_xor_x.c|common
endif
LIBRK3568PLAT_SRCS-$(CONFIG_FPSIMD) += $(UK_PLAT_COMMON_BASE)/arm/fp_arm64.c|isr
ifeq ($(CONFIG_PAGING),y)
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/paging.c|isr
endif
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/bootinfo.c|common
LIBRK3568PLAT_SRCS-$(CONFIG_LIBFDT) += $(UK_PLAT_COMMON_BASE)/bootinfo_fdt.c|common
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/bootinfo.lds.S|common
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/arm/exceptions64.S|arm64_common
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/start.S|isr
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/console.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/gpio.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/lcpu.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/io.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/memory.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/setup.c
LIBRK3568PLAT_SRCS-y += $(LIBRK3568PLAT_BASE)/shutdown.c
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(LIBRK3568PLAT_BASE)/mmu.S|isr
LIBRK3568PLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(LIBRK3568PLAT_BASE)/rk3568_bpt64.S|arm
LIBRK3568PLAT_SRCS-y += $(UK_PLAT_RK3568_DEF_LDS)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/yingyisunhaoyi/plat-rk3568.git
git@gitee.com:yingyisunhaoyi/plat-rk3568.git
yingyisunhaoyi
plat-rk3568
plat-rk3568
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385