https://github.com/aparcar/openwrt-metabuilder
https://github.com/aparcar/openwrt-metabuilder
image-builder openwrt
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aparcar/openwrt-metabuilder
- Owner: aparcar
- Archived: true
- Created: 2018-07-17T13:06:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T02:03:15.000Z (about 5 years ago)
- Last Synced: 2025-03-19T20:47:23.353Z (about 2 months ago)
- Topics: image-builder, openwrt
- Language: Shell
- Size: 50.8 KB
- Stars: 13
- Watchers: 4
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This code is no longer maintaned (tho likely works). It was initially created to be used by [ASU](https://github.com/aparcar/asu/) which however switched to a full Python implementation.
# meta ImageBuilder
Instead of downloading (and updating) ImageBuilders manually, this script does
all the work. Automatically download ImageBuilder and create desired image.
Extra variables like `$PACKAGES` are forwarded to the ImageBuilder make call.## Usage
Build `ar71xx/generic/tl-wr710n-v2.1` with latest (17.01.4) release:
PROFILE="tl-wr710n-v2.1" TARGET="ar71xx/generic" ./meta
Build latest snapshot of the same target/profile combo (both work):
PROFILE="tl-wr710n-v2.1" RELEASE=snapshots TARGET="ar71xx/generic" ./meta
### Custom repositories
To support other distributions like LibreMesh which is based on OpenWrt but
which use additional repositories, it is possible to replace the
`repositories.conf` with a custom version.You may setup extra repositories exporting the following variable:
export REPOS="""src/gz reboot_core http://downloads.openwrt.org/releases/{{ ib_version }}/targets/{{ target }}/packages
src/gz reboot_base http://downloads.openwrt.org/releases/{{ ib_version }}/packages/{{ pkg_arch }}/base
src/gz reboot_luci http://downloads.openwrt.org/releases/{{ ib_version }}/packages/{{ pkg_arch }}/luci
src/gz reboot_packages http://downloads.openwrt.org/releases/{{ ib_version }}/packages/{{ pkg_arch }}/packages
src/gz reboot_telephony http://downloads.openwrt.org/releases/{{ ib_version }}/packages/{{ pkg_arch }}/telephony
src imagebuilder file:packages
src/gz libremesh http://repo.libremesh.org/releases/{{ version }}/packages/{{ pkg_arch }}/libremesh
src/gz libremap http://repo.libremesh.org/releases/{{ version }}/packages/{{ pkg_arch }}/libremap
src/gz limeui http://repo.libremesh.org/releases/{{ version }}/packages/{{ pkg_arch }}/limeui
src/gz lm_routing http://repo.libremesh.org/releases/{{ version }}/packages/{{ pkg_arch }}/routing
src/gz lm_profiles http://repo.libremesh.org/network-profiles/"""The following variables are automatically replaced:
* `{{ version }}` Custom version
* `{{ ib_version }}` OpenWrt ImageBuilder version
* `{{ pkg_arch }}` Automatically determined package architecture
* `{{ target }}`