* [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package
@ 2024-09-06 17:15 Dario Binacchi
2024-09-06 17:15 ` [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Dario Binacchi
2024-09-06 18:10 ` [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Yann E. MORIN
0 siblings, 2 replies; 5+ messages in thread
From: Dario Binacchi @ 2024-09-06 17:15 UTC (permalink / raw)
To: buildroot
Cc: Floris Bos, Thomas Petazzoni, Heiko Thiery, Dario Binacchi,
linux-amarula, Yann E . MORIN
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 <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
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))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry
2024-09-06 17:15 [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Dario Binacchi
@ 2024-09-06 17:15 ` Dario Binacchi
2024-09-06 18:16 ` Yann E. MORIN
2024-09-06 18:33 ` Yann E. MORIN
2024-09-06 18:10 ` [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Yann E. MORIN
1 sibling, 2 replies; 5+ messages in thread
From: Dario Binacchi @ 2024-09-06 17:15 UTC (permalink / raw)
To: buildroot
Cc: Floris Bos, Thomas Petazzoni, Heiko Thiery, Dario Binacchi,
linux-amarula, Yann E . MORIN
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 <yann.morin.1998@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
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))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry
2024-09-06 17:15 ` [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Dario Binacchi
@ 2024-09-06 18:16 ` Yann E. MORIN
2024-09-06 18:33 ` Yann E. MORIN
1 sibling, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2024-09-06 18:16 UTC (permalink / raw)
To: Dario Binacchi
Cc: Floris Bos, Heiko Thiery, linux-amarula, Thomas Petazzoni,
buildroot
Dario, All.,
On 2024-09-06 19:15 +0200, Dario Binacchi spake thusly:
> 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 <yann.morin.1998@free.fr>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
[--SNIP--]
> +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"
This is supposed to be covered by the rootfs-overlay feature, in my
opinion.
So, I would really suggest we do like I explained in my previous review:
if the PEN is installed by ieana-assginments, the ipmi-tools uses it.
Otherwise, it is the responsibility of the user to provide one in the
proper location.
Which means the IANADIR must always be set, and a comment in the help
text for ipmitool should explain where th euser can install their custom
PEN in an overlay.
[--SNIP--]
> 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
There is no need for a build-time dependency, as the file is only ever
needed at runtime, is there?
Regards,
Yann E. MORIN.
> +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))
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry
2024-09-06 17:15 ` [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Dario Binacchi
2024-09-06 18:16 ` Yann E. MORIN
@ 2024-09-06 18:33 ` Yann E. MORIN
1 sibling, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2024-09-06 18:33 UTC (permalink / raw)
To: Dario Binacchi
Cc: Floris Bos, Heiko Thiery, linux-amarula, Thomas Petazzoni,
buildroot
Dario, All,
On 2024-09-06 19:15 +0200, Dario Binacchi spake thusly:
[--SNIP--]
> 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"
You forgot to add legacy handling for this variable:
config BR2_PACKAGE_IPMITOOL_PEN_REG_URI
string "IANA PEN registry move to iana-assignment package"
help
Installation of the IANA PEN is now handled by the
iana-assignment package; to install a custom PEN,
use a rootfs-overlay for example.
config BR2_PACKAGE_IPMITOOL_PEN_REG_URI_WRAP
bool
default y if BR2_PACKAGE_IPMITOOL_PEN_REG_URI != ""
select BR2_LEGACY
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package
2024-09-06 17:15 [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Dario Binacchi
2024-09-06 17:15 ` [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Dario Binacchi
@ 2024-09-06 18:10 ` Yann E. MORIN
1 sibling, 0 replies; 5+ messages in thread
From: Yann E. MORIN @ 2024-09-06 18:10 UTC (permalink / raw)
To: Dario Binacchi
Cc: Floris Bos, Heiko Thiery, linux-amarula, Thomas Petazzoni,
buildroot
Dario, All,
On 2024-09-06 19:15 +0200, Dario Binacchi spake thusly:
> 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 <yann.morin.1998@free.fr>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> Co-Developed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
> ---
[--SNIP--]
> 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"
As I suggested, we should 'select PEN' here, otherwise, when the user
enables the iana-assignements package alone, nothing will be done; it
does not make much sense.
Agreed, one may argue that having a single option that is always
selected does not make much sense either. However, in that case, a
dependent package (like ipmitool) can appropriately depend on the PEN
option, and be future-proof in case iana-assignments installs something
else in the future.
Regards,
Yann E. MORIN.
> + 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))
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-09-06 18:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 17:15 [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Dario Binacchi
2024-09-06 17:15 ` [Buildroot] [PATCH v3 2/2] package/ipmitool: use versioned or local PEN registry Dario Binacchi
2024-09-06 18:16 ` Yann E. MORIN
2024-09-06 18:33 ` Yann E. MORIN
2024-09-06 18:10 ` [Buildroot] [PATCH v3 1/2] package/iana-assignments: new package Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox