Nano2D is a driver for Vivante GCxxx 2D GPUs. It is split into an out-of-tree module for the Linux kernel and a user-space library, which provides an API to applications or graphics frameworks.
The source of the module are located under the drv/nano2Dkernel directory. The Makefile
file located in this directory can be used with Linux 6.13 and later. It assumes the KDIR
environement variable is defined and set to the build directory of the Linux kernel the
nano2d.ko module is built for.
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabihf-
make -C drv/nano2Dkernel KDIR=$KERNEL_BUILD_DIR MO=$(pwd)/build_nano2d_moduleThe source of the user-space libary are located under the drv/nano2D directory but the
CMakeLists.txt file should be used to build the library with cmake.
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
ninja -C build -j $(nproc)Nano2D is released under the terms of the MIT license. See the LICENSE.txt
file for more information.