From patchwork Sun Sep 17 14:34:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2985 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4BDEA3F0CC for ; Sun, 17 Sep 2023 16:35:00 +0200 (CEST) Received: by mail-lj1-f197.google.com with SMTP id 38308e7fff4ca-2bd24fcd68csf43031851fa.0 for ; Sun, 17 Sep 2023 07:35:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1694961299; cv=pass; d=google.com; s=arc-20160816; b=Nu1w3akPaapOjDipusnb5zJS3PnH4bg10tgcjSS098oqBkUq8K5BfzrzB6W8VhKwjQ nlsGV0GdIx9o4KxBt+7/Z+EQBdw1VfDTSt5c1hVUVgJdghCi3jPgI+BkfFuGTD3WWJfp nEZoHH+sK1WxQ1l7wUlsfYP03ZRWwDbeTPiszl5rX1POHe+x3ejBncnDpgeU1bI73I2o 0EbL8qmvXMjwiWqxXnJywiGoOQS64maDhLi7oi3lF1wPZ6wZD0+cwctSaIXm6jJ39LN6 K53WWYwmBa+6GLmTaK5FPTplQ1WNnX0FFq744pwTTjM/P+bpVF7C2RxhXvSNBIpFf3Jv j+fg== 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=tminh4hRLrwerMZ2/BHMmfL2rz7t2Hg0Aofu//XCXAs=; fh=toAJbxP0keefOhotOT1iuNP7nFbySFluYuNrCZXSTZw=; b=HyZR60GGr1sO9aDKBxQ4ovNMbCvHjvB3im+EK4bnbvTaSJKfLA1BePgRVEqDn91YVN IPPzBkV4gjxD4SZldjbo5auGOXtLIaAgwthgu/5u2Yb9zFjRikoc4vNFLiEOvgNpHJNU +2miLJI8NMIQKE5806pnQHj8tKiSCELRm2d7TCVR47KCjR0xaLTzeYADz10pyV9C0VnM UqNEPhg1uDRbaaLLoexlKMeC2wFeSY20QkKAzAepEFBoksHmuFBtgcweGpGsULU2UCuj h/vYiQMwnFyMdIqA5AHgZky5VALGgdAbcc/+IrRHVNmaVpR7shN6X0mjyf8T+gKAR0Xn 8VdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HveRM9Yv; 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=1694961299; x=1695566099; 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:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=tminh4hRLrwerMZ2/BHMmfL2rz7t2Hg0Aofu//XCXAs=; b=UJBlwaBK/Cx0Y43qZyXwHwDmFigZMo0naNnCr5nGVByHtjhLs+jEN5CJMpZWidaAxh mnuN8u5hpDC0DgZ7BzmdfkaCXotFyxFzB/P8RBYnIk/z3Bz/W5DGMID+j1FFAONQm06d zCsR9Yd4n8H+eigbDnFThzpM4iyuWfh76Xksc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694961299; x=1695566099; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tminh4hRLrwerMZ2/BHMmfL2rz7t2Hg0Aofu//XCXAs=; b=Rrk0lfbnOOszSKhGAxc0wpnCdaiLGxD8AracEIGkBkoMc81BZkxbhTSMuLil95/lee q2SG+Z4KyG4QJnDRN+4AIeuScSI0F3v1N03N8c4cOOvBMy5C0/vStbtwltbG0s9dPTjC Pzq+jMbGDvKYmqq1p7iP6eKFcPBjb/K5xE69ebdquKl2Ge8xl7AyU1fBFC3mx1anKcs8 fk31mWySGHDJ97AkSb3u0XiinM2bmouLY8rvlVxc/hpQqCOHlRosbK4PkusHQxCEWvFF 8U0YJ7TyjBmLda7Qz0SSPDnPAYf3MI4xPktIp2ovHSCa5nzfnUIdnYN4W4L0DUC4GQ65 Z51w== X-Gm-Message-State: AOJu0YyrHiUHUuzeHoC6IuovuTGl37dW67wUSyEdXU+p7yATqnSDfBtA ABUviESmBkXM7UyF5IX9hRzBAEH9 X-Google-Smtp-Source: AGHT+IFcHlTle65HiNhlyrqyCfBMBEp+R8tQx11cG2E6SZ7EEhcmph49IJtNrG/0R4OVFi96/U/amw== X-Received: by 2002:a2e:6f0a:0:b0:2bf:f133:62e9 with SMTP id k10-20020a2e6f0a000000b002bff13362e9mr2654975ljc.17.1694961299385; Sun, 17 Sep 2023 07:34:59 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:651c:c8d:b0:2b9:5e1d:de39 with SMTP id bz13-20020a05651c0c8d00b002b95e1dde39ls666145ljb.0.-pod-prod-06-eu; Sun, 17 Sep 2023 07:34:58 -0700 (PDT) X-Received: by 2002:a05:6512:3195:b0:503:eac:747 with SMTP id i21-20020a056512319500b005030eac0747mr1643806lfe.47.1694961297448; Sun, 17 Sep 2023 07:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694961297; cv=none; d=google.com; s=arc-20160816; b=gPHUvmWJxcf6hC2qk0a58u2xRAGF9sGIzRZ7+dheVKK2CJmGbY6M5PIrmhHa1vpQZ/ gJy9xKL/UUOhfNzuw92FQptCF1myi/j8RwoGEx8OoL1OV5IxEw/rbE7hFbtRaSf4zSiC vTxPFbOCIIeceGB8i+VqT/q1UcQuqewaF+Qs1kjhfkIXDTDRveqhaafrmVHJ8WgA5tbx NBnr1tBIklMbpawek5g3xLKYlH3VSOHt4tZ9+BSs24AjCpXtsDHlgb7nKC4gYyx40Gpp lytSeE6CJVVZUK8euNagsZmG44PB0Ag0kLCO6HqQmolf4YOnUlhKovFhkL9LpUVDkRe+ Yz8A== 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=yUpoJzI1v9BR9ooEvXPGsVnYzXAWW36LDtkOGoVScd8=; fh=toAJbxP0keefOhotOT1iuNP7nFbySFluYuNrCZXSTZw=; b=dS583XR01OonRZ4B22MYIyPCo9EuOMRrCjAE3O7VLrIpYIWyMiNQeSX8H/Wh9qnya8 flSzht3sMp1Emm4crJai+0Sb5Vl2EZsBPHWOwXKrci3jsP0FXnYbT8TBW8JcqJo+GV3n l0y/tRsPvrKDXxxQF0V9PoWyL2UQGzuZnRAn2lDyJtq6ldgRglyiYvAxGJo64IPPLLHG arkTX4ocP9B0M6Polja/SdAUChHrVZ2pUwkVQS1AoZPhI4tKipUKAyR34r8VGbS0vsaz r0wlKMTwf5ZdVKGpI12oIEVWK0LMM3leBrKHk+dC4ewCVOcYAB32BjnfFflbxncyEWSZ JlWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HveRM9Yv; 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 h23-20020ac24db7000000b0050083f9e69dsor2306600lfe.18.2023.09.17.07.34.57 for (Google Transport Security); Sun, 17 Sep 2023 07:34:57 -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:a2e:a4a8:0:b0:2c0:52e:eafa with SMTP id g8-20020a2ea4a8000000b002c0052eeafamr930821ljm.29.1694961296761; Sun, 17 Sep 2023 07:34:56 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-21-103-71.retail.telecomitalia.it. [79.21.103.71]) by smtp.gmail.com with ESMTPSA id gv23-20020a170906f11700b0098ec690e6d7sm5060311ejb.73.2023.09.17.07.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 07:34:56 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Thomas Petazzoni , Dario Binacchi , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [PATCH 1/1] package/davinci-bootcount: rename as uboot-bootcount Date: Sun, 17 Sep 2023 16:34:52 +0200 Message-Id: <20230917143452.1374576-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 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=HveRM9Yv; 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 --- 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 +++++++++++++++ 7 files changed, 28 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/DEVELOPERS b/DEVELOPERS index 7fae4841e448..87c911f22460 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 e34adde570af..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-davinci-bootcount diff --git a/package/davinci-bootcount/davinci-bootcount.mk b/package/davinci-bootcount/davinci-bootcount.mk deleted file mode 100644 index 695d39688ac6..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-davinci-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..0a18e5d1bbad --- /dev/null +++ b/package/uboot-bootcount/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_UBOOT_BOOTCOUNT + bool "uboot-bootcount" + depends on BR2_arm + 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))