buildscript: Split removal of chipset and subtarget #192

Closed
fbl wants to merge 1 commits from fbl/firmware:er4-rename into master

1 Commits

Author SHA1 Message Date
Fabian Bläse 4d498215e2 buildscript: Split removal of chipset and subtarget
Some OpenWrt targets do not have subtargets. The filename only contains
the chipset in that case. Split the removal of chipset and subtarget
into multiple expressions, so the removal of the chipset works on
targets without subtargets as well.

Fixes: #187

Signed-off-by: Fabian Bläse <fabian@blaese.de>
2021-12-27 14:34:22 +01:00