Sign inSign up

nmeyerhans/openwrt-builder

By nmeyerhans

Updated over 6 years ago

Build OpenWRT firmware images in a container

Image
0

980

nmeyerhans/openwrt-builder repository overview

Build OpenWRT images in Docker

OpenWRT has a relatively long list of build dependencies. I want a convenient way to install them all, as well as assurance that they're not cluttering the filesystem on my primary machine. Docker is helpful here.

The docker image generated by this file can be though of as a runtime wrapper around the OpenWRT build process. I use commands similar to the following:

$ OPENWRT_SRC=~/src/openwrt
$ OPENWRT_PKG_SRC=~/src/openwrt-packages
$ git clone https://github.com/openwrt/openwrt "$OPENWRT_SRC"
$ git clone https://github.com/openwrt/openwrt-packages "$OPENWRT_PKG_SRC"
$ echo "src-link packages /packages" > ~/src/openwrt/feeds.conf
$ alias omake="docker run -it --net=host --rm --name openwrt-builder -v $OPENWRT_SRC:/src -v $OPENWRT_PKG_SRC:/packages -w /src -u $UID openwrt-build:latest"
$ omake ./scripts/feeds update -a
$ omake ./scripts/feeds install -a
$ omake make menuconfig
$ omake make world

I provide a bit more background and detail on my blog, although things have changed a bit since then. The commands above differ slightly from what's on the blog, and you should consider this README as definitive.

Tag summary

Content type

Image

Digest

Size

275.8 MB

Last updated

over 6 years ago

docker pull nmeyerhans/openwrt-builder