History

kbuild: install-extmod-build: add missing quotation marks for CC variable

While attempting to build a Debian packages with CC="ccache gcc", I saw the following error as builddeb builds linux-headers-$KERNELVERSION: make HOSTCC=ccache gcc VPATH= srcroot=. -f ./scripts/Makefile.build obj=debian/linux-headers-6.14.0-rc1/usr/src/linux-headers-6.14.0-rc1/scripts make[6]: *** No rule to make target 'gcc'. Stop. Upon investigation, it seems that one instance of $(CC) variable reference in ./scripts/package/install-extmod-build was missing quotation marks, causing the above error. Add the missing quotation marks around $(CC) to fix build.

WangYuli committed 1 year ago

Commit f354fc81 parent ba958ac1 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/package/install-extmod-build+1−1
@@ -63,7 +63,7 @@ if [ "${CC}" != "${HOSTCC}" ]; then · 62 unmodified lines
63 # Clear VPATH and srcroot because the source files reside in the output63 # Clear VPATH and srcroot because the source files reside in the output
64 # directory.64 # directory.
65 # shellcheck disable=SC2016 # $(MAKE), $(CC), and $(build) will be expanded by Make65 # shellcheck disable=SC2016 # $(MAKE), $(CC), and $(build) will be expanded by Make
66 "${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC=$(CC) VPATH= srcroot=. $(build)='"${destdir}"/scripts66 "${MAKE}" run-command KBUILD_RUN_COMMAND='+$(MAKE) HOSTCC="$(CC)" VPATH= srcroot=. $(build)='"${destdir}"/scripts
67 67
68 rm -f "${destdir}/scripts/Kbuild"68 rm -f "${destdir}/scripts/Kbuild"
69fi69fi