From: Ben Hutchings Date: Sat, 13 May 2023 11:03:26 +0000 (+0200) Subject: fixdep: Allow overriding HOSTCC and HOSTLD X-Git-Tag: archive/raspbian/6.5.6-1+rpi1^2~58 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4168f487908d33bc1dc3602e6aa6fd829cc5eb11;p=linux.git fixdep: Allow overriding HOSTCC and HOSTLD Forwarded: not-needed objtool always uses HOSTCC, HOSTLD, and HOSTAR, so we need to override these on the command line for cross-builds of linux-kbuild. But it also builds fixdep which still needs to be native in a cross-build. Add support for REALHOSTCC and REALHOSTLD variables which, if set, override HOSTCC and HOSTLD for fixdep only. Gbp-Pq: Topic debian Gbp-Pq: Name fixdep-allow-overriding-hostcc-and-hostld.patch --- diff --git a/tools/build/Makefile.include b/tools/build/Makefile.include index 8dadaa0fbb4..7407d4622de 100644 --- a/tools/build/Makefile.include +++ b/tools/build/Makefile.include @@ -2,7 +2,7 @@ build := -f $(srctree)/tools/build/Makefile.build dir=. obj fixdep: - $(Q)$(MAKE) -C $(srctree)/tools/build CFLAGS= LDFLAGS= $(OUTPUT)fixdep + $(Q)$(MAKE) -C $(srctree)/tools/build HOSTCC=$(or $(REALHOSTCC),$(HOSTCC)) HOSTLD=$(or $(REALHOSTLD),$(HOSTLD)) CFLAGS= LDFLAGS= $(OUTPUT)fixdep fixdep-clean: $(Q)$(MAKE) -C $(srctree)/tools/build clean