2024-09-26 14:24:26 +00:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2024-11-28 17:05:29 +00:00
|
|
|
PKG_VERSION:=2024.10
|
2024-09-26 14:24:26 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
2024-11-28 17:05:29 +00:00
|
|
|
PKG_HASH:=b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0
|
2024-09-26 14:24:26 +00:00
|
|
|
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/stm32mp135f-dk
|
|
|
|
$(call U-Boot/stm32mp13)
|
|
|
|
NAME:=STM32MP135F-DK
|
|
|
|
DEVICE_TREE:=stm32mp135f-dk
|
|
|
|
endef
|
|
|
|
|
|
|
|
UBOOT_TARGETS := stm32mp135f-dk
|
|
|
|
|
|
|
|
UBOOT_MAKE_FLAGS += DEVICE_TREE=$(DEVICE_TREE)
|
|
|
|
|
2024-11-28 17:05:29 +00:00
|
|
|
UBOOT_CUSTOMIZE_CONFIG := \
|
|
|
|
--disable TOOLS_MKEFICAPSULE
|
|
|
|
|
2024-09-26 14:24:26 +00:00
|
|
|
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))
|