* [PATCH 1/4] ARM: imx: select OFDEVICE for VF610
@ 2018-12-06 11:45 Lucas Stach
2018-12-06 11:45 ` [PATCH 2/4] of: remove non-existent of_match_ptr Lucas Stach
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Lucas Stach @ 2018-12-06 11:45 UTC (permalink / raw)
To: barebox
It's a dependency for IMX_OCOTP, which is selected by VF610.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/mach-imx/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 69d359b8520c..5b641655d2ba 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -190,6 +190,7 @@ config ARCH_VF610
select ARCH_HAS_FEC_IMX
select CPU_V7
select PINCTRL
+ select OFDEVICE
select OFTREE
select COMMON_CLK
select COMMON_CLK_OF_PROVIDER
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/4] of: remove non-existent of_match_ptr
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
@ 2018-12-06 11:45 ` Lucas Stach
2018-12-06 11:45 ` [PATCH 3/4] ARM: at91: add architecture dependecy to KSZ9477_EVB board Lucas Stach
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-12-06 11:45 UTC (permalink / raw)
To: barebox
It's only used in the !OFTREE stub functions, so can be safely removed.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
include/of_device.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/of_device.h b/include/of_device.h
index e84fc9c37775..44c1c0f54551 100644
--- a/include/of_device.h
+++ b/include/of_device.h
@@ -41,7 +41,7 @@ static inline const struct of_device_id *__of_match_device(
return NULL;
}
#define of_match_device(matches, dev) \
- __of_match_device(of_match_ptr(matches), (dev))
+ __of_match_device(matches, (dev))
#endif /* CONFIG_OF */
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/4] ARM: at91: add architecture dependecy to KSZ9477_EVB board
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
2018-12-06 11:45 ` [PATCH 2/4] of: remove non-existent of_match_ptr Lucas Stach
@ 2018-12-06 11:45 ` Lucas Stach
2018-12-06 11:45 ` [PATCH 4/4] scripts: imx-image: fix build with OpenSSL < 1.1.0 Lucas Stach
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-12-06 11:45 UTC (permalink / raw)
To: barebox
This board is part of the SAMA5D3 architecture.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/mach-at91/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig
index bb8305fd1675..e6b4f99c969b 100644
--- a/arch/arm/mach-at91/Kconfig
+++ b/arch/arm/mach-at91/Kconfig
@@ -539,6 +539,7 @@ config MACH_AT91SAM9X5EK
config MACH_MICROCHIP_KSZ9477_EVB
bool "Microchip EVB-KSZ9477 Evaluation Kit"
+ depends on ARCH_SAMA5D3
select OFDEVICE
select COMMON_CLK_OF_PROVIDER
help
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 4/4] scripts: imx-image: fix build with OpenSSL < 1.1.0
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
2018-12-06 11:45 ` [PATCH 2/4] of: remove non-existent of_match_ptr Lucas Stach
2018-12-06 11:45 ` [PATCH 3/4] ARM: at91: add architecture dependecy to KSZ9477_EVB board Lucas Stach
@ 2018-12-06 11:45 ` Lucas Stach
2018-12-07 6:54 ` [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Sascha Hauer
2018-12-07 8:18 ` Uwe Kleine-König
4 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-12-06 11:45 UTC (permalink / raw)
To: barebox
When adding support for OpenSSL 1.1.x it was missed that EVP_PKEY_get0_RSA
is only available with that version. Earlier versions don't provide a fully
equivalent function, so add it to the compatibility helpers.
Fixes: 542a50d4eb (scripts: imx-image: fix build with OpenSSL 1.1.x)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
scripts/imx/imx-image.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c
index fa93e4791784..7c59ef024b84 100644
--- a/scripts/imx/imx-image.c
+++ b/scripts/imx/imx-image.c
@@ -132,6 +132,14 @@ void RSA_get0_key(const RSA *r, const BIGNUM **n,
if (d != NULL)
*d = r->d;
}
+
+RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey)
+{
+ if (pkey->type != EVP_PKEY_RSA)
+ return NULL;
+
+ return pkey->pkey.rsa;
+}
#endif
static int extract_key(const char *certfile, uint8_t **modulus, int *modulus_len,
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] ARM: imx: select OFDEVICE for VF610
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
` (2 preceding siblings ...)
2018-12-06 11:45 ` [PATCH 4/4] scripts: imx-image: fix build with OpenSSL < 1.1.0 Lucas Stach
@ 2018-12-07 6:54 ` Sascha Hauer
2018-12-07 8:18 ` Uwe Kleine-König
4 siblings, 0 replies; 7+ messages in thread
From: Sascha Hauer @ 2018-12-07 6:54 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Thu, Dec 06, 2018 at 12:45:07PM +0100, Lucas Stach wrote:
> It's a dependency for IMX_OCOTP, which is selected by VF610.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> arch/arm/mach-imx/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
Applied, thanks
Sascha
>
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 69d359b8520c..5b641655d2ba 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -190,6 +190,7 @@ config ARCH_VF610
> select ARCH_HAS_FEC_IMX
> select CPU_V7
> select PINCTRL
> + select OFDEVICE
> select OFTREE
> select COMMON_CLK
> select COMMON_CLK_OF_PROVIDER
> --
> 2.19.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 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] 7+ messages in thread
* Re: [PATCH 1/4] ARM: imx: select OFDEVICE for VF610
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
` (3 preceding siblings ...)
2018-12-07 6:54 ` [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Sascha Hauer
@ 2018-12-07 8:18 ` Uwe Kleine-König
2018-12-07 9:01 ` Lucas Stach
4 siblings, 1 reply; 7+ messages in thread
From: Uwe Kleine-König @ 2018-12-07 8:18 UTC (permalink / raw)
To: Lucas Stach; +Cc: barebox
On Thu, Dec 06, 2018 at 12:45:07PM +0100, Lucas Stach wrote:
> It's a dependency for IMX_OCOTP, which is selected by VF610.
I didn't look into the details, but the commit log sounds as if
IMX_OCOTP should select OFDEVICE instead?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/4] ARM: imx: select OFDEVICE for VF610
2018-12-07 8:18 ` Uwe Kleine-König
@ 2018-12-07 9:01 ` Lucas Stach
0 siblings, 0 replies; 7+ messages in thread
From: Lucas Stach @ 2018-12-07 9:01 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: barebox
Am Freitag, den 07.12.2018, 09:18 +0100 schrieb Uwe Kleine-König:
> On Thu, Dec 06, 2018 at 12:45:07PM +0100, Lucas Stach wrote:
> > It's a dependency for IMX_OCOTP, which is selected by VF610.
>
> I didn't look into the details, but the commit log sounds as if
> IMX_OCOTP should select OFDEVICE instead?
It does. But Kconfig doesn't handle select dependency chains, so this
fixes a unmet dependency warning.
Regards,
Lucas
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-12-07 9:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-06 11:45 [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Lucas Stach
2018-12-06 11:45 ` [PATCH 2/4] of: remove non-existent of_match_ptr Lucas Stach
2018-12-06 11:45 ` [PATCH 3/4] ARM: at91: add architecture dependecy to KSZ9477_EVB board Lucas Stach
2018-12-06 11:45 ` [PATCH 4/4] scripts: imx-image: fix build with OpenSSL < 1.1.0 Lucas Stach
2018-12-07 6:54 ` [PATCH 1/4] ARM: imx: select OFDEVICE for VF610 Sascha Hauer
2018-12-07 8:18 ` Uwe Kleine-König
2018-12-07 9:01 ` Lucas Stach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox