1
0
mirror of https://github.com/rafacouto/docker-openwrt-builder synced 2025-06-07 07:56:13 +00:00
2016-12-22 20:51:01 +01:00

1.4 KiB

OpenWRT builder

This image provides a toolchain to build OpenWRT for different hardware devices.

Get the docker image

Prepare a disk volume with 15Gb free to execute this image.

From Dockerfile

git clone git@github.com:rafacouto/docker-openwrt-builder.git
docker build -t caligari/openwrt-builder:latest ./docker-openwrt-builder

Usage

docker run --rm -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder

shows the help:

-ToDo-

Docker volumes

docker run -v $(pwd)/src:/usr/local/openwrt/src \
    -e OPENWRT_TARGET=rpi-3 caligari/openwrt-builder
  • /usr/local/openwrt/src Directory where OpenWRT sources persist (>= 15Gb).

Docker variables

docker run \
    -e OPENWRT_TARGET=rpi-3 \
    -e OPENWRT_RELEASE=master \
    -e JOBS=3 \
    caligari/openwrt-builder
  • OPENWRT_TARGET Device configuration you are building OpenWRT for.
  • OPENWRT_RELEASE OpenWRT version tag/branch to build (default is 'master').
  • JOBS Number of parallel jobs to launch with make.

Compile an OpenWRT version to a hardware target

Thanks

  • Javi Loureiro who had the idea for Raspberry Pi devices and provided config files for them.
  • OpenWRT community for the best embedded operating system based on the Linux kernel.