From patchwork Tue Jun 7 07:28:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2010 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 822CF3F066 for ; Tue, 7 Jun 2022 09:29:42 +0200 (CEST) Received: by mail-io1-f72.google.com with SMTP id 204-20020a6b01d5000000b006691eeb4828sf5070053iob.4 for ; Tue, 07 Jun 2022 00:29:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1654586981; cv=pass; d=google.com; s=arc-20160816; b=Qno3GxNsNJFmknoukSLLXx5sLrEwM2L2KtQDwccZ47hBKXSYH55vxoY1MJ/Ky383wf brOSF+PqdQcTCQqbcnO9ipqU1MIeioBSXbxviTwarbEBS4zGaOb90/b6cDtNjbZn6LwR JFpABanRPPDFq0OIRtntRPQGqdz/P7Z5guC13Rp6JCxs/CvgVoR/ZGD/yXO2x0yjjhsz uqWF0RcDT3Am7eH+TG0lM8KzOSsr3ySVY6uUualt1a3KzHkyGsztj0cle439KJoptaAx TTCZrMrnQmKT4d7j56v1IPn/Nd9bg+I79GQfjMrdrFyA+hmovSgFHRIgTp5K729VncHF o4fA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=1szF4S1AJoNmkJgRnSwCdtkhMMnh+KRIipcOVe7u22g=; b=VTkT6Pj8cipJJaBnW14cnDoMfvdVEwJL6kmK11icDFyF8ds1XRze5Gk990Q+RBj/ag /UE6VmJdPh67gr0adn1NRTDRTfSjJJUZgfBzucpc9wCNeZY5kbvlGtSIyW2HKnd5T9Gj ZHsGzheAyju7JKMqaOFzPGAAFogSFNAB/QkGadsiVhlx0wFyR8E7jWTS92zI86rDOzgP caaI5I6i3t4ZDwvuibgXbROv6oQjF8Shos+xfSw1ZJv1Yp13AKUyd1D3T+LVGBJ7IPFu Ls4JwatVCkucsmdmKs37zRkMrxZ9BWugkp9faYe9wLsh0egpSo8S5/mFmJ0CiGIkWvSx imqw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r1bFHFc+; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=1szF4S1AJoNmkJgRnSwCdtkhMMnh+KRIipcOVe7u22g=; b=GGvjzAW5OEw9YHU2BZULGE5bDbKr8xDBf7Q1GdVa61z1/L9dQ6HKqUhjDkudLb9FsU VG+LO43+KSAWom0b8i8fq7exccPvoj1UO+COZhbzZuMQatvWyTDzJcVzt7godyE1pLdZ DPmOnmIyR+dZXyfO4TiDc8lwLdW17yglkx/gA= 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:in-reply-to :references: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=1szF4S1AJoNmkJgRnSwCdtkhMMnh+KRIipcOVe7u22g=; b=cD8JGdYdrkOW0ZfFNIsbsVIeGPcFpafKb1RhuXz+VblHMetL5ncgfBu4jrwqwqp3KZ iY6o1ckE0UuB/j8Tx8oyWsKFTXUpTAxFAOlm0/PYnknl3NzlPqCAOw4LiDyslhh1PNOS NK97TWLTOjziwd8AI592O69F83aJ3idS6akI0hVIMCzCnBM0fnK7m7Y//2zIS3KPgLhL tXH0mnzoqRP1vcXY5/bTYsjgtejTBT+JL9XYD1MHPwOSqGPzrHMuOOhX2LMk9i5jfiTf nbBcpj5dv4cTHTfwB6YQhlFyWDhYHhwjd+yDuV3rrhHn6u+MOaPLEQS6WjTn06JBi5RH Ok7w== X-Gm-Message-State: AOAM530dc2v1+HoCRNZlJXTs2Rg41vrUiQ65JUkivivFTUS8HIaK0Eci X1o8OxEiLfC5kdAvB8hci/ZlL3jc X-Google-Smtp-Source: ABdhPJyyZUi/hw1WtCKnfLVBm/A5K8JABfKDXzrAIzlRrE76SsJTt/dAH8YE8UNvywKV3XO2BantrQ== X-Received: by 2002:a92:ca08:0:b0:2d3:c490:40c3 with SMTP id j8-20020a92ca08000000b002d3c49040c3mr16437045ils.167.1654586981354; Tue, 07 Jun 2022 00:29:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a92:db0e:0:b0:2d3:f198:9f2f with SMTP id b14-20020a92db0e000000b002d3f1989f2fls1856491iln.7.gmail; Tue, 07 Jun 2022 00:29:41 -0700 (PDT) X-Received: by 2002:a05:6e02:12ce:b0:2d3:de67:9f96 with SMTP id i14-20020a056e0212ce00b002d3de679f96mr17009932ilm.261.1654586980807; Tue, 07 Jun 2022 00:29:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654586980; cv=none; d=google.com; s=arc-20160816; b=Nvtm6N8aHtz4kx1ho7J9fNM/zLKMiJzYuAji0YVX5NME1OLGbyTQxvrGlBV5MQP+sH B56ncCKqBwQ5JJRElsEBdPySRjjUY0QeVqlcZXWhTr7ZOTQRenG/8rt55xFV5ncCbXLH paBDLXMlsMIzbrt/j/3pqgvChYoBL+FI6o8+T5JJNFEWcS8RipLellnFHLTHwBDba5pi NIhpU2k9TRtJcslJiMmZQK44sSara3Gt4g2uaeMlhSa1nkVK3K/LcYN6CKVmku7G4+uR AQtNxaTFSK9v+UKKD/Sm8AUtue87Em5zrUyXFlFngSm+hC556n3CdSowvX2O6xmqf33a 2O/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=00PWmn+vANRojH3SjoSaEkiMQgL16pyGYJEG2Tk1MyQ=; b=W/buXOV/T3CNZS6huGkLpsqr8oImMrz35p+Ui4AJIqBBD/dgEWBOVWSxecS/aPDc8j sETZ+RDhdRNV5kVW10iARC5HFNVd7irGn4IsmCB13SlfTVqLhQQNq133WknkN5yqGGdA /7EWlFFWdBoG/CH/IUUfkNNgM1QrJG2lyq5Ytxly1zaH0Snv9aU79QP19E8lcGAIx3t6 eoWdggFHoIqvtK7j8sxNv06aleUBpt6C2voYUxoTkLcfyuElLaB3ck4W02j7c6QUQ6Rv +sia1gZS3009dsTiS5uIgBone3d9izsXE9hFGFN5Z3LHLWPnjfjs5nAgqDpVpsbVkj/e 1y+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r1bFHFc+; 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 ca19-20020a0566381c1300b00331b5fe8a5csor1954518jab.66.2022.06.07.00.29.40 for (Google Transport Security); Tue, 07 Jun 2022 00:29:40 -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:a02:84ac:0:b0:32b:a11b:4586 with SMTP id f41-20020a0284ac000000b0032ba11b4586mr14827328jai.231.1654586980522; Tue, 07 Jun 2022 00:29:40 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-80-116-90-174.retail.telecomitalia.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id cx4-20020a056638490400b0033126faae3asm6406075jab.116.2022.06.07.00.29.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 00:29:39 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Arnout Vandecappelle , linux-amarula@amarulasolutions.com, dario.binacchi@amarulasolutions.com, michael@amarulasolutions.com, Samuel Martin , Ariel D'Alessandro , Giulio Benetti , Heiko Thiery , Jagan Teki Subject: [PATCH 1/3] package/uuu: new package Date: Tue, 7 Jun 2022 09:28:50 +0200 Message-Id: <20220607072852.1007185-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220607072852.1007185-1-dario.binacchi@amarulasolutions.com> References: <20220607072852.1007185-1-dario.binacchi@amarulasolutions.com> 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=r1bFHFc+; 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 aa18de83bcb6..60fa58ab35d6 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))