From 9e19b676c047d057deca2aac238d45864ec42d2f Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sat, 11 Nov 2023 09:18:55 +0530 Subject: [PATCH] add a temp workaround to no SCP in fedora/rocky repos --- libretech_all_h5_cc_h5.spec | 1 + package.inc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/libretech_all_h5_cc_h5.spec b/libretech_all_h5_cc_h5.spec index 921532f..5f802b7 100644 --- a/libretech_all_h5_cc_h5.spec +++ b/libretech_all_h5_cc_h5.spec @@ -3,6 +3,7 @@ %global output_files u-boot-sunxi-with-spl.bin sunxi-spl.bin %global BL31 /usr/share/arm-trusted-firmware/sun50i_a64/bl31.bin +%global SCP does_not_exist Source1: package.inc %include %{SOURCE1} diff --git a/package.inc b/package.inc index 0697c17..d5a8621 100644 --- a/package.inc +++ b/package.inc @@ -46,6 +46,12 @@ export BL31='%{BL31}' %if "%{?ROCKCHIP_TPL}" != "" export ROCKCHIP_TPL='%{ROCKCHIP_TPL}' %endif +%if "%{?SCP}" == "does_not_exist" +touch scp.bin +export SCP="$PWD/scp.bin" +%elif "%{?SCP}" != "" +export SCP='%{SCP}' +%endif %{make}