openwrt添加已经支持的cpu的bsp

openwrt添加已经支持的cpu的bsp:
例如我要添加的板级叫FOS,
1. tartget/linux/ramips/base-files/lib/ramips.sh
在ramips_board_detect()里面添加
*"FOS")
name="fos"
        ;;

2.target/linux/ramips/base-files/lib/upgrade/platform.sh
platform_check_image() 
添加fos名字

3. target/linux/ramips/image/Makefile
添加Image/Build/Profile/FOS=$(call BuildFirmware/Default16M/$(1),$(1),fos,FOS
$(call Image/Build/Profile/FOS,$(1))

4. 添加FOS.dts到target/linux/ramips/dts文件夹里面

5. target/linux/ramips/mt7620n/profiles/fos.mk
添加该脚本文件
define Profile/FOS
NAME:=FOS
PACKAGES:=\
kmod-switch-mv88e6352 rinetd \
smartsnmpd smartsnmpd-mod-nscrtv-deco-eoc \
luasocket luactor cmmp_if \
luci-mod-admin-core luci-theme-bootstrap luci-sgi-uhttpd
endef

define Profile/FOS/Description
FOS
endef
$(eval $(call Profile,FOS))

然后 rm -rf tmp
make menuconfig, 在Target Profile就有FOS的选项了。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值