Openwrt移植IMX6之增加u-boot支持
本文原文地址:http://blog.youkuaiyun.com/crazyleen
openwrt已经支持IMX6的u-boot,u-boot位于package/boot/uboot-imx6,只需要针对自己的u-boot添加补丁,openwrt使用quilt管理补丁,以下是制作补丁的全过程。
使用quilt制作补丁
参考文档http://wiki.openwrt.org/doc/devel/patches
-
首先配置quilt生产openwrt的补丁格式
cat > ~/.quiltrc <<EOF QUILT_DIFF_ARGS="--no-timestamps --no-index -pab --color=auto" QUILT_REFRESH_ARGS="--no-timestamps --no-index -pab" QUILT_PATCH_OPTS="--unified" QUILT_DIFF_OPTS="-p" EDITOR="nano" EOF
-
准备补丁修改
makepackage/example/{clean,prepare}V=s QUILT=1
-
进入编译目录
cdbuild_dir/target-*/example-*