./build.sh uboot:cmds
./build.sh uboot
cd u-boot
make rv1126_defconfig
make menuconfig
### 保存配置到对应的⽂件rv1126_defconfig
make savedefconfig
cp defconfig configs/rv1126_defconfig
//剖析 ./build.sh uboot
//调用 ./mk-loader.sh
build.sh -> mk-all.sh -> mk-loader.sh -> make.sh
这个就是调用的脚步
RK_UBOOT_CFG=rv1126
根据make rv1126_defconfig -j8
ARG_BOARD = rv1126
所以
./build.sh uboot
================================
cd u-boot
./make.sh rv1126
===============================
make rv1126_defconfig -j8
make -j8
============================================================================
============Start building kernel============
TARGET_KERNEL_VERSION =4.19
TARGET_KERNEL_ARCH =arm
TARGET_KERNEL_CONFIG =rv1126_defconfig
TARGET_KERNEL_CONFIG_FRAGMENTS =
TARGET_KERNEL_DTS =rv1126-evb-ddr3-v13
==========================================
经验证都是rv1126_defconfig
RK_KERNEL_CFG = rv1126_defconfig
RK_KERNEL_DTS_NAME = rv1126-evb-ddr3-v13
TARGET_KERNEL_CONFIG_FRAGMENTS是附加的config,在rv1126_defconfig基础上添加(后面补充)
rv1126-evb-ddr3-v13.dtb是指定好的
build.sh -> mk-all.sh -> mk-kernel.sh
//∴ ./build.sh kernel
//./build.sh lunch : rockchip_defconfig ///
make ARCH=arm rv1126_defconfig
make ARCH=arm rv1126-evb-ddr3-v13.img -j8
补充:
这里就修改了uboot的,调用rv1126-emmc-tb-defconfig
这里添加了RK_KERNEL_CFG_FRAGMENTS
覆盖rv1126_defconfig一些共有的
生成方法,略。
===========================================================================
./build.sh rootfs
source envsetup.sh rockchip_rv1126_rv1109
make menuconfig
make update-defconfig
然后跟随mk-all.sh->mk-rootfs.mk ->mk-buildroot.sh
mk-rootfs.mk里面做了选择,是buildroot/yocto/debian
默认是buildroot
根据rockchip_rv1126_rv1109_defconfig里面的变量来编译
//∴ ./build.sh rootfs
//source envsetup.sh : rockchip_rv1126_rv1109
make -j8
///打包
./build.sh updateimg
///
./mkfirmware.sh
===========================================================================