make rpm #生成带源码的RPM包 make rpm-pkg #生成带源码的RPM包,同上 make binrpm-pkg #生成包含内核和驱动的RMP包 make deb-pkg #生成带源码的debian包 make bindeb-pkg #生成包含内核和驱动的debian包
rpm-pkg: 每次编译前会先clean,重复编译会很慢
linux内核make help:
1 2 3 4 5 6 7 8 9 10 11 12 13
Kernel packaging: rpm-pkg - Build both source and binary RPM kernel packages binrpm-pkg - Build only the binary kernel RPM package deb-pkg - Build both source and binary deb kernel packages bindeb-pkg - Build only the binary kernel deb package tar-pkg - Build the kernel as an uncompressed tarball targz-pkg - Build the kernel as a gzip compressed tarball tarbz2-pkg - Build the kernel as a bzip2 compressed tarball tarxz-pkg - Build the kernel as a xz compressed tarball perf-tar-src-pkg - Build perf-4.14.105.tar source tarball perf-targz-src-pkg - Build perf-4.14.105.tar.gz source tarball perf-tarbz2-src-pkg - Build perf-4.14.105.tar.bz2 source tarball perf-tarxz-src-pkg - Build perf-4.14.105.tar.xz source tarball
make clean #删除编译中间文件,但是保留配置 make mrproper #删除包括配置文件的所有构建文件 make distclean #执行mrproper所做的一切,并删除备份文件
make menuconfig #文本图形方式配置内核 make oldconfig #基于当前的.config文件提示更新内核 make defconfig #生成默认的内核配置 make allmodconfig #所有的可选的选项构建成模块 make allyesconfig #生成全部选择是内核配置 make noconfig #生成全部选择否的内核配置
make all #构建所有目标 make bzImage #构建内核映像 make modules #构建所有驱动 make dir/ #构建指定目录 make dir/file.[s|o|i] #构建指定文件 make dir/file.ko #构建指定驱动
make install #安装内核 make modules_install #安装驱动
make xmldocs #生成xml文档 make pdfdocs #生成pdf文档 maek htmldocs #生成html文档