From 88396b6c427cb58f2e7c83b2d9a71048197b1553 Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Sat, 21 Dec 2024 15:46:08 +0100 Subject: [PATCH] imx-uuc: add package 'sdimage' and 'ufb' This adds two small tools useful only on the Freescale/NXP i.MX23/28 devices, so it is bound to the mxs target: - sdimage: helper to write the required header for the bootstream, e.g. during bootloader update - ufb: can be used in conjunction with NXP's host side mfgtool Signed-off-by: Michael Heimpold --- utils/imx-uuc/Makefile | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 utils/imx-uuc/Makefile diff --git a/utils/imx-uuc/Makefile b/utils/imx-uuc/Makefile new file mode 100644 index 0000000000..72b1acc3b6 --- /dev/null +++ b/utils/imx-uuc/Makefile @@ -0,0 +1,67 @@ +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=imx-uuc +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/nxp-imx/imx-uuc.git +PKG_SOURCE_DATE:=2024-12-18 +PKG_SOURCE_VERSION:=25f65e10368aa07056f9536e88ed911ac7f38f99 +PKG_MIRROR_HASH:=ba5462f5a1ec1d308545b4d1684c63551855eead7ee98f67c7c8e4ad2a8a56ae + +PKG_LICENSE:=GPL-2.0-only +PKG_LICENSE_FILES:=LICENSE + +PKG_MAINTAINER:=Michael Heimpold + +include $(INCLUDE_DIR)/package.mk + +define Package/imx-uuc/Default + SECTION:=utils + CATEGORY:=Utilities + URL:=https://github.com/nxp-imx/imx-uuc.git + DEPENDS:=@TARGET_mxs +endef + +define Package/sdimage + $(call Package/imx-uuc/Default) + TITLE:=Tool to install a bootstream on SD card/eMMC +endef + +define Package/sdimage/description + This package contains the 'sdimage' tool which can be used to write/update + a bootstream on NXP i.MX23/28 devices. Such bootstreams are placed in a + special partition on SD card/eMMC and need to be prefixed with an + additional header. A typical bootstream is e.g. u-boot.sb. +endef + +define Package/ufb + $(call Package/imx-uuc/Default) + TITLE:=On-target companion tool to interact with NXP's mfgtool. +endef + +define Package/ufb/description + This package contains the 'ufb' tool which acts + as companion daemon to NXP's mfgtool on host side. +endef + +define Build/Configure +endef + +define Package/sdimage/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sdimage $(1)/usr/bin/sdimage +endef + +define Package/ufb/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ufb $(1)/usr/bin/ufb +endef + +$(eval $(call BuildPackage,sdimage)) +$(eval $(call BuildPackage,ufb)) -- 2.30.2