1
0
mirror of https://github.com/cjdelisle/openwrt.git synced 2025-10-09 13:20:55 +00:00
Files
openwrt/package/boot/uboot-stm32/Makefile
Thomas Richard d72157f4e3 uboot-stm32: bump to 2025.07
Now devicetrees imported from Linux kernel release are used, so update
DEVICE_TREE to use correct path. A patch was backported to increase
SYS_MALLOC_F_LEN for stm32mp13 (more alloc space is needed due to SCMI
update to protocol v2.0).

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/19779
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-08-17 19:02:33 +02:00

75 lines
1.5 KiB
Makefile

#
# Copyright (C) 2024 Bootlin
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_VERSION:=2025.07
PKG_RELEASE:=1
PKG_HASH:=0f933f6c5a426895bf306e93e6ac53c60870e4b54cda56d95211bec99e63bec7
PKG_MAINTAINER:=Thomas Richard <thomas.richard@bootlin.com>
UBOOT_USE_INTREE_DTC:=1
include $(INCLUDE_DIR)/u-boot.mk
include $(INCLUDE_DIR)/package.mk
define U-Boot/Default
BUILD_TARGET:=stm32
UBOOT_IMAGE:=u-boot.bin u-boot.dtb
endef
define U-Boot/stm32mp13
BUILD_SUBTARGET:=stm32mp1
UBOOT_CONFIG:=stm32mp13
endef
define U-Boot/stm32mp15
BUILD_SUBTARGET:=stm32mp1
UBOOT_CONFIG:=stm32mp15
endef
define U-Boot/stm32mp135f-dk
$(call U-Boot/stm32mp13)
NAME:=STM32MP135F-DK
DEVICE_TREE:=stm32mp135f-dk
endef
define U-Boot/stm32mp157c-dk2
$(call U-Boot/stm32mp15)
NAME:=STM32MP157C-DK2
DEVICE_TREE:=stm32mp157c-dk2
endef
define U-Boot/stm32mp157c-dk2-scmi
$(call U-Boot/stm32mp15)
NAME:=STM32MP157C-DK2 (SCMI)
DEVICE_TREE:=stm32mp157c-dk2-scmi
endef
UBOOT_TARGETS := \
stm32mp135f-dk \
stm32mp157c-dk2 \
stm32mp157c-dk2-scmi
UBOOT_MAKE_FLAGS += DEVICE_TREE=st/$(DEVICE_TREE)
UBOOT_CUSTOMIZE_CONFIG := \
--disable TOOLS_MKEFICAPSULE
define Build/InstallDev
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
$(foreach img,$(UBOOT_IMAGE), \
$(CP) $(PKG_BUILD_DIR)/$(img) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(img); \
)
endef
define Package/u-boot/install/default
endef
$(eval $(call BuildPackage/U-Boot))