mripard / sunxi-mali

GNU General Public License v2.0
100 stars 54 forks source link

build.sh: add optional embedding into the kernel #64

Open rsglobal opened 5 years ago

rsglobal commented 5 years ago

This allows adding mali into the kernel and compile it as built-in driver

embedding example: $ export KDIR= $ build.sh -r r8p1 -e

building example: $ cd $ export ARCH=arm32 $ export CROSS_COMPILE=arm-linux-gnueabihf- $ make sunxi_defconfig $ ./scripts/config -e MALI400

Profiling support wasn't ported correctly and doesn't support the latest kernel, and it should be disabled to get success build

$ ./scripts/config -d MALI400_PROFILING $ make olddefconfig $ make