linuxkernelembedded-linuxbuildroot

Kernel linux source code with Buildroot make menuconfig


I am new in "buildroot" I want to make an image for a VMware machine to run kernel Linux.

I have downloaded the Linux source code from: https://github.com/torvalds/linux/ and I did compile the source code.

I was wondering how I can attach the source code of Linux to the buildroot. I found this solution: https://stackoverflow.com/a/54762211 Which tells you to make a "local.mk" and write LINUX_OVERRIDE_SRCDIR= and write the path inside.

My problem is: in the "make menuconfig" command in the kernel section what option I choose In the kernel version because I want to make an Image for my source code already compiled in my computer

enter image description here

Thanks a lot!


Solution

  • As explained in the manual, "Customizing the generated target filesystem", there are two good ways to include an externally-built file in your Buildroot build. It doesn't matter here if it's a kernel image or anything else.

    Refer to the manual for more details on how to use them. In your case, a post-build script that copies from the kernel build directory to ${TARGET_DIR}/boot is probably the easiest.