HW_RANDOM kernel config is M by default, but if build the kernel
with nodistro project, there will be build error, like the following:

        aarch64-oe-linux-ld.bfd: drivers/crypto/hse/hse-rng.o: in function 
`hse_hwrng_register':
        hse-rng.c.text+0x2bc): undefined reference to `devm_hwrng_register'

So set it to y to fix this issue.

Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com>
---
 bsp/nxp-s32g2xx/nxp-s32g2xx.cfg | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsp/nxp-s32g2xx/nxp-s32g2xx.cfg b/bsp/nxp-s32g2xx/nxp-s32g2xx.cfg
index 1a172d93..c6b720c5 100644
--- a/bsp/nxp-s32g2xx/nxp-s32g2xx.cfg
+++ b/bsp/nxp-s32g2xx/nxp-s32g2xx.cfg
@@ -158,3 +158,6 @@ CONFIG_REGULATOR=y
 CONFIG_UIO=y
 CONFIG_CRYPTO_DEV_NXP_HSE=y
 CONFIG_CRYPTO_DEV_NXP_HSE_UIO=y
+
+#RANDOM
+CONFIG_HW_RANDOM=y
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9742): 
https://lists.yoctoproject.org/g/linux-yocto/message/9742
Mute This Topic: https://lists.yoctoproject.org/mt/82059290/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to