From 91162691d4b612618ab7ce62bce3dcb6e1f02d3a Mon Sep 17 00:00:00 2001 From: heitbaum Date: Tue, 7 Dec 2021 11:42:22 +0000 Subject: [PATCH] crust: use host-gcc from toolchain not cc crust build fails when cc link is missing (e.g. minimal Ubuntu 20.04) use host-gcc from the toolchain instead. addition of the patch fixes the following error. BUILD crust (target) TOOLCHAIN manual ... HOSTCC build/3rdparty/kconfig/conf.o /bin/sh: 1: exec: cc: not found make[1]: *** [Makefile:170: build/3rdparty/kconfig/conf.o] Error 127 ... --- packages/tools/crust/patches/fix-cc.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 packages/tools/crust/patches/fix-cc.patch diff --git a/packages/tools/crust/patches/fix-cc.patch b/packages/tools/crust/patches/fix-cc.patch new file mode 100644 index 0000000000..1a71bdfb8a --- /dev/null +++ b/packages/tools/crust/patches/fix-cc.patch @@ -0,0 +1,11 @@ +--- a/Makefile 2021-11-04 02:18:49.000000000 +0000 ++++ b/Makefile 2021-12-07 11:30:53.188269898 +0000 +@@ -8,7 +8,7 @@ + TGT = $(OBJ)/scp + + BUILDAR = ar +-BUILDCC = cc ++BUILDCC = host-gcc + + HOST_COMPILE ?= aarch64-linux-musl- + HOSTAR = $(HOST_COMPILE)gcc-ar