Skip to content

Commit

Permalink
Workaround kmod-switch-rtl8366s & kmod-switch-rtl8366rb being needed …
Browse files Browse the repository at this point in the history
…for specific devices

Fix: openwrt#628

Signed-off-by: David <[email protected]>
  • Loading branch information
d1b authored and aparcar committed Oct 27, 2023
1 parent 82714a6 commit a3442a0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions asu/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,24 @@ def build(req: dict, job=None):
req["packages"].append("kmod-mt7622-firmware")
log.debug(f"Added kmod-mt7622-firmware to packages")

if req["target"] == "ath79/generic" and req["version"].startswith("23.05"):
if req["profile"] in {
"buffalo_wzr-hp-g300nh-s",
"dlink_dir-825-b1",
"netgear_wndr3700",
"netgear_wndr3700-v2",
"netgear_wndr3800",
"netgear_wndr3800ch",
"netgear_wndrmac-v1",
"netgear_wndrmac-v2",
"trendnet_tew-673gru",
}:
req["packages"].append("kmod-switch-rtl8366s")
log.debug("Added kmod-switch-rtl8366s to packages")
if req["profile"] == "buffalo_wzr-hp-g300nh-rb":
req["packages"].append("kmod-switch-rtl8366rb")
log.debug("Added kmod-switch-rtl8366rb to packages")

if req.get("diff_packages"):
req["build_cmd_packages"] = diff_packages(
set(req["packages"]), default_packages | profile_packages
Expand Down

0 comments on commit a3442a0

Please sign in to comment.