方案管理
本文档介绍进迭OpenWrt SDK的方案管理,目前发行的SDK默认适配k1-sbc、k1-nas方案, 每个方案支持多个板型,如k1-sbc方案支持k1-x_MUSE-Pi、k1-x_deb1板型,未来会持续更新。
方案总览
以开发板方案k1-sbc为例,通常跟以下配置文件有关,后续章节逐一介绍
#方案配置
feeds/spacemit_openwrt_feeds/spacemit_k1_defconfig
#方案编译入口
openwrt/target/linux/spacemit/Makefile
#方案定义
openwrt/target/linux/spacemit/k1-sbc/config-6.1
openwrt/target/linux/spacemit/k1-sbc/target.mk
openwrt/target/linux/spacemit/k1-sbc/base-files/
#方案设备树管理
openwrt/target/linux/spacemit/dts/
#方案启动参数
openwrt/target/linux/spacemit/image/env_k1-x.txt
#固件定义
openwrt/target/linux/spacemit/image/k1-sbc.mk
#方案的固件分区
openwrt/target/linux/spacemit/image/partition_tables/partition_2M.json
openwrt/target/linux/spacemit/image/partition_tables/partition_flash.json
openwrt/target/linux/spacemit/image/partition_tables/partition_universal.json
#方案首次启动配置
openwrt/target/linux/spacemit/base-files/etc/uci-defaults/
方案配置
feeds/spacemit_openwrt_feeds/spacemit_k1_defconfig
k1-sbc方案的编译配置,用于指导OpenWrt的编译行为
方案Makefile
openwrt/target/linux/spacemit/Makefile
SUBTARGETS添加方案名称
...
12 SUBTARGETS:=k1-nas k1-sbc
...