From 4c3fb2ac8eac008c3c19d55b066d633e0d46792c Mon Sep 17 00:00:00 2001 From: roleo Date: Fri, 18 Mar 2022 18:32:18 +0100 Subject: [PATCH] Fix broken jq --- src/jq/compile.jq | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/jq/compile.jq b/src/jq/compile.jq index 753e1c8..3591aa4 100755 --- a/src/jq/compile.jq +++ b/src/jq/compile.jq @@ -1,5 +1,21 @@ #!/bin/bash +export CROSSPATH=/opt/yi/arm-linux-gnueabihf-4.8.3-201404/bin +export PATH=${PATH}:${CROSSPATH} + +export TARGET=arm-linux-gnueabihf +export CROSS=arm-linux-gnueabihf +export BUILD=x86_64-pc-linux-gnu + +export CROSSPREFIX=${CROSS}- + +export STRIP=${CROSSPREFIX}strip +export CXX=${CROSSPREFIX}g++ +export CC=${CROSSPREFIX}gcc +export LD=${CROSSPREFIX}ld +export AS=${CROSSPREFIX}as +export AR=${CROSSPREFIX}ar + SCRIPT_DIR=$(cd `dirname $0` && pwd) cd $SCRIPT_DIR @@ -12,4 +28,4 @@ mkdir -p ../_install/bin || exit 1 cp ./jq ../_install/bin || exit 1 -arm-linux-gnueabihf-strip ../_install/bin/* || exit 1 +$STRIP ../_install/bin/* || exit 1