linux - How to compile a modified kernel which is different from the one installed on our computer? -
i working on linux kernel 3.11.0-12. adding system call modifying source code downloaded kernel.org of linux-2.6.26. want compile modified 2.6.26 kernel test new system call. how should it?
1)if want build kernel same architecture on working then..
go linux source folder , fire below commands....
to clean: make distclean
to write config:
make defconfig
to build kernel:
make uimage
or make vmlinux image want build
2)for arm architecture...
to clean: make arch=arm cross_compile=arm-linux-gnueabihf- distclean
to write config: make arch=arm cross_compile=arm-linux-gnueabihf- defconfig
to build kernel: make arch=arm cross_compile=arm-linux-gnueabihf- uimage
3) using second step can build linux kernel platform toolchain use arch= cross_compile= macro per requirement......
Comments
Post a Comment