base-files: add ARCH_PACKAGES to openwrt_release and os-release

Knowing the package architecture at runtime can be useful, e.g. to
configure opkg repository URLs. The value of ARCH_PACKAGES ("%A" in
VERSION_SED) as added to openwrt_release (as DISTRIB_ARCH) and os-release
(as LEDE_ARCH).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
Matthias Schiffer 2017-01-16 13:25:14 +01:00
parent 5c20a4fec9
commit b9a408c2b4
No known key found for this signature in database
GPG key ID: 16EF3F64CB201D9C
2 changed files with 2 additions and 0 deletions

View file

@ -3,5 +3,6 @@ DISTRIB_RELEASE='%V'
DISTRIB_REVISION='%R' DISTRIB_REVISION='%R'
DISTRIB_CODENAME='%n' DISTRIB_CODENAME='%n'
DISTRIB_TARGET='%S' DISTRIB_TARGET='%S'
DISTRIB_ARCH='%A'
DISTRIB_DESCRIPTION='%D %N %V %C' DISTRIB_DESCRIPTION='%D %N %V %C'
DISTRIB_TAINTS='%t' DISTRIB_TAINTS='%t'

View file

@ -9,6 +9,7 @@ BUG_URL="%b"
SUPPORT_URL="%s" SUPPORT_URL="%s"
BUILD_ID="%R" BUILD_ID="%R"
LEDE_BOARD="%S" LEDE_BOARD="%S"
LEDE_ARCH="%A"
LEDE_TAINTS="%t" LEDE_TAINTS="%t"
LEDE_DEVICE_MANUFACTURER="%M" LEDE_DEVICE_MANUFACTURER="%M"
LEDE_DEVICE_MANUFACTURER_URL="%m" LEDE_DEVICE_MANUFACTURER_URL="%m"