kernel
https://developer.toradex.com/knowledge-base/build-u-boot-and-linux-kernel-from-source-code
git clone git://git.toradex.com/linux-toradex.git -b toradex_5.4.y
Tegra K1 Based Kernel (Apalis TK1)
To compile the kernel & device trees for BSP 3 or newer:
Everything at once:
$ make -j12 | tee build.log
Only the device tree:
$ make DTC_FLAGS=”-@”
$ make -j$(nproc) modules
$ mkdir modules
$ export INSTALL_MOD_PATH=modules
$ make modules_install
$ cd modules
$ tar -czf ../modules.tar.gz .