Skip to contentSkip to conversation

fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world

PATCH Applied Ahmad Fatoum 2 participants 2 messages Nov 4, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world

crypto: caam - fix COMPILE_TEST breakage

<mach/imx/*.h> doesn't exist when we compile allyesconfig for sandbox, so stub out the macros used from it, so CAAM can continue to build independently of selected architecture.

---
 drivers/crypto/caam/rng_self_test.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/crypto/caam/rng_self_test.c +6 -0
index a42d9cad1639..f008908b903e 100644
@@ -47,8 +47,14 @@
 #include <dma.h>
 #include <common.h>
 #include <linux/kernel.h>
+
+#ifdef CONFIG_ARCH_IMX6
 #include <mach/imx/generic.h>
 #include <mach/imx/imx6.h>
+#else
+#define cpu_is_mx6()			false
+#define imx6_cannot_write_l2x0()	false
+#endif
 
 #include "error.h"
 #include "regs.h"
Signature · 1 line
2.47.3
Applied
#1 lore raw
Quoted 8 lines · Ahmad Fatoum

crypto: caam - fix COMPILE_TEST breakage

<mach/imx/*.h> doesn't exist when we compile allyesconfig for sandbox, so stub out the macros used from it, so CAAM can continue to build independently of selected architecture.

[...]

Applied, thanks!

[1/1] fixup! crypto: caam - skip RNG selftest when i.MX6 is in normal world
https://git.pengutronix.de/cgit/barebox/commit/?id=c0e0df52fffa (link may not be stable)

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>