u-boot编译

u-boot源码下载地址
ftp://ftp.denx.de/pub/u-boot/

uboot已经支持很多硬件,只需要配置即可
配置CROSS_COMPILE就不多说了

//makefile会自动寻找configs/xxx_defconfig
# make xxx_config
# make all //或者
# make ARCH=arm CROSS_COMPILE=arm-linux-

注:修改include/configs/xxx.h头文件时,不要用#注释宏,不然会报以下错误

ignoring invalid character '#'
原文地址:https://www.cnblogs.com/zhangxuechao/p/11709795.html