create_pbl.mk 875 B

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