[openwrt/openwrt] octeon: add SUPPORTED_DEVICES to er/erlite
LEDE Commits
lede-commits at lists.infradead.org
Fri Jul 29 06:13:33 PDT 2022
aparcar pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/a409bd7705154045141e8fde408a33c19dfe9be9
commit a409bd7705154045141e8fde408a33c19dfe9be9
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Tue Jun 7 13:26:43 2022 +0200
octeon: add SUPPORTED_DEVICES to er/erlite
Using the BOARD_NAME variable results for both er and erlite devices to
identify themselfs as `er` and `erlite` (via `ubus call system board`).
This is problematic when devices search for firmware upgrades since the
OpenWrt profile is actually called `ubnt_edgerouter` and
`ubnt_edgerouter-lite`.
By adding the `SUPPORTED_DEVICE` a mapping is created to point devices
called `er` or `erlite` to the corresponding profile.
FIXES: https://github.com/openwrt/asu/issues/348
Signed-off-by: Paul Spooren <mail at aparcar.org>
(cherry picked from commit 2a07270180ed0e295d854d6e9e59c78c40549efc)
---
target/linux/octeon/image/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/target/linux/octeon/image/Makefile b/target/linux/octeon/image/Makefile
index f77159e1f9..23adb884f8 100644
--- a/target/linux/octeon/image/Makefile
+++ b/target/linux/octeon/image/Makefile
@@ -48,6 +48,7 @@ define Device/ubnt_edgerouter
DEVICE_MODEL := EdgeRouter
BOARD_NAME := er
CMDLINE := $(ER_CMDLINE)
+ SUPPORTED_DEVICES += er
endef
TARGET_DEVICES += ubnt_edgerouter
@@ -79,6 +80,7 @@ define Device/ubnt_edgerouter-lite
DEVICE_MODEL := EdgeRouter Lite
BOARD_NAME := erlite
CMDLINE := $(ERLITE_CMDLINE)
+ SUPPORTED_DEVICES += erlite
endef
TARGET_DEVICES += ubnt_edgerouter-lite
More information about the lede-commits
mailing list