Linux Kernel
编译常用命令
Linux Kernel Version: 4.9.22
make mrproper
主要清除环境变量及配置文件O=/path/to/output/
来指定输出文件的位置,默认放在源码位置make -C Kernel ARCH=$ARCH CROSS_COMPILE=$COMPILER
make distclean
Remove editor backup files, patch leftover files and the likemake prepare
make scripts
This will prepare some files necessary to build a kernel modulemake $J -C $TARGET_DIR ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage vmlinux dtbs
make zImage
build the kernel imagemake vmLinux
build the kernel imagemake uImage
build the kernel imagemake -j4 uImage dtbs modules
Compile the dtb from Linux kernel source codemake $J LOADADDR=0x00008000 uImage
LOADADDR specifies the address where the kernel image will be located by U-Boot and is stored in the U-Boot header by the mkimage utility.