Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #
  2. # Copyright (C) 2016 Jiang Yutang <[email protected]>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=uboot-layerscape
  9. PKG_VERSION:=lsdk-1903
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot
  13. PKG_SOURCE_VERSION:=80b2d2bc4cab0a8363c9b7eba8064b1795f12670
  14. PKG_MIRROR_HASH:=5c467af40b4479f0ea16697ab54602bed815a23212293184943dca8a3a406d5c
  15. include $(INCLUDE_DIR)/u-boot.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. define U-Boot/Default
  18. BUILD_TARGET:=layerscape
  19. BUILD_SUBTARGET:=armv8_64b
  20. BUILD_DEVICES:=$(1)
  21. UBOOT_IMAGE:=u-boot-dtb.bin
  22. ENV_SIZE:=0x2000
  23. endef
  24. define U-Boot/ls1012ardb
  25. NAME:=NXP LS1012ARDB
  26. UBOOT_CONFIG:=ls1012ardb_tfa
  27. ENV_SIZE:=0x40000
  28. endef
  29. define U-Boot/ls1012afrwy
  30. NAME:=NXP LS1012AFRWY
  31. UBOOT_CONFIG:=ls1012afrwy_tfa
  32. ENV_SIZE:=0x10000
  33. endef
  34. define U-Boot/ls1043ardb
  35. NAME:=NXP LS1043ARDB
  36. UBOOT_CONFIG:=ls1043ardb_tfa
  37. endef
  38. define U-Boot/ls1043ardb-sdboot
  39. NAME:=NXP LS1043ARDB SD Card Boot
  40. UBOOT_CONFIG:=ls1043ardb_tfa
  41. endef
  42. define U-Boot/ls1046ardb
  43. NAME:=NXP LS1046ARDB
  44. UBOOT_CONFIG:=ls1046ardb_tfa
  45. endef
  46. define U-Boot/ls1046ardb-sdboot
  47. NAME:=NXP LS1046ARDB SD Card Boot
  48. UBOOT_CONFIG:=ls1046ardb_tfa
  49. endef
  50. define U-Boot/ls1088ardb
  51. NAME:=NXP LS1088ARDB
  52. UBOOT_CONFIG:=ls1088ardb_tfa
  53. endef
  54. define U-Boot/ls1088ardb-sdboot
  55. NAME:=NXP LS1088ARDB SD Card Boot
  56. UBOOT_CONFIG:=ls1088ardb_tfa
  57. endef
  58. define U-Boot/ls2088ardb
  59. NAME:=NXP LS2088ARDB
  60. UBOOT_CONFIG:=ls2088ardb_tfa
  61. endef
  62. define U-Boot/ls1021atwr
  63. NAME:=NXP LS1021ATWR
  64. BUILD_SUBTARGET:=armv7
  65. UBOOT_CONFIG:=ls1021atwr_nor
  66. ENV_SIZE:=0x20000
  67. endef
  68. define U-Boot/ls1021atwr-sdboot
  69. NAME:=NXP LS1021ATWR SD Card Boot
  70. BUILD_SUBTARGET:=armv7
  71. UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
  72. UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
  73. ENV_SIZE:=0x20000
  74. endef
  75. define U-Boot/ls1021aiot-sdboot
  76. NAME:=NXP LS1021AIOT SD Card Boot
  77. BUILD_SUBTARGET:=armv7
  78. UBOOT_CONFIG:=ls1021aiot_sdcard
  79. UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
  80. ENV_SIZE:=0x2000
  81. endef
  82. UBOOT_TARGETS := \
  83. ls1012ardb \
  84. ls1012afrwy \
  85. ls1043ardb \
  86. ls1043ardb-sdboot \
  87. ls1046ardb \
  88. ls1046ardb-sdboot \
  89. ls1088ardb \
  90. ls1088ardb-sdboot \
  91. ls2088ardb \
  92. ls1021atwr \
  93. ls1021atwr-sdboot \
  94. ls1021aiot-sdboot
  95. define Build/InstallDev
  96. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  97. $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
  98. $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
  99. $(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \
  100. -o $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot-env.bin \
  101. files/$(BUILD_VARIANT)-uEnv.txt
  102. endef
  103. define Package/u-boot/install/default
  104. endef
  105. $(eval $(call BuildPackage/U-Boot))