From patchwork Thu Jan 9 10:02:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 1220277 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embedded.rocks Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" header.d=embedded.rocks header.i=@embedded.rocks header.a=rsa-sha256 header.s=default header.b=yfigymHx; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47thWt4FChz9sNx for ; Thu, 9 Jan 2020 21:03:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3052A87FC3; Thu, 9 Jan 2020 10:03:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4uERm2CrA37K; Thu, 9 Jan 2020 10:03:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1E52188020; Thu, 9 Jan 2020 10:03:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 76BCE1BF3A1 for ; Thu, 9 Jan 2020 10:03:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 70BEB86661 for ; Thu, 9 Jan 2020 10:03:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mMRUvlFCMvSS for ; Thu, 9 Jan 2020 10:03:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.141]) by whitealder.osuosl.org (Postfix) with ESMTPS id B11F486483 for ; Thu, 9 Jan 2020 10:03:12 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3B8C016006E for ; Thu, 9 Jan 2020 11:03:09 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47thWV0y7Nz6tm6; Thu, 9 Jan 2020 11:03:02 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1578564180; x=1579168981; bh=oAA70hiL/eCZQ+pfCDUaG9D8Wgshr3BX102ZJgFVlOU=; b=yfigymHx20I3 gDbp9ECLn4osnY5QHY5Q8AiaUodaZNjR1IBOfvVLDOfuPiFPDuhJeAYOxVfrpuAg 6ZdUxKyTAe5fkcHDkchoxq0JqZoaJiPPmCF9jROhwJpCsLaboQ9XjCAItk9Zk14q DNI11KfPLr11BF3VFMANE1t9AyR+z5Z9siEeCW4DNCtydt+0JyeY7faiS8SjKf2y w0gsN8KF9Dg75kTlAj+T7CwbCsNkqJBWpbZkageaQrYlTyflWnvRbQyQCF6m0+C3 3L9XnHbN+JnsCPimAXR2JuF03S3WCs5D5TnzudvDjpjiUI1SQz4M+eNqm3iBTZXr 10slKVOBbQ== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id ogw5kS1ylTUu; Thu, 9 Jan 2020 11:03:00 +0100 (CET) Received: from nzxt.fritz.box (port-92-195-3-85.dynamic.as20676.net [92.195.3.85]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Thu, 9 Jan 2020 11:03:00 +0100 (CET) From: =?utf-8?q?J=C3=B6rg_Krause?= To: buildroot@buildroot.org Date: Thu, 9 Jan 2020 11:02:55 +0100 Message-Id: <20200109100257.91010-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/imx-uuu: new host package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gary Bisson , "Yann E . MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" NXP deprecated the old mfgtools code. It has been replaced by the Universal Update Utility (uuu), also called mfgtools v3.0 although the releases are named v1.x.yy, which is quite confusing. This new tool actually resides in the same repository in the master branch whereas the old one is now in a 'linux' branch. The new tool uuu is a completely different tool than the old mfgtools. This also means, that existing mfgtools scripts will not work with the uuu tool. Therefore, it has been decided to create a new package imx-uuu [1]. Note, that uuu uses git to define a version string `GIT_VERSION`. It does so even when building from a source tarball (automatically generated by github). The problem is, that git provides the version information of Buildroot and mfgtools uses this version information to do a runtime check to detect outdated command list scripts. To fix this, we overwrite gen_ver.sh with something that simply prints a define for `GIT_VERSION` with the uuu version string (preceeded by "lib", as done in the original gen_ver.sh). [1] http://patchwork.ozlabs.org/patch/1112411/ Signed-off-by: Jörg Krause --- DEVELOPERS | 1 + package/Config.in.host | 1 + package/imx-uuu/Config.in.host | 12 ++++++++++++ package/imx-uuu/imx-uuu.hash | 3 +++ package/imx-uuu/imx-uuu.mk | 24 ++++++++++++++++++++++++ 5 files changed, 41 insertions(+) create mode 100644 package/imx-uuu/Config.in.host create mode 100644 package/imx-uuu/imx-uuu.hash create mode 100644 package/imx-uuu/imx-uuu.mk diff --git a/DEVELOPERS b/DEVELOPERS index 1f86c256a5..e1d63e17d2 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1306,6 +1306,7 @@ F: package/augeas/ F: package/bluez-alsa/ F: package/caps/ F: package/freescale-imx/imx-alsa-plugins/ +F: package/imx-uuu/ F: package/libopusenc/ F: package/libupnpp/ F: package/luv/ diff --git a/package/Config.in.host b/package/Config.in.host index 62e860d7c3..de0cdbae49 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -33,6 +33,7 @@ menu "Host utilities" source "package/imagemagick/Config.in.host" source "package/imx-mkimage/Config.in.host" source "package/imx-usb-loader/Config.in.host" + source "package/imx-uuu/Config.in.host" source "package/jq/Config.in.host" source "package/jsmin/Config.in.host" source "package/libp11/Config.in.host" diff --git a/package/imx-uuu/Config.in.host b/package/imx-uuu/Config.in.host new file mode 100644 index 0000000000..6121d5435f --- /dev/null +++ b/package/imx-uuu/Config.in.host @@ -0,0 +1,12 @@ +config BR2_PACKAGE_HOST_IMX_UUU + bool "host imx-uuu" + depends on BR2_arm + help + Freescale/NXP i.MX Chip image deploy tools (formerly + mfgtools). + + It is designed to program firmware to i.MX boards during + production. The communication is done over USB using the + Freescale UTP protocol. + + https://github.com/NXPmicro/mfgtools diff --git a/package/imx-uuu/imx-uuu.hash b/package/imx-uuu/imx-uuu.hash new file mode 100644 index 0000000000..eaf951b91a --- /dev/null +++ b/package/imx-uuu/imx-uuu.hash @@ -0,0 +1,3 @@ +# locally computed +sha256 0377bb26e4eab20e32f2daaecaa9394048ab4443f5b517acde6c27e2dc5310d5 imx-uuu-1.3.102.tar.gz +sha256 cc8d47f7b9260f6669ecd41c24554c552f17581d81ee8fc602c6d23edb8bf495 LICENSE diff --git a/package/imx-uuu/imx-uuu.mk b/package/imx-uuu/imx-uuu.mk new file mode 100644 index 0000000000..aef53bd6c3 --- /dev/null +++ b/package/imx-uuu/imx-uuu.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# imx-uuu +# +################################################################################ + +IMX_UUU_VERSION = 1.3.102 +IMX_UUU_SITE = $(call github,NXPmicro,mfgtools,uuu_$(IMX_UUU_VERSION)) +IMX_UUU_LICENSE = BSD-3-Clause +IMX_UUU_LICENSE_FILES = LICENSE +HOST_IMX_UUU_DEPENDENCIES = host-libusb host-libzip host-zlib + +# Version string generation is broken in mfgtools as it relies on git, even +# when building from a source tarball. The version string is used by mfgtools +# do a runtime check to detect outdated command list scripts. We overwrite +# gen_ver.sh with something that simply prints a define for GIT_VERSION with +# the mfgtools version (preceeded by "lib", as done in the original gen_ver.sh). +define HOST_IMX_UUU_OVERWRITE_GEN_VER_SH + echo '#!/bin/sh' > $(@D)/libuuu/gen_ver.sh + echo 'echo "#define GIT_VERSION \"lib$(IMX_UUU_VERSION)\"" > $$1' >> $(@D)/libuuu/gen_ver.sh +endef +HOST_IMX_UUU_POST_PATCH_HOOKS += HOST_IMX_UUU_OVERWRITE_GEN_VER_SH + +$(eval $(host-cmake-package))