I download Linux kernel source code, successfully compiled it and run it with BusyBox in QEMU.
Because of BusyBox, I can use some frequently-used tools, such as vi
,ls
,cp
,cat
, etc.
But when I try to compile a simple "hello world" C/C++ program, I get gcc: not found
.
In addition, I can't make
a new Linux module by make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules
inside QEMU.
I googled a lot, still can't figure it out.
So my question is: how can I install common developer tools like gcc
, make
, etc. inside my bare-bones QEMU VM that is running my custom Linux kernel (and not a standard distribution)?