* [Buildroot] [PATCH] package/uclibc: reenable riscv64
@ 2020-09-08 14:53 Petr Vorel
2020-09-08 21:45 ` Yann E. MORIN
2020-10-06 21:39 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Petr Vorel @ 2020-09-08 14:53 UTC (permalink / raw)
To: buildroot
Missing __riscv_flush_icache() (reason for the revert) was implemented
in 1.0.35 in commit 8b1f6b2e0 "riscv64: add __riscv_flush_icache".
Revert "Revert "toolchain/toolchain-buildroot: enable uclibc for riscv64""
This reverts commit e7d631c0df1698b4edc94f148e7247869430e108.
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
package/uclibc/Config.in | 1 +
toolchain/toolchain-buildroot/Config.in | 13 +++++++------
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in
index de2885bc92..f4d4f06462 100644
--- a/package/uclibc/Config.in
+++ b/package/uclibc/Config.in
@@ -101,6 +101,7 @@ config BR2_UCLIBC_TARGET_ARCH
default "mips" if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
default "or1k" if BR2_or1k
default "powerpc" if BR2_powerpc
+ default "riscv64" if BR2_RISCV_64
default "sh" if BR2_sh
default "sparc" if BR2_sparc
default "xtensa" if BR2_xtensa
diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
index 418d5cb387..068f91c875 100644
--- a/toolchain/toolchain-buildroot/Config.in
+++ b/toolchain/toolchain-buildroot/Config.in
@@ -27,12 +27,13 @@ choice
config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
bool "uClibc-ng"
- depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \
- BR2_arm || BR2_armeb || \
- BR2_i386 || BR2_m68k || BR2_microblaze || \
- BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
- BR2_or1k || BR2_powerpc || BR2_sh2a || BR2_sh4 || \
- BR2_sh4eb || BR2_sparc || BR2_xtensa || BR2_x86_64
+ depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \
+ BR2_arm || BR2_armeb || \
+ BR2_i386 || BR2_m68k || BR2_microblaze || \
+ BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
+ BR2_or1k || BR2_powerpc || BR2_RISCV_64 || \
+ BR2_sh2a || BR2_sh4 || BR2_sh4eb || BR2_sparc || \
+ BR2_xtensa || BR2_x86_64
select BR2_TOOLCHAIN_USES_UCLIBC
help
This option selects uClibc-ng as the C library for the
--
2.27.0.rc0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package/uclibc: reenable riscv64
2020-09-08 14:53 [Buildroot] [PATCH] package/uclibc: reenable riscv64 Petr Vorel
@ 2020-09-08 21:45 ` Yann E. MORIN
2020-10-06 21:39 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2020-09-08 21:45 UTC (permalink / raw)
To: buildroot
Petr, All,
+Damien in Cc as he's also working on the same topic:
https://patchwork.ozlabs.org/project/buildroot/patch/20200908113324.1022230-2-damien.lemoal at wdc.com/
On 2020-09-08 16:53 +0200, Petr Vorel spake thusly:
> Missing __riscv_flush_icache() (reason for the revert) was implemented
> in 1.0.35 in commit 8b1f6b2e0 "riscv64: add __riscv_flush_icache".
>
> Revert "Revert "toolchain/toolchain-buildroot: enable uclibc for riscv64""
> This reverts commit e7d631c0df1698b4edc94f148e7247869430e108.
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
[--SNIP--]
> diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in
> index 418d5cb387..068f91c875 100644
> --- a/toolchain/toolchain-buildroot/Config.in
> +++ b/toolchain/toolchain-buildroot/Config.in
> @@ -27,12 +27,13 @@ choice
>
> config BR2_TOOLCHAIN_BUILDROOT_UCLIBC
> bool "uClibc-ng"
> - depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \
> - BR2_arm || BR2_armeb || \
> - BR2_i386 || BR2_m68k || BR2_microblaze || \
> - BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
> - BR2_or1k || BR2_powerpc || BR2_sh2a || BR2_sh4 || \
> - BR2_sh4eb || BR2_sparc || BR2_xtensa || BR2_x86_64
> + depends on BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || \
> + BR2_arm || BR2_armeb || \
> + BR2_i386 || BR2_m68k || BR2_microblaze || \
> + BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el || \
> + BR2_or1k || BR2_powerpc || BR2_RISCV_64 || \
> + BR2_sh2a || BR2_sh4 || BR2_sh4eb || BR2_sparc || \
> + BR2_xtensa || BR2_x86_64
Please do not reindent eveything just to add the new arch, especially
since the existing code is not all properly indented already.
(but if you really don;t like the existing mess ;-) , a separate cleanup
patch is OK)
Regards,
Yann E. MORIN.
> select BR2_TOOLCHAIN_USES_UCLIBC
> help
> This option selects uClibc-ng as the C library for the
> --
> 2.27.0.rc0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/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. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] package/uclibc: reenable riscv64
2020-09-08 14:53 [Buildroot] [PATCH] package/uclibc: reenable riscv64 Petr Vorel
2020-09-08 21:45 ` Yann E. MORIN
@ 2020-10-06 21:39 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2020-10-06 21:39 UTC (permalink / raw)
To: buildroot
On Tue, 8 Sep 2020 16:53:46 +0200
Petr Vorel <petr.vorel@gmail.com> wrote:
> Missing __riscv_flush_icache() (reason for the revert) was implemented
> in 1.0.35 in commit 8b1f6b2e0 "riscv64: add __riscv_flush_icache".
>
> Revert "Revert "toolchain/toolchain-buildroot: enable uclibc for riscv64""
> This reverts commit e7d631c0df1698b4edc94f148e7247869430e108.
>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> package/uclibc/Config.in | 1 +
> toolchain/toolchain-buildroot/Config.in | 13 +++++++------
> 2 files changed, 8 insertions(+), 6 deletions(-)
Thanks, but there was another patch from Damien Le Moal, which also
enabled it for RISC-V 32-bit, so I've applied his patch instead.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-10-06 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-08 14:53 [Buildroot] [PATCH] package/uclibc: reenable riscv64 Petr Vorel
2020-09-08 21:45 ` Yann E. MORIN
2020-10-06 21:39 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox