linux: In case of an ARM kernel build, add extra include directories

They are required in order to build some modules, like that of
cryptodev.
This commit is contained in:
Lluis Batlle 2012-09-23 19:56:15 +02:00
parent 37418b3f70
commit 22e050f8c6

View File

@ -140,6 +140,10 @@ installPhase() {
(cd arch/$archDir/include && cp -a asm/* $includeDir/asm/ || true)
(cd arch/$archDir/include && cp -a generated/asm/* $includeDir/asm/ || true)
(cd arch/$archDir/include/asm/mach-generic && cp -a * $includeDir/ || true)
# include files for special arm architectures
if [ "$archDir" == "arm" ]; then
cp -a --parents arch/arm/mach-*/include $out/lib/modules/$version/build
fi
fi
fi