From patchwork Sat Jun 4 11:41:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2001 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2A85B3F03D for ; Sat, 4 Jun 2022 13:42:02 +0200 (CEST) Received: by mail-ej1-f69.google.com with SMTP id nb10-20020a1709071c8a00b006e8f89863cesf4949608ejc.18 for ; Sat, 04 Jun 2022 04:42:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654342922; cv=pass; d=google.com; s=arc-20160816; b=nGeB5K7b4yiR41X8/ah3j9CuzYzoHXdsprVjwkdUBhJVw8m3apGlHaotJJKQAGye3I IMgg7M9ereSmCrAVhmBA6+x6kU+QXh20c5CGW16wp/xSRPoqDN8vSoM7vLZtj//Wmooh KmaMcXJ6TCg7y53yXukhTYsBZYVavY+WEJmYBrOMIqGJ1lwDOAF2aPv4m+/12RbvvzIK fXzHGrO3j4mMKb2lvyX0Rg0rHH2YCbiMpjex1dyuw8sj1GwPkCteqPLvAh/I5TRBvKmY vxu4hO60Kku8Zvkot3Ts1jfj2z6d0qbObMTThgWTaL65fRUViLchZivk09FRrqRCN9NS 3irQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=CHXG0kbuS7QGLcV0MfAVlMGiHO0jFJVgEf9Fc5RyTEE=; b=f1PWAuDrQXThEbBIrUx1rkR5YxqpfGtz0VKuTdHbwYAoC1KyDosLdZ0t3FTDVogH62 b0px/D1h/WBFhpFp1vP7TQ5CCG+fcnpu2vwDiHISkRmZuy5j6xIi7WF68SD7I2z4iBtz b0LPhFAZMOKj++/654A19uCbT59/cRP/s4vfpAzygqj0ednV6SJaLIUti8Xh41VIGX4k i3N+zqwsAuu9c1+Q7XtjhscusLkgKY/5xatNIRs/1qP7Tst96LQae+lVq6Ev9DGMbgRM Xfp/ui8H7LMjg7ckj5VBJQNuutE/ohp8rJqfC2wItC8q3IIN7HCIz2hP0eqcltrO9irX +0qA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EKSOlQIH; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=CHXG0kbuS7QGLcV0MfAVlMGiHO0jFJVgEf9Fc5RyTEE=; b=qavBlIZrw/c6hCJ3/m4MQpO9teV9kY59TSNLwdigjHTfaE0gTWdNQoh0w52ESesn8Z Ohei6igvVynBOkMNGK1fZds35ExbFUogq2JCfdNJ5DGUAEuhxlr9uAa7fdSPILV4/oCt 3lzjTeL03tVf73yY2vEq347KOf1O7qM3PllWc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=CHXG0kbuS7QGLcV0MfAVlMGiHO0jFJVgEf9Fc5RyTEE=; b=IaYY6ZzYCeeKYQpaNvpoTya+Utf8p7Co/LNFu9d5hvcD2cMycTYuFk0fRe7VlABRSf KbwiAq1RU2PQt1l5y/ZnB6AXacxhI1Z5wCD3rMwRnKEhR8imHlpg/lL4iIGj5kVV50MX 6O717D24FaPrxR89fWfw0QKqkSv07QcvAq/ypA9FP0ZO/9TbaywcXnJ+iIpiX9ZvDgAn QyX1FEeka1apwoe2MAKaQMvReQKdkWUNt2ZBA/C+ozbApDAQVSi3xSpc4fURqM0ihtII NVXW1jWQA+Oi4f6H7iLAPORZdpNUtlM3y7PlOWpWz4Enz5klgqg0PXcUJkq4oIlKvNz4 VDbg== X-Gm-Message-State: AOAM531qht+6c4MtE83CjaYNsyxBtSVLa4Hl90URpzgITFrFVQf9rQQ3 cMmzqFGPoEE2+Ji3/xB8xtJKQ1CP X-Google-Smtp-Source: ABdhPJzFDvx5JINjufoC5gyXxLpKA3Xa+Ir2wbZB72jmLfG0PrfkeYEqm8+bZqBWREOiSvVZdtXpFw== X-Received: by 2002:a05:6402:5193:b0:42e:2569:652c with SMTP id q19-20020a056402519300b0042e2569652cmr10711169edd.73.1654342921774; Sat, 04 Jun 2022 04:42:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:3fc5:b0:6fe:fc5b:a579 with SMTP id k5-20020a1709063fc500b006fefc5ba579ls1669278ejj.10.gmail; Sat, 04 Jun 2022 04:42:00 -0700 (PDT) X-Received: by 2002:a17:907:c20:b0:6ff:9e32:25d8 with SMTP id ga32-20020a1709070c2000b006ff9e3225d8mr12943961ejc.62.1654342920485; Sat, 04 Jun 2022 04:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654342920; cv=none; d=google.com; s=arc-20160816; b=EYm7krYgbx375N7vtPwfsnRiilsmRQI74z5s26g5/CarmKBSM4JbsiKIRM83j8z/9L 34coZvBoDRdCMG/LXbbBsdFOdtca2S/bckM+wBXSlttEvoskquDoNE0LHK9kCjUxnGe5 LgF38L5OuxWTeNOkTmWRUe6jRHviJVIDmaW1z+Dn1JOa3yeZW++MLSAPSlRK5szncpE6 6Wy3BaA/CF/Z1jdg+X9Cb0bjpJCFgMdGoDz8mhXdUVee2jNbYnssRUUn9DpVuzk7+c4m c4bQtWEnnGSNauZJzkiayXFVZ54D1LYUQDhCwA0mOfvvoSLP0J966EEsVam/JsfmFXZm 81qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=iknciH7m6bAvBYsbIszcVvq68btt9kflyA23zH/7LzE=; b=zrd6KhkdxnnesERNYGh2OCGvUXMIsEWviWufvtKBCy93Oxzd1nQVtR52msEWEIa0fB G5V8llFgfylChR6CBy9URi0Z3ymUuKMSsxf3aqtPqs2Vo0q913SYvSgIgBo3YjzlBA5r imzPaftJL9+SNujaW6PFZi1Sx5KEy2ZteEmm7/ug79hyz3R7Os0MFgOMWLlIMk6Br3eV nqnYcWFW8dseG6rWHsGB+mH+xlhv7JrSKKbiRHuDBU+G2WyyplVC/WXr4iz+m2lErRm+ kPF+y4QMP0dF8TdFXfXUdeMCQb9RASpGNEX0r0vJ12wkuMgCd3Iao0ohJgKihVdtqOwR 4TQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EKSOlQIH; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id w17-20020a170907271100b0070a405f32a6sor3645720ejk.94.2022.06.04.04.42.00 for (Google Transport Security); Sat, 04 Jun 2022 04:42:00 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:629a:b0:6d7:b33e:43f4 with SMTP id nd26-20020a170907629a00b006d7b33e43f4mr13050515ejc.149.1654342919915; Sat, 04 Jun 2022 04:41:59 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.retail.telecomitalia.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id a9-20020a50ff09000000b0042fb3badd48sm1285899edu.9.2022.06.04.04.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jun 2022 04:41:59 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Cc: dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com Subject: [PATCH 1/3] package/uuu: new package Date: Sat, 4 Jun 2022 13:41:53 +0200 Message-Id: <20220604114155.1647777-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EKSOlQIH; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , UUU (Universal Update Utility) is a Freescale/NXP I.MX Chip image deploy tools. It is an evolution of MFGTools (aka MFGTools v3). For this and for backward compatibility we have created a new package instead of updating the mfgtools package. Signed-off-by: Dario Binacchi --- DEVELOPERS | 3 +++ package/Config.in.host | 1 + package/uuu/Config.in.host | 18 ++++++++++++++++++ package/uuu/readme.txt | 13 +++++++++++++ package/uuu/uuu.hash | 4 ++++ package/uuu/uuu.mk | 19 +++++++++++++++++++ 6 files changed, 58 insertions(+) create mode 100644 package/uuu/Config.in.host create mode 100644 package/uuu/readme.txt create mode 100644 package/uuu/uuu.hash create mode 100644 package/uuu/uuu.mk diff --git a/DEVELOPERS b/DEVELOPERS index 71cc3da6d70b..191acbd97333 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -650,6 +650,9 @@ F: package/lua-cjson/ F: package/luaexpat/ F: package/xinetd/ +N: Dario Binacchi +F: package/uuu/ + N: Dario Binacchi F: package/davinci-bootcount/ F: package/libmnl/ diff --git a/package/Config.in.host b/package/Config.in.host index cd1c34b5a3d9..d00547d324a5 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -96,6 +96,7 @@ menu "Host utilities" source "package/uboot-tools/Config.in.host" source "package/util-linux/Config.in.host" source "package/utp_com/Config.in.host" + source "package/uuu/Config.in.host" source "package/vboot-utils/Config.in.host" source "package/xorriso/Config.in.host" source "package/zip/Config.in.host" diff --git a/package/uuu/Config.in.host b/package/uuu/Config.in.host new file mode 100644 index 000000000000..017e37517d0e --- /dev/null +++ b/package/uuu/Config.in.host @@ -0,0 +1,18 @@ +config BR2_PACKAGE_HOST_UUU + bool "host uuu" + depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-libusb + help + UUU (Universal Update Utility) is Freescale/NXP I.MX Chip + image deploy tool. UUU is an evolution of MFGTools + (aka MFGTools v3). + + To be able to run uuu without root privileges, execute the + following steps: + + sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules" + sudo udevadm control --reload + + https://github.com/NXPmicro/mfgtools + +comment "host uuu needs a toolchain w/ host gcc >= 4.9" + depends on !BR2_HOST_GCC_AT_LEAST_4_9 diff --git a/package/uuu/readme.txt b/package/uuu/readme.txt new file mode 100644 index 000000000000..80dd90b93384 --- /dev/null +++ b/package/uuu/readme.txt @@ -0,0 +1,13 @@ +uuu Howto +========= + +Running uuu without root privileges +----------------------------------- + +Accessing USB devices on Linux requires root privileges by default. +To be able to run uuu without root priviles, execute the following +steps: + + sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules" + sudo udevadm control --reload + diff --git a/package/uuu/uuu.hash b/package/uuu/uuu.hash new file mode 100644 index 000000000000..10efff0337a1 --- /dev/null +++ b/package/uuu/uuu.hash @@ -0,0 +1,4 @@ +# locally computed +sha256 4fda8db488c4d3a98c2480c47b41907ad26b714c6400dd0a202baab4c17b0a9b uuu-1.4.193.tar.gz +sha256 cc8d47f7b9260f6669ecd41c24554c552f17581d81ee8fc602c6d23edb8bf495 LICENSE +sha256 77b90738ae98b7958d34d9f96caf2671210a133427f8f6b784914b54f406c29b README.md diff --git a/package/uuu/uuu.mk b/package/uuu/uuu.mk new file mode 100644 index 000000000000..550c42af8d86 --- /dev/null +++ b/package/uuu/uuu.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# uuu +# +################################################################################ + +UUU_VERSION = 1.4.193 +UUU_SITE = $(call github,NXPmicro,mfgtools,uuu_$(UUU_VERSION)) +UUU_LICENSE = BSD 3-Clause "New" or "Revised" License +UUU_LICENSE_FILES = LICENSE README.md +HOST_UUU_DEPENDENCIES = host-bzip2 host-zlib host-libusb + +define SET_VERSION + echo $(UUU_VERSION) > $(@D)/.tarball-version +endef + +HOST_UUU_POST_EXTRACT_HOOKS += SET_VERSION + +$(eval $(host-cmake-package))