1 Star 0 Fork 10

张浩/plat-raspi

forked from YingyiTech/plat-raspi
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.uk 3.33 KB
一键复制 编辑 原始数据 按行查看 历史
##
## RASPI platform registration
##
$(eval $(call addplat_s,raspi,$(CONFIG_PLAT_RASPI)))
##
## RASPI platform library registration
##
$(eval $(call addplatlib,raspi,libraspiplat))
$(eval $(call addplatlib_s,raspi,libraspilcd,$(RASPI_LCD)))
$(eval $(call addplatlib_s,raspi,libraspitouchscreen,$(RASPI_TOUCHSCREEN)))
##
## Platform library definitions
##
LIBRASPIPLAT_ASINCLUDES-y += -I$(LIBRASPIPLAT_BASE)/include
LIBRASPIPLAT_ASINCLUDES-y += -I$(UK_PLAT_COMMON_BASE)/include
LIBRASPIPLAT_CINCLUDES-y += -I$(LIBRASPIPLAT_BASE)/include
LIBRASPIPLAT_CINCLUDES-y += -I$(UK_PLAT_COMMON_BASE)/include
LIBRASPIPLAT_CINCLUDES-y += -I$(UK_PLAT_DRIVERS_BASE)/include
LIBRASPIPLAT_ASFLAGS += -DRASPIPLAT
LIBRASPIPLAT_CFLAGS += -DRASPIPLAT
LIBRASPIPLAT_CXXFLAGS += -DRASPIPLAT
LIBRASPIPLAT_ASFLAGS-y += -DUK_USE_SECTION_SEGMENTS
LIBRASPIPLAT_CFLAGS-y += -DUK_USE_SECTION_SEGMENTS
LIBRASPIPLAT_CXXFLAGS-y += -DUK_USE_SECTION_SEGMENTS
##
## Default Linker script
UK_PLAT_RASPI_DEF_LDS := $(LIBRASPIPLAT_BASE)/link.lds.S
##
## Architecture library definitions
##
ifeq ($(findstring y,$(CONFIG_RASPI_PRINTF_SERIAL_CONSOLE) $(CONFIG_RASPI_KERNEL_SERIAL_CONSOLE) $(CONFIG_RASPI_DEBUG_SERIAL_CONSOLE)),y)
## TODO: Check if both implementations are actually doing the same thing
#LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/pl011.c|common
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/serial_console.c
endif
LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/cpu_native.c|common
LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/cache64.S|common
#LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/psci_arm64.S|common
LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/generic_timer.c|common
#LIBRASPIPLAT_SRCS-$(CONFIG_ARCH_ARM_64) += $(UK_PLAT_COMMON_BASE)/arm/traps.c|common
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/start.S
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/irq_asm.S
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/raspi_info_asm.S
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/raspi_info.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/entry.S
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/mm.S
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/console.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/io.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/irq.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/lcpu.c
ifeq ($(findstring y,$(CONFIG_RASPI_LCD) $(CONFIG_RASPI_LCD)),y)
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/lfb.c
endif
ifeq ($(findstring y,$(CONFIG_RASPI_TOUCHSCREEN) $(CONFIG_RASPI_TOUCHSCREEN)),y)
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/touchscreen.c
endif
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/mbox.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/memory.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/setup.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/shutdown.c
LIBRASPIPLAT_SRCS-y += $(LIBRASPIPLAT_BASE)/time.c
LIBRASPIPLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/lcpu.c|common
LIBRASPIPLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/memory.c|common
LIBRASPIPLAT_SRCS-y += $(UK_PLAT_COMMON_BASE)/tls.c|common
LIBRASPIPLAT_SRCS-y += $(UK_PLAT_RASPI_DEF_LDS)
LIBRASPIPLAT_SRCS-$(CONFIG_FPSIMD) += $(UK_PLAT_COMMON_BASE)/arm/fp_arm64.c|isr
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/crazykev/plat-raspi.git
git@gitee.com:crazykev/plat-raspi.git
crazykev
plat-raspi
plat-raspi
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385