How to build snd-aloop module

I have been trying to figure out how to build the snd-aloop kernel module for the Xavier, but I have not succeed so far. I have been following the instructions and scripts below:

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide%2Fkernel_custom.html%23wwpID0E0ZC0HA

https://www.jetsonhacks.com/2017/03/25/build-kernel-and-modules-nvidia-jetson-tx2/

tar -xjf public_sources.tbz2
cd public_sources/
tar -xjf kernel_src.tbz2
cd kernel/kernel-4.9
zcat /proc/config.gz > .config
make xconfig

Check the snd-aloop option

cd sound
make ARCH=arm64 -C <kernel_directory> M=$(pwd)

This seems to build the modules, however I do not see the snd-aloop module being built.

I would greatly appreciate any suggestion.

Thanks.

You may need to add CONFIG_SND_ALOOP=m to the …/kernel/kernel-4.9/arch/arm64/configs/tegra_defconfig and rebuild it.

Hi ShaneCCC,

Thank you for the suggestion. I was able to build the the whole kernel and module using your suggestion, and flash the board. I was not able to just build the module and install it. I am sure there is a shorter way that I am not familiar with on how to build just the module and install it.