From a08867de40e648f074d4fe84d179acf184ea1794 Mon Sep 17 00:00:00 2001 From: Alexey Sheplyakov Date: Wed, 1 Dec 2021 15:36:11 +0400 Subject: [PATCH] Use specsubst to set target_arch --- .gear/rules | 1 + cross-toolchain.spec | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gear/rules b/.gear/rules index e69de29..0ca7943 100644 --- a/.gear/rules +++ b/.gear/rules @@ -0,0 +1 @@ +specsubst: target_arch diff --git a/cross-toolchain.spec b/cross-toolchain.spec index c393587..cf40612 100644 --- a/cross-toolchain.spec +++ b/cross-toolchain.spec @@ -1,8 +1,9 @@ +# %%define target_arch aarch64 # %%define target_arch arm # %%define target_arch mipsel # %%define target_arch riscv64 -%define target_arch aarch64 +%define target_arch @target_arch@ %if "%target_arch" == "aarch64"