platform.mk 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (c) 2016-2023, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. include drivers/arm/gic/v2/gicv2.mk
  7. ARM_CORTEX_A12 := yes
  8. ARM_ARCH_MAJOR := 7
  9. RK_PLAT := plat/rockchip
  10. RK_PLAT_SOC := ${RK_PLAT}/${PLAT}
  11. RK_PLAT_COMMON := ${RK_PLAT}/common
  12. DISABLE_BIN_GENERATION := 1
  13. PLAT_INCLUDES := -I${RK_PLAT_COMMON}/ \
  14. -I${RK_PLAT_COMMON}/include/ \
  15. -I${RK_PLAT_COMMON}/aarch32/ \
  16. -I${RK_PLAT_COMMON}/drivers/pmu/ \
  17. -I${RK_PLAT_SOC}/ \
  18. -I${RK_PLAT_SOC}/drivers/pmu/ \
  19. -I${RK_PLAT_SOC}/drivers/secure/ \
  20. -I${RK_PLAT_SOC}/drivers/soc/ \
  21. -I${RK_PLAT_SOC}/include/ \
  22. -I${RK_PLAT_SOC}/include/shared/ \
  23. RK_GIC_SOURCES := ${GICV2_SOURCES} \
  24. plat/common/plat_gicv2.c \
  25. ${RK_PLAT}/common/rockchip_gicv2.c
  26. PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
  27. lib/bl_aux_params/bl_aux_params.c \
  28. plat/common/aarch32/crash_console_helpers.S \
  29. plat/common/plat_psci_common.c
  30. PLAT_BL_COMMON_SOURCES += lib/xlat_tables/xlat_tables_common.c \
  31. lib/xlat_tables/aarch32/xlat_tables.c
  32. BL32_SOURCES += ${RK_GIC_SOURCES} \
  33. drivers/arm/cci/cci.c \
  34. drivers/ti/uart/aarch32/16550_console.S \
  35. drivers/delay_timer/delay_timer.c \
  36. drivers/delay_timer/generic_delay_timer.c \
  37. lib/cpus/aarch32/cortex_a12.S \
  38. ${RK_PLAT_COMMON}/aarch32/plat_helpers.S \
  39. ${RK_PLAT_COMMON}/params_setup.c \
  40. ${RK_PLAT_COMMON}/aarch32/pmu_sram_cpus_on.S \
  41. ${RK_PLAT_COMMON}/plat_pm.c \
  42. ${RK_PLAT_COMMON}/plat_topology.c \
  43. ${RK_PLAT_COMMON}/aarch32/platform_common.c \
  44. ${RK_PLAT_COMMON}/rockchip_sip_svc.c \
  45. ${RK_PLAT_SOC}/plat_sip_calls.c \
  46. ${RK_PLAT_SOC}/drivers/pmu/pmu.c \
  47. ${RK_PLAT_SOC}/drivers/secure/secure.c \
  48. ${RK_PLAT_SOC}/drivers/soc/soc.c \
  49. include lib/coreboot/coreboot.mk
  50. include lib/libfdt/libfdt.mk
  51. $(eval $(call add_define,PLAT_SP_MIN_EXTRA_LD_SCRIPT))
  52. # Do not enable SVE
  53. ENABLE_SVE_FOR_NS := 0
  54. WORKAROUND_CVE_2017_5715 := 0
  55. ifeq (${AARCH32_SP}, none)
  56. $(error Variable AARCH32_SP has to be set for AArch32)
  57. endif