Open giuliomoro opened 7 years ago
How I compile kernel modules/drivers natively from a cross-built kernel:
dpkg -i linux-headers-3.8.13xenomai-xenomai-r81_1cross_armhf.deb
cd /lib/modules/$(uname -r)/build
make headers_check && make headers_install && make scripts
wget https://raw.githubusercontent.com/igorpecovnik/lib/next/patch/headers-debian-byteshift.patch && patch -p1 < headers-debian-byteshift.patch
NOTE: this is probably better done by making sure these files are there to begin with
CONFIG_SND_VIRMIDI yes CONFIG_XENO_OPT_NATIVE_INTR and CONFIG_XENO_OPT_POSIX_INT https://github.com/BelaPlatform/Bela/issues/171