【文件属性】:
文件名称:openwrt-vagrant:Vagrantfile,可帮助创建用于交叉编译到OpenWrt的VM
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-21 07:46:56
Python
开放性流浪汉
介绍
用于创建基于Debian的虚拟机的简单Vagrantfile。 目的是,特别是我正在尝试为OpenWrt编译。
用法
首先,您需要创建一个VM并构建OpenWrt Build根目录
# Create the VM and ssh into it
vagrant up
vagrant ssh
# Configure and build OpenWrt
cd ~/openwrt
make menuconfig
make
# KABOOM - Cups is failing to compile now for some reason :/
接下来,您可以使用cross-compile脚本对buildroot进行cross-compile 。 (在调用带有传递给它的参数的命令之前,脚本会设置一堆环境变量。)
# Cross-compile somethin
【文件预览】:
openwrt-vagrant-master
----feeds.conf(404B)
----Vagrantfile(740B)
----config(91KB)
----cross-compile(1KB)
----openwrt.pp(1KB)
----.gitignore(9B)
----README.md(2KB)