From 7c1209626a6fb9e5ace82a399053720eae3b3101 Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Sun, 5 Jun 2022 15:22:38 +0000 Subject: [PATCH] .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 --- .gear/rules | 2 +- cross-toolchain.spec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gear/rules b/.gear/rules index 0ca7943..26b18ce 100644 --- a/.gear/rules +++ b/.gear/rules @@ -1 +1 @@ -specsubst: target_arch +specsubst: targetarch diff --git a/cross-toolchain.spec b/cross-toolchain.spec index 88d63b3..6de52f6 100644 --- a/cross-toolchain.spec +++ b/cross-toolchain.spec @@ -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"