【接上一章节MY-IMX6 Linux-4.1.15 编译参考手册(1)】
3 u-boot编译
3.1 编译前的准备
创建编译工作目录
=====> Input:
mkdir ~/my-work/02_source/ -p
解压源码包到工作目录
=====> Input:
tar xf u-boot-2016.03-svn*.tar.bz2 -C ~/my-work/02_source/
3.2 编译u-boot目标文件
进入源码目录
=====> Input:
cd ~/my-work/02_source/u-boot-2016.03
生成目标开发板的 .config 文件
=====> Input:
make myimx6ek140p-6y-256m-emmc_defconfig
=====> Output:
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
【注意】:上面 make 后面的 myimx6ek140p-6y-256m-emmc_defconfig 改为与开发板型号对应的配置文件。
********** MY-IMX6-EK140 **********
myimx6ek140-6g-128m-emmc_defconfig myimx6ek140-6y-128m-emmc_defconfig