prplOS 官方 profiles(1):26 个 profile 的分层与选型
在练习中成长
不用等读完,先测一下一句话:官方 profiles 不是“板子清单”,而是“功能包 + target/board”的组合。 看懂分层,才知道自己该从哪个 profile 开始改。
先看 profiles/ 是什么
prplOS 的构建入口:
profiles/*.yml → scripts/gen_config.py → .config → make
一个 profile 可以包含:
| 字段 | 作用 |
|---|---|
target / subtarget | OpenWrt 目标,如 x86/64、mediatek/filogic |
profiles | 设备名,如 generic、bananapi_bpi-r3 |
include | 复用其他 profile(可递归) |
packages | 加包 |
additional_packages | 从指定 feed 加包 |
packages_remove | 去包 |
feeds | 额外 feed(带固定 revision) |
diffconfig | 直接写 .config 的配置项 |
所以 profile 既能描述“板子”,也能描述“要哪些 prpl 功能”。
26 个官方 profile 分三层
当前 profiles/ 有 26 个官方 profile(qemu_armsr 是我们自己加的,不算)。
第一层:功能/产品包(没有 target)
这些是“加特性”的,不绑定具体板子:
prpl_core:prpl 最小核心包 + feedsprpl:prpl_core + lcm + mgmtlcm:Life-Cycle Managementmgmt:管理面security:安全特性debug:调试工具/日志thread:Threadcellular:蜂窝secure_boot_emmc:eMMC 安全启动extender_minimal:prpl_core的 extender 最小集extender_full:prpl_core + lcm + mgmtmxl_wlan*(4 个):MaxLinear WLAN 功能包
第二层:target/board
这些才对应具体目标/设备:
| Profile | target/subtarget | 设备 |
|---|---|---|
x86_64 | x86/64 | generic |
ipq40xx | ipq40xx/generic | GL-B1300 |
ipq807x | qualcommax/ipq807x | prpl_haze |
qca_ipq95xx | ipq95xx/generic | prpl_freedom |
mtk_filogic | mediatek/filogic | Arcadyan Mozart |
mvebu | mvebu/cortexa9 | WRT3200ACM / WRT32X / Turris Omnia |
airoha_an7581 | airoha/an7581 | Nokia Valyrian |
mxl_x86 | intel_x86/lgm | LGM_PRPL |
mxl_x86_sec | intel_x86/lgm | LGM_PRPL(安全) |
mxl_x86_osp_tb341 | intel_x86/lgm | PRPL_OSP_TB341 |
mxl_x86_osp_tb341_v2 | intel_x86/lgm | PRPL_OSP_TB341_v2 |
第三层:组合关系
几个关键 include:
prpl
└─ prpl_core
└─ lcm
└─ mgmt
extender_full
└─ lcm
└─ mgmt
└─ prpl_core
extender_minimal
└─ prpl_core
prpl_core 还会拉三个 feed:
feed_amx
feed_prplmesh
feed_prplos
mxl_x86_osp_tb341_v2 和 qca_ipq95xx 还会 include secure_boot_emmc。
为什么没有 armsr
官方 profiles 是厂商/产品导向的:
- x86、ipq、mtk、mvebu、airoha、MaxLinear;
- 没有 QEMU 的
armsr。
所以想用 QEMU ARM SystemReady,必须自己写:
# profiles/qemu_armsr.yml
profiles: [generic]
target: armsr
subtarget: armv8
然后 ./scripts/gen_config.py qemu_armsr。这一步的细节在下一篇。
怎么选
- 只想在 PC 上跑:
x86_64+prpl/debug,最快。 - 想跑 ARM 虚拟目标:自定义
qemu_armsr(没有官方 profile)。 - 有板子:选对应 target/subtarget/device,再叠加
prpl_core/prpl。 - MXL/IPQ 厂商板:通常还需要厂商 feed/SDK,不是“有 profile 就能编”。
验证状态(本站宗旨)
- ✅ 数量/内容:
profiles/*.yml共 26 个官方 profile(排除自建qemu_armsr),target/subtarget/include/feeds 已逐项核对; - ✅ 组合关系:
prpl、prpl_core、extender_*、secure_boot_emmc的 include 已核对; - ⚠️ 未逐个构建:尤其
mxl_*/ipq*依赖厂商 feed/SDK,本文只做 profile 结构分析; - ❓ 版本差异:profile 列表随 prplOS 分支变化,以你 checkout 的
profiles/为准。
一句话
官方 profiles = 功能包(prpl/lcm/mgmt)+ target/board(x86/ipq/mtk/mvebu/mxl/airoha)。 没有 armsr,所以 QEMU 移植的第一步是“自己写 profile”,不是“找一个官方 profile”。
源码:prplOS profiles(
840cf16) 下一篇:prplOS 移植(2):GEN_CONFIG——以 QEMU armsr/armv8 为目标 相关:prplOS vs OpenWrt 系列:prplOS 与 AMX。
评论 0
还没有评论,来抢沙发~