赞
踩
步骤 1 在 bsp 根目录下执行 source build/envsetup.sh 加载环境变量。
步骤 2 在 bsp 根目录下执行 lunch 选择 product。
步骤 3 在 bsp 根目录下使用 make help 查看支持的命令
bsp$ make help
make : Compile all bsp modules
make all : Compile all bsp modules
make bootimage : Compile boot.img
make chipram : Compile chipram related image and output binary to out directory
make busybox : Compile busybox
make busybox_rootfs : Compile busybox rootfs
make perf : Compile perf
make bootloader : Compile uboot related image and output binary to out directory
make bootwrapper : Compile bootwrapper related image and output binary to out directory
make sockoimage : Compile socko.img for kernel 4.14 projects
make vendorbootimage : Compile vendor_boot.img for kernel 5.4 projects
make sml : Compile sml related image and output binary to out directory
make teecfg : Compile teecfg related image and output binary to out directory
make trusty : Compile tos related image and output binary to out directory
make config : Only compile .config
make kernel : Compile all kernel related image and output binary to out directory
make dtb : Only generate product_name.dtb
make dtboimage : Only generate product_name.dtbo
make headers : Install kernel headers into dist
make unset : Delete the BSP related environment variable
make help : Print the usage
make -h : Print the usage
make modules : Compile the internal and external modules
make modules -m sample.ko : Compile only one modules
make clean : Clean all bsp obj files
make clean kernel : Clean the only one bsp module (chipram / busybox / sml / teecfg / tos / uboot / kernel)
make clean modules -m sample.ko : When clean modules, support clean only one module
make distclean : Clean all bsp obj files and output files
make mrproper : Clean the kernel temporary files
make busybox_mrproper : Clean the busybox temporary files
kuconfig : Using menuconfig generate .config and replace defconfig
busybox_kuconfig : Using menuconfig generate the .config for busybox and replace defconfig
步骤 4 在 bsp 根目录下使用 make kernel编译内核
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。