xref: /rk3399_ARM-atf/tools/nxp/create_pbl/create_pbl.mk (revision b47dddd061e92054c3b2096fc8aa9688bfef68d6)
1#
2# Copyright 2018-2020 NXP
3# Copyright (c) 2025, Arm Limited and Contributors. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7#
8
9CREATE_PBL	?=	${CREATE_PBL_TOOL_PATH}/create_pbl$(.exe)
10BYTE_SWAP	?=	${CREATE_PBL_TOOL_PATH}/byte_swap$(.exe)
11
12HOST_GCC	:= gcc
13
14#SWAP is required for Chassis 2 platforms - LS102, ls1043 and ls1046 for QSPI
15ifeq (${SOC},ls1046a)
16SOC_NUM :=	1046a
17SWAP	= 	1
18CH	=	2
19else ifeq (${SOC},ls1043a)
20SOC_NUM :=	1043a
21SWAP	= 	1
22CH	=	2
23else ifeq (${SOC},ls1012a)
24SOC_NUM :=	1012a
25SWAP	= 	1
26CH	=	2
27else ifeq (${SOC},ls1088a)
28SOC_NUM :=	1088a
29CH	=	3
30else ifeq (${SOC},ls2088a)
31SOC_NUM :=	2088a
32CH	=	3
33else ifeq (${SOC},lx2160a)
34SOC_NUM :=	2160a
35CH	=	3
36else ifeq (${SOC},ls1028a)
37SOC_NUM :=	1028a
38CH	=	3
39else
40$(error "Check SOC Not defined in create_pbl.mk.")
41endif
42
43ifeq (${CH},2)
44
45include ${CREATE_PBL_TOOL_PATH}/pbl_ch2.mk
46
47endif #CH2
48
49ifeq (${CH},3)
50
51include ${CREATE_PBL_TOOL_PATH}/pbl_ch3.mk
52
53endif #CH3
54