版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lb5761311/article/details/90080674
系统编译的总编译脚本
#!/bin/bash
source build/envsetup.sh
lunch mek_8q-userdebug
make -j4
./make_uboot.sh
./make_kernel.sh
./make_boot_dt.sh
编译 uboot 脚本
#!/bin/bash
source build/envsetup.sh
lunch mek_8q-userdebug
make installclean
make bootloader -j4
编译kernel 脚本
#!/bin/bash
MY_ANDROID=/home/blv/workdata/imx-o8.1.0_2.0.0-auto-beta/android_build
cd vendor/nxp-opensource/kernel_imx
export ARCH=arm64
export CROSS_COMPILE=${MY_ANDROID}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
#export CROSS_COMPILE=/home/blv/workdata/imx-o8.1.0_2.0.0-auto-beta/android_build/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-
echo $CROSS_COMPILE
make android_defconfig
make KCFLAGS=-mno-android -j4
make defconfig
make KCFLAGS=-mno-android -j4
cd -
编译 boot 和dtb
#!/bin/bash
source build/envsetup.sh
lunch mek_8q-userdebug
make bootimage -j4
make dtboimage -j4