Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #
  2. # Copyright (C) 2013-2014 OpenWrt.org
  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_VERSION:=2022.01
  9. PKG_RELEASE:=5
  10. PKG_HASH:=81b4543227db228c03f8a1bf5ddbc813b0bb8f6555ce46064ef721a6fc680413
  11. include $(INCLUDE_DIR)/u-boot.mk
  12. include $(INCLUDE_DIR)/package.mk
  13. define U-Boot/Default
  14. BUILD_TARGET:=imx
  15. UBOOT_IMAGE:=u-boot.imx
  16. endef
  17. define U-Boot/apalis_imx6
  18. NAME:=Toradex Apalis
  19. UBOOT_IMAGE:=SPL u-boot.img u-boot-with-spl.imx
  20. UBOOT_MAKE_FLAGS+=SPL u-boot.img u-boot-with-spl.imx
  21. BUILD_SUBTARGET:=cortexa9
  22. BUILD_DEVICES:=toradex_apalis
  23. endef
  24. define U-Boot/mx6cuboxi
  25. NAME:=SolidRun Cubox-i boards
  26. UBOOT_IMAGE:=SPL u-boot-dtb.img
  27. UBOOT_MAKE_FLAGS+=SPL u-boot-dtb.img
  28. BUILD_SUBTARGET:=cortexa9
  29. BUILD_DEVICES:=solidrun_cubox-i
  30. endef
  31. define U-Boot/pico-pi-imx7d
  32. NAME:=TechNexion PICO-PI-IMX7D
  33. UBOOT_IMAGE:=SPL u-boot-dtb.img
  34. UBOOT_MAKE_FLAGS+=SPL u-boot-dtb.img
  35. BUILD_SUBTARGET:=cortexa7
  36. BUILD_DEVICES:=technexion_imx7d-pico-pi
  37. endef
  38. define U-Boot/wandboard
  39. NAME:=Wandboard Dual Lite/Quad/Solo
  40. BUILD_SUBTARGET:=cortexa9
  41. BUILD_DEVICES:=wandboard_dual
  42. endef
  43. UBOOT_TARGETS := \
  44. apalis_imx6 \
  45. mx6cuboxi \
  46. pico-pi-imx7d \
  47. wandboard
  48. UBOOT_MAKE_FLAGS += u-boot.imx
  49. define Build/InstallDev
  50. $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
  51. $(foreach img,$(UBOOT_IMAGE), \
  52. $(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
  53. )
  54. endef
  55. $(eval $(call BuildPackage/U-Boot))