.gear/rules: change specsubst variable for local build

To build locally one need to specify the variable in .git/config.
However a git variable name must not contain `_` character.
Use @targetarch@ in specsubst to avoid the problem
This commit is contained in:
Алексей Шепляков 2022-06-05 15:22:38 +00:00
parent 4b07931525
commit 7c1209626a
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
specsubst: target_arch
specsubst: targetarch

View File

@ -3,7 +3,7 @@
# %%define target_arch arm
# %%define target_arch mipsel
# %%define target_arch riscv64
%define target_arch @target_arch@
%define target_arch @targetarch@
%if "%target_arch" == "aarch64"