||
U-Boot编译(U-Boot compilation)准备编译(prepare compilation)复制源码包到开发主机中(copy source code package to development host) 将下载的“u-boot源码”复制到Linux开发主机的“~/my-imx6/02_source”。 copy“u-boot source code”downloaded to “~/my-imx6/02_source”of Linux development host。 这一步自己采取相应的方式完成。 complete this step by yourself in a proper way。 解压u-boot源码包(decompress u-boot source code package) $ cd ~/my-imx6/02_source/ $ tar xf u-boot-2015.04.tar.xz 编译(compilation)使编译配置文件生效(validate compiler configuration file) $ source ~/my-imx6/03_tools/gcc-linaro-arm-linux-gnueabihf-492-env 进入u-boot源码目录(enter u-boot source code directory) $ cd ~/my-imx6/02_source/u-boot-2015.04 清除u-boot临时文件 (remove u-boot temporary files) $ make distclean 配置u-boot(configure u-boot)
configuration of development and its corresponding compiler:
MYIMX6EK200-6Q-1G configuration example: 执行编译(execute compilation)$ make myimx6ek200-6q_config $ make 提示:这里为了提高编译速度,在make后面加了“-j4”。这里编译的Linux主机是双核4线程的,所以“-j”后面用了4,也就是采用4线程编译。“-j”后面的数字可以根据系统资源分配,但是不应该超过编译主机最大支持的线程数。 Tips:To speed up the compilation,add "-j4" after make.The Linux host used to compile is dual-core ,4 threads .So "-j" is followed by 4, which takes 4 threads to compile. The number behind "-j" is allocated based on system resources,but It should not exceed the maximum threads the host support.
complete compilation 提示:u-boot编译过程大概需要一、两分钟时间。 Tips: u-boot compiling process may take one or two minutes。 |