Skip to content

Commit

Permalink
fix(driver): CC variable for debian
Browse files Browse the repository at this point in the history
In Debian 12 we have `CC= gcc-12`, so we have to wrap it in quotes when
setting it to the configure system env

Signed-off-by: Angelo Puglisi <angelopuglisi86@gmail.com>
  • Loading branch information
deepskyblue86 authored and poiana committed Mar 14, 2024
1 parent 5fbb799 commit b78fc06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/configure/Makefile.inc.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MODULE_MAKEFILE_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
# Run the module build.sh (wrapper for make) script with an empty environment,
# but pass PATH, KERNELDIR and eventually (if set) CC and KBUILD_MODPOST_WARN.
# The latter ones are used by driverkit build templates.
HAS_@CONFIGURE_MODULE@ := $(shell env -i CC=$(CC) KBUILD_MODPOST_WARN=$(KBUILD_MODPOST_WARN) PATH="$(PATH)" KERNELDIR="$(KERNELDIR)" sh $(MODULE_MAKEFILE_DIR)/build.sh ; echo $$?)
HAS_@CONFIGURE_MODULE@ := $(shell env -i CC="$(CC)" KBUILD_MODPOST_WARN="$(KBUILD_MODPOST_WARN)" PATH="$(PATH)" KERNELDIR="$(KERNELDIR)" sh $(MODULE_MAKEFILE_DIR)/build.sh ; echo $$?)

ifeq ($(HAS_@CONFIGURE_MODULE@),0)
$(info [configure-kmod] Setting HAS_@CONFIGURE_MODULE@ flag)
Expand Down

0 comments on commit b78fc06

Please sign in to comment.