scripts/gen_config.py: use -f when installing target feeds

This allows overriding target folders from feeds.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin 2024-10-29 13:53:35 +01:00 committed by Petr Štetiar
parent e26e856459
commit d17630782d
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -203,7 +203,7 @@ for ap in profile.get("additional_packages"):
die(f"Error installing additional packages {packages_install} from {feed} feed")
if profile.get("external_target", False):
if run_cmd(["./scripts/feeds", "install", profile["target"]]).returncode:
if run_cmd(["./scripts/feeds", "install", "-f", profile["target"]]).returncode:
die(f"Error installing external target {profile['target']}")
config_output = f"""CONFIG_TARGET_{profile["target"]}=y