Linux Kernel 编译常用命令
Linux Kernel Version: 4.9.22
make mrproper主要清除环境变量及配置文件O=/path/to/output/来指定输出文件的位置,默认放在源码位置make -C Kernel ARCH=$ARCH CROSS_COMPILE=$COMPILERmake distcleanRemove editor backup files, patch leftover files and the likemake preparemake scriptsThis will prepare some files necessary to build a kernel modulemake $J -C $TARGET_DIR ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage vmlinux dtbsmake zImagebuild the kernel imagemake vmLinuxbuild the kernel imagemake uImagebuild the kernel imagemake -j4 uImage dtbs modulesCompile the dtb from Linux kernel source codemake $J LOADADDR=0x00008000 uImageLOADADDR 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.