consistent naming convention for the imagebuilder.tar.xz URL
Username: Attila Lendvai
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=1670
context
i have a
project/script
that downloads imagebuilder and builds a custom OpenWRT firmware for any router. the resulting firmware automatically sets up extroot on any external storage.
issue
the
URL
for the image builder archive is not easily derivable. see this snippet from my script:
IMGBUILDER_NAME="lede-imagebuilder-{RELEASE}-
{TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"
IMGBUILDERURL="https://downloads.openwrt.org/releases/{RELEASE}/targets/
{TARGET_ARCHITECTURE}/{TARGET_VARIANT}/
{IMGBUILDER_ARCHIVE}"
it’s easy to calculate the
URL
for e.g.
(ar71xx generic tl-wr1043nd-v2)
because
${TARGET_VARIANT} (i.e. ‘generic’)
is part of both the dir path and the filename, but not for e.g.
(bcm53xx generic dlink-dir-885l)
, because in the latter case
${TARGET_VARIANT}
is part of the directory structure, but not that of the filename itself.
request
please make sure that the imagebuilder
URL
can be consistently calculated from the
(arch, variant, device)
triplet, either by eliminating the variant also from the dir structure, or by consistently including it in the file name, too.