Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #
  2. # Copyright (C) 2024 Bootlin
  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:=2025.10
  9. PKG_RELEASE:=1
  10. PKG_HASH:=b4f032848e56cc8f213ad59f9132c084dbbb632bc29176d024e58220e0efdf4a
  11. PKG_MAINTAINER:=Thomas Richard <[email protected]>
  12. UBOOT_USE_INTREE_DTC:=1
  13. include $(INCLUDE_DIR)/u-boot.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. define U-Boot/Default
  16. BUILD_TARGET:=stm32
  17. UBOOT_IMAGE:=u-boot.bin u-boot.dtb
  18. endef
  19. define U-Boot/stm32mp13
  20. BUILD_SUBTARGET:=stm32mp1
  21. UBOOT_CONFIG:=stm32mp13
  22. endef
  23. define U-Boot/stm32mp15
  24. BUILD_SUBTARGET:=stm32mp1
  25. UBOOT_CONFIG:=stm32mp15
  26. endef
  27. define U-Boot/stm32mp135f-dk
  28. $(call U-Boot/stm32mp13)
  29. NAME:=STM32MP135F-DK
  30. DEVICE_TREE:=stm32mp135f-dk
  31. endef
  32. define U-Boot/stm32mp157c-dk2
  33. $(call U-Boot/stm32mp15)
  34. NAME:=STM32MP157C-DK2
  35. DEVICE_TREE:=stm32mp157c-dk2
  36. endef
  37. define U-Boot/stm32mp157c-dk2-scmi
  38. $(call U-Boot/stm32mp15)
  39. NAME:=STM32MP157C-DK2 (SCMI)
  40. DEVICE_TREE:=stm32mp157c-dk2-scmi
  41. endef
  42. UBOOT_TARGETS := \
  43. stm32mp135f-dk \
  44. stm32mp157c-dk2 \
  45. stm32mp157c-dk2-scmi
  46. UBOOT_MAKE_FLAGS += DEVICE_TREE=st/$(DEVICE_TREE)
  47. UBOOT_CUSTOMIZE_CONFIG := \
  48. --disable TOOLS_MKEFICAPSULE
  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. define Package/u-boot/install/default
  56. endef
  57. $(eval $(call BuildPackage/U-Boot))