Thank you for your help.
I was using kernel 2.6.38.8 and this driver isn't available for this version so I switch to 2.6.29.6. Now the compilation stops here:
>>> imx-lib 11.09.01 Building
/usr/bin/make -j1 CC="/home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/usr/bin/ccache /home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc" PLATFORM=IMX51 DIRS="sahara2 vpu ipu" CFLAGS="-fPIC -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/drivers/mxc/security/sahara2/include -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/include" INCLUDE="-I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/include" -C /home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01
make[2]: Entering directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01'
/usr/bin/make -C sahara2 all
make[3]: Entering directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01/sahara2'
/home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/usr/bin/ccache /home/schnegg/Downloads/armadeus-trunk/buildroot/output/host/usr/bin/arm-unknown-linux-uclibcgnueabi-gcc -fPIC -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/drivers/mxc/security/sahara2/include -I/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/linux-2.6.29.6/include -DCONFIG_ARCH_MX5 -c -o fsl_shw_rand.o fsl_shw_rand.c
fsl_shw_rand.c:28:30: error: linux/mxc_sahara.h: No such file or directory
fsl_shw_rand.c:29:21: error: sf_util.h: No such file or directory
fsl_shw_rand.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fsl_shw_get_random’
fsl_shw_rand.c:81: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘fsl_shw_add_entropy’
make[3]: *** [fsl_shw_rand.o] Error 1
make[3]: Leaving directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01/sahara2'
make[2]: *** [sahara2] Error 2
make[2]: Leaving directory `/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01'
make[1]: *** [/home/schnegg/Downloads/armadeus-trunk/buildroot/output/build/imx-lib-11.09.01/.stamp_built] Error 2
make[1]: Leaving directory `/home/schnegg/Downloads/armadeus-trunk/buildroot'
make: *** [all] Error 2
Same issue as this post: LTIB Build error
I have tried to delete the rng/ and sahara2/ with no success.