* [PATCH] uimage: add define for RISC-V architecture
@ 2020-04-06 12:23 Antony Pavlov
2020-04-06 12:38 ` Antony Pavlov
0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2020-04-06 12:23 UTC (permalink / raw)
To: barebox
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
common/image.c | 1 +
include/image.h | 3 +++
2 files changed, 4 insertions(+)
diff --git a/common/image.c b/common/image.c
index 04cd86bf9a..15bef96826 100644
--- a/common/image.c
+++ b/common/image.c
@@ -60,6 +60,7 @@ static table_entry_t arch_name[] = {
{ IH_ARCH_NDS32, "nds32", "NDS32", },
{ IH_ARCH_OPENRISC, "or1k", "OpenRISC 1000",},
{ IH_ARCH_ARM64, "arm64", "AArch64", },
+ { IH_ARCH_RISCV, "riscv", "RISC-V", },
{ -1, "", "", },
};
diff --git a/include/image.h b/include/image.h
index 18344dfef9..7da871e8cb 100644
--- a/include/image.h
+++ b/include/image.h
@@ -75,6 +75,7 @@
#define IH_ARCH_NDS32 20 /* ANDES Technology - NDS32 */
#define IH_ARCH_OPENRISC 21 /* OpenRISC 1000 */
#define IH_ARCH_ARM64 22 /* ARM64 */
+#define IH_ARCH_RISCV 23 /* RISC-V */
#if defined(__PPC__)
#define IH_ARCH IH_ARCH_PPC
@@ -104,6 +105,8 @@
#define IH_ARCH IH_ARCH_AVR32
#elif defined(CONFIG_LINUX)
#define IH_ARCH IH_ARCH_LINUX
+#elif defined(__riscv)
+#define IH_ARCH IH_ARCH_RISCV
#endif
/*
--
2.25.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] uimage: add define for RISC-V architecture
2020-04-06 12:23 [PATCH] uimage: add define for RISC-V architecture Antony Pavlov
@ 2020-04-06 12:38 ` Antony Pavlov
2020-04-14 9:22 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Antony Pavlov @ 2020-04-06 12:38 UTC (permalink / raw)
To: Sascha Hauer; +Cc: barebox
On Mon, 6 Apr 2020 15:23:13 +0300
Antony Pavlov <antonynpavlov@gmail.com> wrote:
Hi Sascha,
It looks like barebox IN_ARCH_* constants in image.h and the same constants from U-Boot's image.h
are differ.
> --- a/include/image.h
> +++ b/include/image.h
> @@ -75,6 +75,7 @@
> #define IH_ARCH_NDS32 20 /* ANDES Technology - NDS32 */
> #define IH_ARCH_OPENRISC 21 /* OpenRISC 1000 */
> #define IH_ARCH_ARM64 22 /* ARM64 */
> +#define IH_ARCH_RISCV 23 /* RISC-V */
>
> #if defined(__PPC__)
> #define IH_ARCH IH_ARCH_PPC
Does it matters?
--
Best regards,
Antony Pavlov
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] uimage: add define for RISC-V architecture
2020-04-06 12:38 ` Antony Pavlov
@ 2020-04-14 9:22 ` Sascha Hauer
0 siblings, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2020-04-14 9:22 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Mon, Apr 06, 2020 at 03:38:45PM +0300, Antony Pavlov wrote:
> On Mon, 6 Apr 2020 15:23:13 +0300
> Antony Pavlov <antonynpavlov@gmail.com> wrote:
>
> Hi Sascha,
>
> It looks like barebox IN_ARCH_* constants in image.h and the same constants from U-Boot's image.h
> are differ.
>
> > --- a/include/image.h
> > +++ b/include/image.h
> > @@ -75,6 +75,7 @@
> > #define IH_ARCH_NDS32 20 /* ANDES Technology - NDS32 */
> > #define IH_ARCH_OPENRISC 21 /* OpenRISC 1000 */
> > #define IH_ARCH_ARM64 22 /* ARM64 */
> > +#define IH_ARCH_RISCV 23 /* RISC-V */
> >
> > #if defined(__PPC__)
> > #define IH_ARCH IH_ARCH_PPC
>
> Does it matters?
Yes, it does. The numbers should be the same.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-14 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 12:23 [PATCH] uimage: add define for RISC-V architecture Antony Pavlov
2020-04-06 12:38 ` Antony Pavlov
2020-04-14 9:22 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox