[openwrt/openwrt] uboot-tools: add stub package skeleton

LEDE Commits lede-commits at lists.infradead.org
Sat Mar 22 07:45:32 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/96cb1c88402aab9421f05679d7a3206d45df5835

commit 96cb1c88402aab9421f05679d7a3206d45df5835
Author: Scott Mercer <TheRootEd24 at gmail.com>
AuthorDate: Sun Mar 16 23:40:13 2025 -0400

    uboot-tools: add stub package skeleton
    
    Add uboot-tools stub package skeleton which will replace uboot-envtools
    and also provide target-builds for other U-Boot tools.
    
    Signed-off-by: Scott Mercer <TheRootEd24 at gmail.com>
---
 package/boot/uboot-tools/Makefile | 49 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/package/boot/uboot-tools/Makefile b/package/boot/uboot-tools/Makefile
new file mode 100644
index 0000000000..03917bd949
--- /dev/null
+++ b/package/boot/uboot-tools/Makefile
@@ -0,0 +1,49 @@
+include $(TOPDIR)/rules.mk
+
+PKG_DISTNAME:=u-boot
+PKG_VERSION:=2025.01
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:= \
+	https://ftp.denx.de/pub/u-boot \
+	https://mirror.cyberbits.eu/u-boot \
+	ftp://ftp.denx.de/pub/u-boot
+PKG_HASH:=cdef7d507c93f1bbd9f015ea9bc21fa074268481405501945abc6f854d5b686f
+PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION)
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_DISTNAME)-$(PKG_VERSION)
+
+PKG_BUILD_DEPENDS:=fstools
+
+PKG_LICENSE:=GPL-2.0 GPL-2.0+
+PKG_LICENSE_FILES:=Licenses/README
+
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/uboot-tools
+	SECTION:=utils
+	CATEGORY:=Utilities
+	SUBMENU:=Boot Loaders
+	TITLE:=U-Boot bootloader Tools
+	URL:=http://www.denx.de/wiki/U-Boot
+endef
+
+define Package/uboot-tools/description
+	U-Boot tools are a collection of utilities designed
+	to work with the U-Boot bootloader,
+endef
+
+define Build/Configure
+	$(MAKE) -C $(PKG_BUILD_DIR) tools-only_defconfig
+	$(MAKE) -C $(PKG_BUILD_DIR) syncconfig
+endef
+
+MAKE_FLAGS += \
+	ARCH="sandbox" \
+	TARGET_CFLAGS="$(TARGET_CFLAGS)" \
+	TARGET_LDFLAGS="$(TARGET_LDFLAGS)"
+
+define Build/Compile
+endef




More information about the lede-commits mailing list