RK3568学习笔记17:固件编译时写入配置信息
一、weston配置信息
可以在修改weston文件,文件位置如下
buildroot/board/rockchip/common/base/etc/xdg/weston/weston.ini
二、静态IP信息
修改文件
buildroot/package/ifupdown-script.mk
将代码
define IFUPDOWN_SCRIPTS_LOCALHOST
( \
echo "# interface file auto-generated by buildroot"; \
echo ; \
echo "auto lo"; \
echo "iface lo inet loopback"; \
) > $(TARGET_DIR)/etc/network/interfaces
endef
改为静态IP
define IFUPDOWN_SCRIPTS_LOCALHOST
( \
echo "# interface file auto-generated by buildroot"; \
echo ; \
echo "auto eth0"; \
echo "iface eth0 inet static"; \
echo "address 172.16.13.51"; \
echo "netmask 255.255.255.0"; \
echo "gateway 172.16.13.254"; \
) > $(TARGET_DIR)/etc/network/interfaces
endef