From patchwork Mon Sep 18 15:39:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2987 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3D7BB3F1DA for ; Mon, 18 Sep 2023 17:39:35 +0200 (CEST) Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fe55c417fcsf5316644e87.0 for ; Mon, 18 Sep 2023 08:39:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695051574; cv=pass; d=google.com; s=arc-20160816; b=wTmaVAIc8y8c3MJf0Pc59NvFlo2cX9hfQzrttoekgbkMB6fdLrQdVpoA4Ny5goOEKK r+l7i8fhCjMmJ/equkcMBwZdHMBGlffuYgIOoxfABkIVA0VG3zzi3Xp8Nfz2OalVdMnr QijYYBiVNSCtvG4EPtm1uYid+CNXVJ7VY7w3S7XOfp/5EKqRfWX0O5Ag+4bIelCMdjjR tSarUBfdjvlV9JMZLSisLW99nbhN1I+SP2dhOYvjb08g+YVxbnDH/hJoIcLBrOb6N3UN JZnBd25UjxpZNFi3WabdngDLpfBs8lDndnvDy7vdbMcCbsgLra9NHqDVjoNYTC42bMhK aeJw== 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=hiHfBWksFvYGJ4xgjEUlbqe9cYTzvOAz3P91Oq5Gc5c=; fh=n2JQPrGVz6Maj5fMusU4koAZieyqN0ZL4L7xQReTOaE=; b=HIgpbhG7Z/N84z+W6M6iJnvMRXrK66R2Zid8/K+pr67S057uZGoojLHlnvgh0JZLsK G8dvsGaIv0sGyY6yGxU3l65NCdqBEcEawlBAjy7Bjr1qIK/oK9ugw33mxDDLuHd5Q016 7zIzeUoxNjTfj99Myw9ASqiXjr4gR4Ive2o3xPirY2iw8TDdV27OZ2KFh8XQegQkOIeh ykz60+f2764E1CDLbKp2bxIc3qTufZES6OsZiyTWH2v78+Q0/YLKiAYKIMjCh7uQLL4a QwcnuOnUuD0fKLHXks/Z4diqyBMryNa70TdGDqM/KEf8EerYYB2UT7SEmA1Jd8WpJzwq 1IuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=m4uriCDv; 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; t=1695051574; x=1695656374; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=hiHfBWksFvYGJ4xgjEUlbqe9cYTzvOAz3P91Oq5Gc5c=; b=n71ozi7obZFMgvU/xJ9fWh0mXhOqCrvU07/m76ouPipRyZOdMB9qe3RRrVHpnkG6Ne l6nI3YFDKS01RQWB+udTpTy6/Hl/+IqSxsR9TJtBvvzLQozgCnr9VyB8B3GwIldWK3EF y8Ttl3h/WsXKTAlJuL8Q+rTVlCzCyzDIAuDUo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695051574; x=1695656374; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hiHfBWksFvYGJ4xgjEUlbqe9cYTzvOAz3P91Oq5Gc5c=; b=VC4E+M/L44Q1WjUS2j4aeY5KbjUqrdXf8LrxmApRTdJNlxJFvELrC53lroL75Y8JfD 22z6C7UdG8UQDHcWhDd8CrrE0X1GmwkUI0Yf4QnMZ9zhDubu3+0aQFD9zkmS8giepaus F758dEvzaPz4gnl2QKpYUKsWwAI2orFrdQFfEZEPARCZ3VM97c7cmKPwP0xU5KVB6Bld jwKe3ngI28wQF3ctKewGo1jAuC/jkzHMKQE2AcAr0XYKKZUN8LdWk1hbSJlCC4wvxjZz +qh3T1DznL1NzYT5+IAZsstt89bJG/VgALbbwpo+QRG30ez4kW0aBEuyverKK+cAFo6a Qlww== X-Gm-Message-State: AOJu0YzQmKib4KrmQnA+DpHaRU3XNMMMGI3hBwMMJP2cmho+svaa73PR g9rUUiuGqOPXZ8zj+050YBz2ck3H X-Google-Smtp-Source: AGHT+IGTJymYszbk13f8kUG1ZK90hW7aQ9ZBI9YgraMXUQK6K9CXIUKPUebzscKzGolaIu/VwthMYw== X-Received: by 2002:a19:6714:0:b0:500:b8a3:1bf1 with SMTP id b20-20020a196714000000b00500b8a31bf1mr7163319lfc.43.1695051574432; Mon, 18 Sep 2023 08:39:34 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:90f:b0:530:7adf:2268 with SMTP id g15-20020a056402090f00b005307adf2268ls1911888edz.2.-pod-prod-02-eu; Mon, 18 Sep 2023 08:39:33 -0700 (PDT) X-Received: by 2002:a17:906:1d9:b0:9aa:165:aefc with SMTP id 25-20020a17090601d900b009aa0165aefcmr7297259ejj.33.1695051572772; Mon, 18 Sep 2023 08:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695051572; cv=none; d=google.com; s=arc-20160816; b=Fvcx6y+17JRqfO/7WL7/TcE5TOmLaEw4D8Ozbgg4brbavQf1+GwmugGCJUJlzeOCrd GUXqHc/8G62qIynHJgV1SHdKTlXy3d1LlV0wzhoPUlXIfJmPZa+9osnwCWFsdFUkt7+k RXbf5SIi/dR0rxfR6y2q+n4w+PGGAlZtVQzO4Dp+/PwrgaHD9nYEbVooRIJRP/gE3jM2 SRKihdvzUept0l8tzWOYcEpLzPUjOFx4MTsQ+eaJo9VR1iy/hLSg1/0UbRGg9wvug4nR xqz23FgE/UbPXtKKaoTEervE4W69GXMjPPghbj78umwlxxjw3R3/pq/s1kA5PbJqm906 frXw== 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=flInz1RmbOd7McBddyuWnpB29eJT4LPKNfKW/ZQjG6A=; fh=n2JQPrGVz6Maj5fMusU4koAZieyqN0ZL4L7xQReTOaE=; b=jLpzjUEnZ1apyUaMycqTtZteBopypRVn7CKK7w8Go+tU6mtzoMTzTHzs8TrqEW0Mj7 3B0QiQ7BfwXVy3RW6oL+qHwlD1ucgKmLdJit4SRQv44m6IyNDKEqKSdyq6eo3Lj23M/u PysvWz9ikGdENtFrZ1aLX2Ml6ljVCTJ50SHJnBV6EUi8JJKp0Gvy6QreuaLONb2vDjog snAQuwVuQHlcga6cVfs38oxvifSnzUvrbLXUviTG4hiJr9tPyrRLynEwWMpFIg4dmJxQ shy6lF65is6nOPzYzZkHb+xLVsrVLso55cT+vS8LJUN0zyNRHag09qr2VaXukpW3pNrF MTxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=m4uriCDv; 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 gx14-20020a1709068a4e00b009ad7f8b06bcsor2836350ejc.0.2023.09.18.08.39.32 for (Google Transport Security); Mon, 18 Sep 2023 08:39:32 -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:906:530e:b0:9a1:f21e:cdfc with SMTP id h14-20020a170906530e00b009a1f21ecdfcmr8625607ejo.41.1695051572414; Mon, 18 Sep 2023 08:39:32 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-180-3-189.retail.telecomitalia.it. [80.180.3.189]) by smtp.gmail.com with ESMTPSA id rn5-20020a170906d92500b0099bd5d28dc4sm6585796ejb.195.2023.09.18.08.39.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:39:32 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Thomas Petazzoni , Dario Binacchi , linux-amarula@amarulasolutions.com, arnout@mind.be, Dario Binacchi Subject: [PATCH v2 2/2] package/davinci-bootcount: rename to uboot-bootcount Date: Mon, 18 Sep 2023 17:39:09 +0200 Message-Id: <20230918153909.1759415-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230918153909.1759415-1-dario.binacchi@amarulasolutions.com> References: <20230918153909.1759415-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=m4uriCDv; 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: , Born as a project to read/write the bootcount on the TI am3xx platform, over time it has introduced bootcount management on EEPROM and for the stm32mp1 platform. As a result, the project removed the 'davinci' tag from its name and GitHub link. The patch aligns the package name in Buildroot with the current one on GitHub. Signed-off-by: Dario Binacchi --- Config.in.legacy | 6 ++++++ DEVELOPERS | 2 +- package/Config.in | 2 +- package/davinci-bootcount/Config.in | 11 ----------- package/davinci-bootcount/davinci-bootcount.mk | 15 --------------- package/uboot-bootcount/Config.in | 10 ++++++++++ .../uboot-bootcount.hash} | 2 +- package/uboot-bootcount/uboot-bootcount.mk | 15 +++++++++++++++ 8 files changed, 34 insertions(+), 29 deletions(-) delete mode 100644 package/davinci-bootcount/Config.in delete mode 100644 package/davinci-bootcount/davinci-bootcount.mk create mode 100644 package/uboot-bootcount/Config.in rename package/{davinci-bootcount/davinci-bootcount.hash => uboot-bootcount/uboot-bootcount.hash} (80%) create mode 100644 package/uboot-bootcount/uboot-bootcount.mk diff --git a/Config.in.legacy b/Config.in.legacy index daf83dda4a1c..0a2a5a728faf 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2023.11" +config BR2_PACKAGE_DAVINCI_BOOTCOUNT + bool "davinci-bootcount has been renamed" + select BR2_LEGACY + help + The davinci-bootcount package has been renamed. + config BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS bool "google-material-design-icons removed" select BR2_LEGACY diff --git a/DEVELOPERS b/DEVELOPERS index e8b78a8d4648..d3a041c68e38 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -739,7 +739,7 @@ F: package/sscep/ F: package/uuu/ N: Dario Binacchi -F: package/davinci-bootcount/ +F: package/uboot-bootcount/ F: package/libmnl/ N: David Bachelart diff --git a/package/Config.in b/package/Config.in index e8dbadadf323..0ac137fc1ca0 100644 --- a/package/Config.in +++ b/package/Config.in @@ -476,7 +476,6 @@ endmenu source "package/cwiid/Config.in" source "package/dahdi-linux/Config.in" source "package/dahdi-tools/Config.in" - source "package/davinci-bootcount/Config.in" source "package/dbus/Config.in" source "package/dbus-broker/Config.in" source "package/dbus-cpp/Config.in" @@ -627,6 +626,7 @@ endmenu source "package/ti-utils/Config.in" source "package/tio/Config.in" source "package/triggerhappy/Config.in" + source "package/uboot-bootcount/Config.in" source "package/uboot-tools/Config.in" source "package/ubus/Config.in" source "package/udev/Config.in" diff --git a/package/davinci-bootcount/Config.in b/package/davinci-bootcount/Config.in deleted file mode 100644 index 0201530f9166..000000000000 --- a/package/davinci-bootcount/Config.in +++ /dev/null @@ -1,11 +0,0 @@ -config BR2_PACKAGE_DAVINCI_BOOTCOUNT - bool "davinci-bootcount" - depends on BR2_arm # only relevant for TI am335x - help - U-Boot implements a boot count scheme that can be used to - detect multiple failed attempts to boot Linux. On Davinci - platform (TI AM 335x) the `bootcount' is stored in the RTC - SCRATCH2 register. This tool allows to read and write this - register from userspace. - - https://github.com/VoltServer/uboot-bootcount diff --git a/package/davinci-bootcount/davinci-bootcount.mk b/package/davinci-bootcount/davinci-bootcount.mk deleted file mode 100644 index 884bf420f396..000000000000 --- a/package/davinci-bootcount/davinci-bootcount.mk +++ /dev/null @@ -1,15 +0,0 @@ -################################################################################ -# -# davinci-bootcount -# -################################################################################ - -DAVINCI_BOOTCOUNT_VERSION = 2.0.0 -DAVINCI_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(DAVINCI_BOOTCOUNT_VERSION)) -DAVINCI_BOOTCOUNT_LICENSE = GPL-3.0 -DAVINCI_BOOTCOUNT_LICENSE_FILES = COPYING - -# sources fetched from github, no configure script -DAVINCI_BOOTCOUNT_AUTORECONF = YES - -$(eval $(autotools-package)) diff --git a/package/uboot-bootcount/Config.in b/package/uboot-bootcount/Config.in new file mode 100644 index 000000000000..53a0bd9174a4 --- /dev/null +++ b/package/uboot-bootcount/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_UBOOT_BOOTCOUNT + bool "uboot-bootcount" + default y if BR2_PACKAGE_DAVINCI_BOOTCOUNT # legacy + help + U-Boot implements a boot count scheme that can be used to + detect multiple failed attempts to boot Linux. This tool + allows to read and write bootcount from userspace for some + platforms (TI AM335X or STM32MP1) or from I2C EEPROM. + + https://github.com/VoltServer/uboot-bootcount diff --git a/package/davinci-bootcount/davinci-bootcount.hash b/package/uboot-bootcount/uboot-bootcount.hash similarity index 80% rename from package/davinci-bootcount/davinci-bootcount.hash rename to package/uboot-bootcount/uboot-bootcount.hash index 53435b1d1d6d..e1ebc442357e 100644 --- a/package/davinci-bootcount/davinci-bootcount.hash +++ b/package/uboot-bootcount/uboot-bootcount.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 12b5aa83736efb2fefd22cd4d9f305a25c68dfaa10401d5efb17e55a5163934e davinci-bootcount-2.0.0.tar.gz +sha256 12b5aa83736efb2fefd22cd4d9f305a25c68dfaa10401d5efb17e55a5163934e uboot-bootcount-2.0.0.tar.gz sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING diff --git a/package/uboot-bootcount/uboot-bootcount.mk b/package/uboot-bootcount/uboot-bootcount.mk new file mode 100644 index 000000000000..07b52ab89eb5 --- /dev/null +++ b/package/uboot-bootcount/uboot-bootcount.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# uboot-bootcount +# +################################################################################ + +UBOOT_BOOTCOUNT_VERSION = 2.0.0 +UBOOT_BOOTCOUNT_SITE = $(call github,VoltServer,uboot-bootcount,v$(UBOOT_BOOTCOUNT_VERSION)) +UBOOT_BOOTCOUNT_LICENSE = GPL-3.0 +UBOOT_BOOTCOUNT_LICENSE_FILES = COPYING + +# sources fetched from github, no configure script +UBOOT_BOOTCOUNT_AUTORECONF = YES + +$(eval $(autotools-package))