5
votes

I am using buildroot to build linux firmware. How can I do a clean rebuild the linux kernel only (without having to build the whole thing which take an hour)?

I tried -

make linux-rebuild

but that does not do a clean.

I have also tried

make linux-reconfigure && make linux-rebuild

but that does not work either.

3
Please edit your post and include the messages/errors you have after those commands. - user2699113
I usually cd to the kernel directory, then make ARCH=<arch> clean, and delete the salient .stamp* files, e.g. .stamp_build. Be careful to not delete all of them. - sawdust

3 Answers

12
votes

If you want to remove all of the changes in sources of the linux kernel you can do following:

make linux-dirclean
make linux-rebuild

The first command will remove output/build/linux* directory and the second one will fetch and rebuild from scratch the kernel.

-1
votes

I've found in the buildroot /dl folder a copy of the kernel repo is stored in there as a tar.gz file. If you do not delete that file, buildroot will not pull any kernel updates.

-3
votes

after reading a lot through buildroot manual and trail and error - this is what you need to do for cleaning of linux only -

make clean linux