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