I am new in Buildroot. I have linux kernel sources for P2041RDB NXP board, so where I should to place it and how to set this location in configuration?
2 Answers
There is currently no way to set the path to the kernel source from the Buildroot configuration.
You have two options to do it.
Create a file
local.mkin the directory that contains.config(i.e. the Buildroot source directory if you don't use theO=option, or the output directory if you do useO=). Inlocal.mk, add a line withLINUX_OVERRIDE_SRCDIR=and fill in the path to the kernel source (either an absolute path, or a path relative to the Buildroot source directory).Create a tarball of the kernel source. In the Buildroot configuration menu, under "Kernel", set "Kernel version" to "Custom tarball". Then set "URL of custom kernel tarball" to the file-URL, so
file:///path/to/the/tarball.tar.gz.
Obviously, in either case, you need to enable the kernel build ("Linux kernel" option in the Kernel menu) and also set the other kernel options (kernel config, device tree, etc.).