diff --git a/plat/marvell/armada/a8k/a70x0/platform.mk b/plat/marvell/armada/a8k/a70x0/platform.mk index a77e34985..39eb71254 100644 --- a/plat/marvell/armada/a8k/a70x0/platform.mk +++ b/plat/marvell/armada/a8k/a70x0/platform.mk @@ -14,6 +14,7 @@ DOIMAGE_SEC := tools/doimage/secure/sec_img_7K.cfg MARVELL_MOCHI_DRV := drivers/marvell/mochi/apn806_setup.c +BOARD_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST))) include plat/marvell/armada/a8k/common/a8k_common.mk include plat/marvell/armada/common/marvell_common.mk diff --git a/plat/marvell/armada/a8k/a70x0_amc/platform.mk b/plat/marvell/armada/a8k/a70x0_amc/platform.mk index a77e34985..39eb71254 100644 --- a/plat/marvell/armada/a8k/a70x0_amc/platform.mk +++ b/plat/marvell/armada/a8k/a70x0_amc/platform.mk @@ -14,6 +14,7 @@ DOIMAGE_SEC := tools/doimage/secure/sec_img_7K.cfg MARVELL_MOCHI_DRV := drivers/marvell/mochi/apn806_setup.c +BOARD_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST))) include plat/marvell/armada/a8k/common/a8k_common.mk include plat/marvell/armada/common/marvell_common.mk diff --git a/plat/marvell/armada/a8k/a80x0/platform.mk b/plat/marvell/armada/a8k/a80x0/platform.mk index 56c4117d6..115dd4a82 100644 --- a/plat/marvell/armada/a8k/a80x0/platform.mk +++ b/plat/marvell/armada/a8k/a80x0/platform.mk @@ -14,7 +14,7 @@ DOIMAGE_SEC := tools/doimage/secure/sec_img_8K.cfg MARVELL_MOCHI_DRV := drivers/marvell/mochi/apn806_setup.c +BOARD_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST))) include plat/marvell/armada/a8k/common/a8k_common.mk include plat/marvell/armada/common/marvell_common.mk -PLAT_INCLUDES += -Iplat/marvell/armada/a8k/a80x0/board diff --git a/plat/marvell/armada/a8k/a80x0_mcbin/platform.mk b/plat/marvell/armada/a8k/a80x0_mcbin/platform.mk index d962b3d2a..115dd4a82 100644 --- a/plat/marvell/armada/a8k/a80x0_mcbin/platform.mk +++ b/plat/marvell/armada/a8k/a80x0_mcbin/platform.mk @@ -14,6 +14,7 @@ DOIMAGE_SEC := tools/doimage/secure/sec_img_8K.cfg MARVELL_MOCHI_DRV := drivers/marvell/mochi/apn806_setup.c +BOARD_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST))) include plat/marvell/armada/a8k/common/a8k_common.mk include plat/marvell/armada/common/marvell_common.mk diff --git a/plat/marvell/armada/a8k/common/a8k_common.mk b/plat/marvell/armada/a8k/common/a8k_common.mk index 471bc82c6..8731aa64b 100644 --- a/plat/marvell/armada/a8k/common/a8k_common.mk +++ b/plat/marvell/armada/a8k/common/a8k_common.mk @@ -7,9 +7,8 @@ include tools/marvell/doimage/doimage.mk PLAT_FAMILY := a8k -PLAT_FAMILY_BASE := plat/marvell/armada/$(PLAT_FAMILY) PLAT_INCLUDE_BASE := include/plat/marvell/armada/$(PLAT_FAMILY) -PLAT_COMMON_BASE := $(PLAT_FAMILY_BASE)/common +PLAT_COMMON_BASE := plat/marvell/armada/a8k/common MARVELL_DRV_BASE := drivers/marvell MARVELL_COMMON_BASE := plat/marvell/armada/common @@ -52,15 +51,15 @@ MARVELL_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ drivers/arm/gic/v2/gicv2_helpers.c \ plat/common/plat_gicv2.c -PLAT_INCLUDES := -I$(PLAT_FAMILY_BASE)/$(PLAT) \ +PLAT_INCLUDES := -I$(BOARD_DIR) \ -I$(PLAT_COMMON_BASE)/include \ -I$(PLAT_INCLUDE_BASE)/common PLAT_BL_COMMON_SOURCES := $(PLAT_COMMON_BASE)/aarch64/a8k_common.c \ drivers/ti/uart/aarch64/16550_console.S -BLE_PORTING_SOURCES := $(PLAT_FAMILY_BASE)/$(PLAT)/board/dram_port.c \ - $(PLAT_FAMILY_BASE)/$(PLAT)/board/marvell_plat_config.c +BLE_PORTING_SOURCES := $(BOARD_DIR)/board/dram_port.c \ + $(BOARD_DIR)/board/marvell_plat_config.c MARVELL_MOCHI_DRV += $(MARVELL_DRV_BASE)/mochi/cp110_setup.c @@ -87,7 +86,7 @@ MARVELL_DRV := $(MARVELL_DRV_BASE)/io_win.c \ $(MARVELL_DRV_BASE)/comphy/phy-comphy-cp110.c \ $(MARVELL_DRV_BASE)/mc_trustzone/mc_trustzone.c -BL31_PORTING_SOURCES := $(PLAT_FAMILY_BASE)/$(PLAT)/board/marvell_plat_config.c +BL31_PORTING_SOURCES := $(BOARD_DIR)/board/marvell_plat_config.c ifeq ($(SYSTEM_POWER_SUPPORT),1) BL31_PORTING_SOURCES += $(PLAT_FAMILY_BASE)/$(PLAT)/board/system_power.c diff --git a/plat/marvell/armada/common/mss/mss_common.mk b/plat/marvell/armada/common/mss/mss_common.mk index 050d88d2a..4ab43596c 100644 --- a/plat/marvell/armada/common/mss/mss_common.mk +++ b/plat/marvell/armada/common/mss/mss_common.mk @@ -13,7 +13,7 @@ BL2_SOURCES += $(MSS_SOURCE)/mss_scp_bootloader.c \ $(PLAT_MARVELL)/common/plat_delay_timer.c \ drivers/delay_timer/delay_timer.c \ $(MARVELL_DRV) \ - $(PLAT_FAMILY_BASE)/$(PLAT)/board/marvell_plat_config.c + $(BOARD_DIR)/board/marvell_plat_config.c BL31_SOURCES += $(MSS_SOURCE)/mss_ipc_drv.c