From patchwork Fri Sep 6 17:15:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3413 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F14E53F14C for ; Fri, 6 Sep 2024 19:15:19 +0200 (CEST) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-3750b4feb9fsf1157468f8f.1 for ; Fri, 06 Sep 2024 10:15:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725642919; cv=pass; d=google.com; s=arc-20240605; b=Wv7cr+K7r6WQt3O4Cs6VXH2diYy1KYs47//q47F0AvWgjCRUk/Qp+HjKP/b/NNQfpw 8XvkuZxpfd6/sIopWuMIAUWcyWkfKPGoGJsv4JO5NF/vCuhaDvaZwR6gmTbA5rKsrey3 466SBrHMygwRj6rK7BjOqnmgOgp3PAs/931D0elC3pRcL1j93riABgvPtb/1luUiC9bk JI5lE3i8Znu4oaTRDPBCP2LU7CyUaPMQow0R3e9q397A9Bd9mdyIvn70jmhFl6Ac4pLI XmYry3IAPthGRU/kimUk28reFHRy4N1zsp3WzXrK4csLZEJ5JgKFU/oBcjw5xLe3zvdz uGlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; fh=eBw4+As3HsRxXPo538M8lDThiCFmBo5Npus7fL/hdzk=; b=IrZi67ulN1H8LOfg6ZmWoVzWMa4p4o9ADH6LDy3fDXB6ksF9Fu7bndErIj2XmA+ptP Rg+bEIfbinDwkOWmC8anKTtYsdQoEUJCS3EaYEhSKlfyOyTyx5xuTYsrzUL0B36ULL2+ PuIPdff9NmUt2VV1cWJpwXLoPhiKmLjNwFO3GHUN6S8NwD7LQDJRafZvSUykBcLO8X6+ 0c93+d2u7NjPeSUPZLEZNxRP4mACE9CEe/nS6HwqlPJCnqPpQ4HtPnjtun4ZSf+w2AXY Z9lfHmPciS6rs4SNiNxW8AWQW63Ute/2pQ///aBAopBpb7Uy9Qoeq1SH04pfGfej+Yda k1Cw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XPsfM8Ad; 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; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725642919; x=1726247719; 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; b=AT0rUdxgPv4sD9AxDG3+aTSbAzRAnLoGPJXx65Ycj4hVqFXYPpLOoVh0uzgrRUbZzn QEBTlMDb+lvnGLDkUzpNiaw59i1rUEtX+0jR+SDonUZXzmrbteMsJwX3BtogVfLje4DQ HUuVuNGbmGxqzrZEBdpJtsDCLUZ59vp6N4pwk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725642919; x=1726247719; 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=zZkwwNmA2gRJuo6+ppQ8fVtfllUm1FlrMBEl5ZXPWLA=; b=BUqaOBfmU6LDRYCeKmNSkyRNnHEa27oXEoB3sWH9TpAciYmi3hMDi5/DBWgogc5HQZ wkwc+034UxE5nzX6kJuU1DZR+MI87V/r9eVBPViRkuJ2a/PjkpR+6KyiNoLHKSyHguFb z4n2ixKsWy3o3ICVypTgi2Sq5r6hq3blt7a5uEgeGsQAwR75WvGwMSxNmQqcm53g1AO4 fx/IKoTpgMm36eOhjM692eWZksXtgQs8/Gwi1+L8QP4BZYyUt9oQIRb5ATArhKCAodgm bREsA2Gw+PuBPxffiY5h4FkeIJyLVfMWjf6JoX+BFLXunDK+vx82NobjDtL9dgwYeoZK Chxw== X-Forwarded-Encrypted: i=2; AJvYcCW2mIAz6PYRENTmaX+v1Tgf8QJjpwXqH/YEuGBF0bkIwkvecBxs6BkBctWrA2DxKLDhsfXhPhfI8PTWUeJa@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxO1Hl04TDENahhqUE0QyEwmNvV3SupPkra2lcU/K1DavEf74tZ Qzr/rAZuKwoRD4vuQKjB+LWyT6u37Xc66hCn4QoCl+AHLz83Dq3t8ioO62zTUFWyqw== X-Google-Smtp-Source: AGHT+IFw4Wx6E/a9U5rFF/7meu3sLQNb8D465pRD9ZLZOoVQUVIFgK+Lc47nien9M0PTrpr1pAn/oQ== X-Received: by 2002:a5d:4801:0:b0:374:c878:21f7 with SMTP id ffacd0b85a97d-37799f5e676mr6257350f8f.10.1725642919097; Fri, 06 Sep 2024 10:15:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:5250:b0:428:1081:6352 with SMTP id 5b1f17b1804b1-42c9f49f2fcls4957285e9.2.-pod-prod-00-eu; Fri, 06 Sep 2024 10:15:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVhgur9nYhvOPAhuq70hyYy1ohESWrU14dVDS+r7jb0qiDT61SZgK+NaBbxSgaayrbQpguIXMP+lN4jKVX8@amarulasolutions.com X-Received: by 2002:a05:600c:1c26:b0:424:8be4:f2c with SMTP id 5b1f17b1804b1-42c9f498cf8mr22423105e9.2.1725642916825; Fri, 06 Sep 2024 10:15:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725642916; cv=none; d=google.com; s=arc-20160816; b=L8vWGbxk4u6jLBcDF8hXargD4P7WV4SoceTnxjd79ul3KjJNyShemmTN+eLOznQ6oX +7xJWqAwDBl8XxkU7N9h5dY0o8qyevyGqSMYFlkh96vsnWYHVe/9Zu/4ovNhg5UBcndO 4Uk3JLVOCYvtl48RfeH8KPq+BVCbvaEnv0MkyTUEAoJGmyLmcq/UpNJ54wXQFREV3oBK +j/T14PKJAAc/xMlAxazI8Lc2IVfH6Z9rW8rmMxZTzHdDB9WzClun8EDrgD3QhCHBPp+ eaASYgCUc1RAE9DAF9wdtjG3VZUdXU4EIq5LuwH0BtPnIZd1f/D4svDiyki30No2PtjX HXPA== 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=krC2znMnnN1smE5XhZ+TJvG9KjlJdjFEKTwK/kQvX3c=; fh=aFzORVQYRX5FZ/RQ7FFQKxu4Pf9V0oRww9lHBooL67A=; b=ZEUlzETdR84z+zrMlDRtm5O9YH6bSdN+rhD6cHmwjYQS8JiIh7OeB/5kw8NHgO/AMp 76VXR43kdMXHwG7EgBao6P5xGLgkxfs+eMcz4YE9rDu471e1psn+/RRVcjfN5ttw2yAT cfEKcBpPxABcVQo9WZBZUQLdJhFJeLWnQzfPiJgnXwVX9iXcsgYHhKE2HYSSlCSGMhIw Y/AkNE6mEB1oMdXBerKieqyerbXoEWef93njpwwLnPhbIq+HDLZaJ18lWWBu2Ap2WaMC 8bKNQgYhEv1+MsVZOkxTRgB0H2x4P3wRjlPTD1q1FpYv+pOLL442O2TIouH6yBylOweh Xiww==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XPsfM8Ad; 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; dara=pass header.i=@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 5b1f17b1804b1-42ca05c5eb4sor5391705e9.1.2024.09.06.10.15.16 for (Google Transport Security); Fri, 06 Sep 2024 10:15:16 -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-Forwarded-Encrypted: i=1; AJvYcCXrAUcZ8lBprBtzTKCiiHUaGAZLYVyKyEv3DuGD3XIJA1T0vg6kLa1RIJ1HT1gSaD3W8jDXXZ39jPBLwBHv@amarulasolutions.com X-Received: by 2002:a05:600c:1c26:b0:424:8be4:f2c with SMTP id 5b1f17b1804b1-42c9f498cf8mr22422895e9.2.1725642916174; Fri, 06 Sep 2024 10:15:16 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ca05c6fb9sm26193875e9.7.2024.09.06.10.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 10:15:15 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Floris Bos , Heiko Thiery , Dario Binacchi , Thomas Petazzoni , linux-amarula@amarulasolutions.com, "Yann E . MORIN" Subject: [PATCH v3 1/2] package/iana-assignments: new package Date: Fri, 6 Sep 2024 19:15:02 +0200 Message-ID: <20240906171503.3495498-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.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=XPsfM8Ad; 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; dara=pass header.i=@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: , The fixing of [1] and related code reviews [2] and [3] highlighted the need for a package providing a versioned PEN (Enterprise Numbers) registry file from IANA (Internet Assigned Numbers Authority). The GitHub repository from which this package originates is a mirror of the IANA registries periodically updated from https://www.iana.org/protocols. [1] http://autobuild.buildroot.org/results/5ae5ee948d99679cd50d1115a7d46f4368347b4f [2] https://patchwork.ozlabs.org/project/buildroot/patch/20240902210055.239859-1-dario.binacchi@amarulasolutions.com [3] https://patchwork.ozlabs.org/project/buildroot/patch/20240904174021.2670289-1-dario.binacchi@amarulasolutions.com/ Co-Developed-by: Yann E. MORIN Signed-off-by: Yann E. MORIN Co-Developed-by: Thomas Petazzoni Signed-off-by: Thomas Petazzoni Signed-off-by: Dario Binacchi --- Added in v3 DEVELOPERS | 1 + package/Config.in | 1 + package/iana-assignments/Config.in | 14 ++++++++++++++ package/iana-assignments/iana-assignments.hash | 2 ++ package/iana-assignments/iana-assignments.mk | 18 ++++++++++++++++++ 5 files changed, 36 insertions(+) create mode 100644 package/iana-assignments/Config.in create mode 100644 package/iana-assignments/iana-assignments.hash create mode 100644 package/iana-assignments/iana-assignments.mk diff --git a/DEVELOPERS b/DEVELOPERS index 069965680b2b..10c8b802a9c2 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -792,6 +792,7 @@ F: configs/imx8mn_bsh_smm_s2_pro_defconfig F: configs/stm32f769_disco_sd_defconfig F: package/armadillo/ F: package/babeld/ +F: package/iana-assignments/ F: package/sscep/ F: package/uuu/ diff --git a/package/Config.in b/package/Config.in index f33c4780f8ef..c2f63dd9c695 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2463,6 +2463,7 @@ endif source "package/htpdate/Config.in" source "package/httping/Config.in" source "package/i2pd/Config.in" + source "package/iana-assignments/Config.in" source "package/ibrdtn-tools/Config.in" source "package/ibrdtnd/Config.in" source "package/ifenslave/Config.in" diff --git a/package/iana-assignments/Config.in b/package/iana-assignments/Config.in new file mode 100644 index 000000000000..b7bd52abd2d1 --- /dev/null +++ b/package/iana-assignments/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_IANA_ASSIGNMENTS + bool "IANA assignments" + help + Mirror of the IANA registries periodically updated + from https://www.iana.org/protocols. + + https://github.com/larseggert/iana-assignments + +if BR2_PACKAGE_IANA_ASSIGNMENTS + +config BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG + bool "PEN (Enterprise Numbers) registry" + +endif diff --git a/package/iana-assignments/iana-assignments.hash b/package/iana-assignments/iana-assignments.hash new file mode 100644 index 000000000000..c58fb61df292 --- /dev/null +++ b/package/iana-assignments/iana-assignments.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 e7a1f8153715fa9e0f4c5d102f9271bce425a468f58a445e7c5ecdf7105fd460 iana-assignments-bf358dc8d89b7939557220b8055699b42a4133e9.tar.gz diff --git a/package/iana-assignments/iana-assignments.mk b/package/iana-assignments/iana-assignments.mk new file mode 100644 index 000000000000..824b26d4ecf6 --- /dev/null +++ b/package/iana-assignments/iana-assignments.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# iana-assignments +# +################################################################################ + +IANA_ASSIGNMENTS_VERSION = bf358dc8d89b7939557220b8055699b42a4133e9 +IANA_ASSIGNMENTS_SITE = $(call github,larseggert,iana-assignments,$(IANA_ASSIGNMENTS_VERSION)) + +ifeq ($(BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG),y) +define IANA_ASSIGNMENTS_INSTALL_PEN_REG + $(INSTALL) -D -m 0644 $(@D)/enterprise-numbers/enterprise-numbers \ + $(TARGET_DIR)/usr/share/misc/iana/enterprise-numbers +endef +IANA_ASSIGNMENTS_POST_INSTALL_TARGET_HOOKS += IANA_ASSIGNMENTS_INSTALL_PEN_REG +endif + +$(eval $(generic-package)) From patchwork Fri Sep 6 17:15:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3414 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 690EC40D67 for ; Fri, 6 Sep 2024 19:15:20 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42bb68e16b0sf22971235e9.1 for ; Fri, 06 Sep 2024 10:15:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725642920; cv=pass; d=google.com; s=arc-20240605; b=fepUFA/TlY0ETWuGEnMwfYsEm7vWFhR2YVBA07Px4X9Tr8pCdcGl+vqy5h31JGVGV1 /XaveauG0iduMcCxJc0ENUozQOnwG6cRw6UCht9dbnj8ZQJYvuwr38+uQIhxcQeMaaX+ srV5MNQ8YO2ArV0zz+L8e6TusxVsJjBo22i9oy+c+JWCsmd9SjTD3LP4Lx5kRT2yxB5t 1AFrzfCXKBqpsHF99JuBBgsMJwZcF+1scfXgVrnYHRo7bDU1eOg46YFppKQKLMtm1M/b Kd+8GSH8ajEFMxUtTUWuammRv7uBq/g3NQDfpgUNOwEZTeWs6aoUCCnKJODp5kPpFMuO Vc4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=hBmft++n5Xpz3E9KeKiia03d27g0oDYmgbDFOM7E8fk=; fh=9mPEEyC88/8qY8hwFzoY2BSA7IebjDMHywRguNFyha4=; b=VnISweQLpAnwqfA5dPTbN51sJscdAU70llAsLiEUob/GBtEmidZ7wF79O1+FT19nd3 IgwcT3DE3CKcdcbUMwb9GirCBQBrLYfVEw5wRKrNTdDJkgXGPWmJhL6QektfvBGsXhki rzeJg9Lc4mu1CLzxvfA51oQc6/sQDHa2BmyKw5S3q2ZXppW/x3qfm3bpkEsm5xaHdeSY wi/Bd3Vmz13WUoxgdQoOHgEeXKUPTugl6D5AtLeiXpsOSGMN3mf9noWBzWNOi1/OSYKV 6av4G1u4w8IRTzHgGyS9SEwpI7987/YP/MJkVTQAIV6GKmUN/YaGupAqgU33ogxYiZgV yDhQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=auxnXMGD; 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; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1725642920; x=1726247720; 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=hBmft++n5Xpz3E9KeKiia03d27g0oDYmgbDFOM7E8fk=; b=ZFuP1JJtagzUs8jXksrh13LSn3fE9eY8VZTDkiSPSnmJnS9k+kL8n/8hdNV/T0WbdH 8k6+gTD/qgmvs8rFBYGBaE85tPZAKuQu4hY8u9ztclX2sz2uWTU/Z2+Gb41pNrlDPSBM Q1lXsmEd9gGSmzJoRQ7+OyFvUPpA1qB3uNSZU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725642920; x=1726247720; 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=hBmft++n5Xpz3E9KeKiia03d27g0oDYmgbDFOM7E8fk=; b=tjcN1MSbogxi3vQ37HJxi/sB3tIsROB+IuxHQuxPUdj8U/Iyod+En1/pHe+avNCfsl uY74rhiGiUB/IqlZJHrD0c/stot4rrlr1w/8zu+xTJM4149n+o2xpPsYnkH7jAlq4ADB Wq3eVHG9VWbuDRe/ENwug8txlnfyFNEGpIDZODkH1A7A8RsmkWlZxnhkMJXGFp/GlVB2 iVRn6OLvd6pNszcTVc66smEXasICqYpgMHRfr4l3zMj7lDwQ6Spv20I0D9lP2ETfYdYB 65DqmfwD08PKEBBaVhaE/0aVdOJ56m41FSshJr4BFx/5PP+ckrdkkGFHAntBeIT0n+io 6CIw== X-Forwarded-Encrypted: i=2; AJvYcCX32XbT5xmX+WuRdCo3HG7Ayd9UUb0kbwV+xxBUVBTuIym5+H9BK0bVFV60JAS9PX62LG9u/uLFZdud0z+r@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyOMReq080AMeRRGaDTL2NKPhzbQfLshoGY7GjcLE/HXa7A0dC1 e6HKrjTc3jVwlwQOhoAAXmUNmv40QlCTo26qtzEImFdsW/t0/KZR4ixE76i8Xs76Sw== X-Google-Smtp-Source: AGHT+IFHx0vYc30cPqhfhlwdBNCVJtjC0pEgk4qV5Cc5a/Y8ESCFvnT3GF4x0PHF/diB4EfblokgJA== X-Received: by 2002:a05:600c:1c1a:b0:426:6f87:65fc with SMTP id 5b1f17b1804b1-42c9f98b492mr33912595e9.17.1725642919703; Fri, 06 Sep 2024 10:15:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:154f:b0:426:7318:c5a0 with SMTP id 5b1f17b1804b1-42c9f497ee1ls6715365e9.2.-pod-prod-05-eu; Fri, 06 Sep 2024 10:15:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV4JkFNZA3wi60EWYolMm7tOylH6I/rHME0Hh+9eO1KvfCj/IHSysiebfgMLp4pW+vAFe5m+QxE4drUEVzv@amarulasolutions.com X-Received: by 2002:a05:6000:1373:b0:376:f482:8fdf with SMTP id ffacd0b85a97d-376f4829087mr9449050f8f.4.1725642917967; Fri, 06 Sep 2024 10:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725642917; cv=none; d=google.com; s=arc-20160816; b=wQJ3o94XtAsvO7BqoVJb4qpZDDnV2RrUTDu1/4Th6DoZQH7Hpx6XVcUOQkulbTRpHW W8U/WyVYj8/v7Q9G7LXp/rh7l5vTmNGg6ho6rI9fUDz71lWpdeG9r1QnrsFPv4mmQpt+ MKhnS5HwyRbWba2Yt540ASVSvUqQwJzUJJYSSKn6bsy/5Spkt6InE+Yken5wO2V5qN9a 18VUxM4BtEx0wxI8QYPUFdBCYgRChBUsrqSCiTbS8cCsbkCkWnZNu+1mzTi55AiEzHjV MDZlURsFG1sl17B+GaaCnWByCpWTgaf1j767qrZwBBcRvq6OBZrkxtAawWHQuqEELtk+ WGGQ== 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=f+46zW4k+EZZ+bQh3W0WrfU8Dp6+KJ+dvg4m0J1xg3c=; fh=ju/AtKPI8yBb1Si3Z9JNxDDy6KV3ce0o26y78r7H2zE=; b=J+d5VnK2qjEfWobJ3tAKAeBau+Edt0xI7BwXgavQi7ibLcsr5HgZwSmD+Jvtmzmq1Z oKH29rLT7wtDG3d0t7ceArgm5Aia41Bwu5B7vsgejE8hY+QnigbXHPsmxdBni1EWZa+0 jvUjk7Hg41O29fdIJ7GueOjZoJ3CYz18tc3Qx7gfYEyNBiIEDg1T2wEyFlsDu6ajzpob LGOKOvEmHsRuY9Wi5j1pyDrE7TanC0s7n5lXPC1Y9QMNp9g5whPc53KxRotU1p/slfaV SJkgcLcJSMcMEoTdtI5rLQkHY74Z2BlwB0Sb7FESP0TvFzbfac4CqTAZAXhS7TWYbcXW aq+Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=auxnXMGD; 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; dara=pass header.i=@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 5b1f17b1804b1-42bb70add8dsor55400965e9.8.2024.09.06.10.15.17 for (Google Transport Security); Fri, 06 Sep 2024 10:15:17 -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-Forwarded-Encrypted: i=1; AJvYcCUJ3y3jHqyFXM3hgDBRfSDa/U2Q9Ha25m8hT5u+CZvFaHMl0qntnE9oFCp74z1QhD3g+jyZzW8ATDJYrFVj@amarulasolutions.com X-Received: by 2002:a05:600c:310a:b0:42a:a6aa:4118 with SMTP id 5b1f17b1804b1-42c9f98b4aamr25764515e9.18.1725642917337; Fri, 06 Sep 2024 10:15:17 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ca05c6fb9sm26193875e9.7.2024.09.06.10.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 10:15:17 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Floris Bos , Heiko Thiery , Dario Binacchi , Thomas Petazzoni , linux-amarula@amarulasolutions.com, "Yann E . MORIN" Subject: [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Date: Fri, 6 Sep 2024 19:15:03 +0200 Message-ID: <20240906171503.3495498-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240906171503.3495498-1-dario.binacchi@amarulasolutions.com> References: <20240906171503.3495498-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=auxnXMGD; 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; dara=pass header.i=@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: , The previous default URL used for the PEN registry was not stable and could change at any time, making it unacceptable to have to update its hash every time. With this patch, ipmitool now uses by default a versioned PEN (Enterprise Numbers) registry file from IANA provided by the iana-assignments package. Alternatively, it also allows the use of a local file. URL paths for downloading such a file are no longer supported. Co-Developed-by: Yann E. MORIN Signed-off-by: Yann E. MORIN Co-Developed-by: Thomas Petazzoni Signed-off-by: Thomas Petazzoni Signed-off-by: Dario Binacchi --- Changes v2 -> v3: - Use by default enterprise-numbers from iana-assignments package. - Alternatively allows to use a local PEN registry file. - Don't support URL path for PEN registry. Changes v1 -> v2: - use an enterprise-numbers file versioned package/ipmitool/Config.in | 32 ++++++++++++++++++++++++++------ package/ipmitool/ipmitool.mk | 24 ++++++++++++------------ 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/package/ipmitool/Config.in b/package/ipmitool/Config.in index 9516ff8596d3..c4b3ee734d44 100644 --- a/package/ipmitool/Config.in +++ b/package/ipmitool/Config.in @@ -9,14 +9,34 @@ config BR2_PACKAGE_IPMITOOL if BR2_PACKAGE_IPMITOOL -config BR2_PACKAGE_IPMITOOL_PEN_REG_URI - string "IANA PEN registry URL or path" - default "https://www.iana.org/assignments/enterprise-numbers.txt" +# +# PEN registry selection +# + +choice + prompt "PEN registry" + default BR2_PACKAGE_IPMITOOL_USE_IANA_PEN + +config BR2_PACKAGE_IPMITOOL_USE_IANA_PEN + bool "Using IANA PEN registry" + select BR2_PACKAGE_IANA_ASSIGNMENTS + select BR2_PACKAGE_IANA_ASSIGNMENTS_PEN_REG + +config BR2_PACKAGE_IPMITOOL_USE_CUSTOM_PEN + bool "Using a custom PEN registry file" help - Enter an URL or a file path to the PEN registry to use. + Enter a file path to the PEN registry to use. + + Leave empty to not use a registry; vendor IDs will be + displayed instead of the corresponding names. - Note that the official registry is 4MiB+ and may change any - time and is thus not guaranteed to be reproducible. +endchoice + +config BR2_PACKAGE_IPMITOOL_USE_CUSTOM_PEN_FILE + string "PEN registry file path" + depends on BR2_PACKAGE_IPMITOOL_USE_CUSTOM_PEN + help + Path to the PEN registry file. Leave empty to not use a registry; vendor IDs will be displayed instead of the corresponding names. diff --git a/package/ipmitool/ipmitool.mk b/package/ipmitool/ipmitool.mk index 4f2151904d43..f16500739ce6 100644 --- a/package/ipmitool/ipmitool.mk +++ b/package/ipmitool/ipmitool.mk @@ -49,20 +49,20 @@ endef IPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_REMOVE_IPMIEVD endif -IPMITOOL_PEN_REG_URI = $(call qstrip,$(BR2_PACKAGE_IPMITOOL_PEN_REG_URI)) -ifneq ($(IPMITOOL_PEN_REG_URI),) -ifneq ($(findstring ://,$(IPMITOOL_PEN_REG_URI)),) -IPMITOOL_EXTRA_DOWNLOADS += $(IPMITOOL_PEN_REG_URI) -BR_NO_CHECK_HASH_FOR += $(notdir $(IPMITOOL_PEN_REG_URI)) -IPMITOOL_PEN_REG = $(IPMITOOL_DL_DIR)/$(notdir $(IPMITOOL_PEN_REG_URI)) +ifeq ($(BR2_PACKAGE_IPMITOOL_USE_IANA_PEN),y) +IPMITOOL_DEPENDENCIES += iana-assignments +IPMITOOL_CONF_ENV += IANADIR=/usr/share/misc/iana else -IPMITOOL_PEN_REG = $(IPMITOOL_PEN_REG_URI) +IPMITOOL_PEN_FILE = $(call qstrip,$(BR2_PACKAGE_IPMITOOL_USE_CUSTOM_PEN_FILE)) +ifneq ($(IPMITOOL_PEN_FILE),) +ifneq ($(findstring ://,$(IPMITOOL_PEN_FILE)),) +$(error "URL paths are no supported") endif #findstring -define IPMITOOL_INSTALL_PEN_REG - $(INSTALL) -D -m 0644 $(IPMITOOL_PEN_REG) \ +define IPMITOOL_INSTALL_PEN_FILE + $(INSTALL) -D -m 0644 $(IPMITOOL_PEN_FILE) \ $(TARGET_DIR)/usr/share/misc/enterprise-numbers endef -IPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_INSTALL_PEN_REG -endif # IPMITOOL_PEN_REG_URI !empty - +IPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_INSTALL_PEN_FILE +endif # IPMITOOL_PEN_REG_FILEI !empty +endif # BR2_PACKAGE_IPMITOOL_USE_IANA_PEN $(eval $(autotools-package))