blob: 305c049d917bc42cc4cbdae46a92d600f81fbac7 [file] [log] [blame]
Pankaj Guptae55f6c42020-12-09 14:02:39 +05301#
2# Copyright 2018-2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#
7
8CREATE_PBL ?= ${CREATE_PBL_TOOL_PATH}/create_pbl${BIN_EXT}
Jiafei Pan0021b482022-01-20 17:37:11 +08009BYTE_SWAP ?= ${CREATE_PBL_TOOL_PATH}/byte_swap${BIN_EXT}
Pankaj Guptae55f6c42020-12-09 14:02:39 +053010
11HOST_GCC := gcc
12
13#SWAP is required for Chassis 2 platforms - LS102, ls1043 and ls1046 for QSPI
14ifeq (${SOC},ls1046a)
15SOC_NUM := 1046a
16SWAP = 1
17CH = 2
18else ifeq (${SOC},ls1043a)
19SOC_NUM := 1043a
20SWAP = 1
21CH = 2
22else ifeq (${SOC},ls1012a)
23SOC_NUM := 1012a
24SWAP = 1
25CH = 2
26else ifeq (${SOC},ls1088a)
27SOC_NUM := 1088a
28CH = 3
29else ifeq (${SOC},ls2088a)
30SOC_NUM := 2088a
31CH = 3
32else ifeq (${SOC},lx2160a)
33SOC_NUM := 2160a
34CH = 3
35else ifeq (${SOC},ls1028a)
36SOC_NUM := 1028a
37CH = 3
38else
39$(error "Check SOC Not defined in create_pbl.mk.")
40endif
41
42ifeq (${CH},2)
43
44include ${CREATE_PBL_TOOL_PATH}/pbl_ch2.mk
45
46endif #CH2
47
48ifeq (${CH},3)
49
50include ${CREATE_PBL_TOOL_PATH}/pbl_ch3.mk
51
52endif #CH3