Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/gnu-efi: add BR2_RISCV_64 in _ARCH_SUPPORTS
@ 2024-04-15 22:02 Julien Olivain
  2024-05-01 21:33 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Julien Olivain @ 2024-04-15 22:02 UTC (permalink / raw)
  To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni

gnu-efi RISC-V 64bit support was introduced in commit [1], first
included in version 3.0.14.

This commit adds this architecture in _ARCH_SUPPORTS.

[1] https://sourceforge.net/p/gnu-efi/code/ci/b95f138fa1550040e68ac3dd34cfce7d148d7984

Signed-off-by: Julien Olivain <ju.o@free.fr>
---
 package/gnu-efi/Config.in  | 1 +
 package/gnu-efi/gnu-efi.mk | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/package/gnu-efi/Config.in b/package/gnu-efi/Config.in
index d456a23837d..4f44cf9f648 100644
--- a/package/gnu-efi/Config.in
+++ b/package/gnu-efi/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_GNU_EFI_ARCH_SUPPORTS
 	bool
 	default y if BR2_ARM_CPU_HAS_ARM
+	default y if BR2_RISCV_64
 	default y if BR2_aarch64
 	default y if BR2_aarch64_be
 	default y if BR2_i386
diff --git a/package/gnu-efi/gnu-efi.mk b/package/gnu-efi/gnu-efi.mk
index 96caaeb9336..2eed4e40d2d 100644
--- a/package/gnu-efi/gnu-efi.mk
+++ b/package/gnu-efi/gnu-efi.mk
@@ -24,6 +24,8 @@ else ifeq ($(BR2_arm)$(BR2_armeb),y)
 GNU_EFI_PLATFORM = arm
 else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
 GNU_EFI_PLATFORM = aarch64
+else ifeq ($(BR2_RISCV_64),y)
+GNU_EFI_PLATFORM = riscv64
 endif
 
 GNU_EFI_MAKE_OPTS = \
-- 
2.44.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/gnu-efi: add BR2_RISCV_64 in _ARCH_SUPPORTS
  2024-04-15 22:02 [Buildroot] [PATCH 1/1] package/gnu-efi: add BR2_RISCV_64 in _ARCH_SUPPORTS Julien Olivain
@ 2024-05-01 21:33 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-05-01 21:33 UTC (permalink / raw)
  To: Julien Olivain; +Cc: buildroot

On Tue, 16 Apr 2024 00:02:37 +0200
Julien Olivain <ju.o@free.fr> wrote:

> gnu-efi RISC-V 64bit support was introduced in commit [1], first
> included in version 3.0.14.
> 
> This commit adds this architecture in _ARCH_SUPPORTS.
> 
> [1] https://sourceforge.net/p/gnu-efi/code/ci/b95f138fa1550040e68ac3dd34cfce7d148d7984
> 
> Signed-off-by: Julien Olivain <ju.o@free.fr>
> ---
>  package/gnu-efi/Config.in  | 1 +
>  package/gnu-efi/gnu-efi.mk | 2 ++
>  2 files changed, 3 insertions(+)

Applied to master after changing the commit title to "enable on RISC-V
64-bit". Indeed your title "add BR2_RISCV_64 in _ARCH_SUPPORTS" is how
we do this, but really the aim of the commit is to make the package
available on RISC-V 64-bit.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-01 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15 22:02 [Buildroot] [PATCH 1/1] package/gnu-efi: add BR2_RISCV_64 in _ARCH_SUPPORTS Julien Olivain
2024-05-01 21:33 ` Thomas Petazzoni via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox