Skip to content

Commit

Permalink
addin CC arg to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Jul 9, 2024
1 parent b86d05e commit 7181767
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions data_gpu/driver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
# contained in the LICENSE.txt file.
# ----------------------------------------------------------------------------

# Optional path to NVIDIA drivers, if not specified, use empty string.
# Args to this Makefile
NVIDIA_DRIVERS ?= ""
CC ?= ""

# Define the module name.
NAME := datagpu
Expand Down Expand Up @@ -63,10 +64,10 @@ obj-m := $(NAME).o
# Default target: Display git version and build the module.
all:
@echo $(GITV)
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(HOME) modules
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) CC=$(CC) -C $(KERNELDIR) M=$(HOME) modules

# Clean target: Remove built module files and object files.
clean:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNELDIR) M=$(HOME) clean
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) CC=$(CC) -C $(KERNELDIR) M=$(HOME) clean
rm -f $(OBJS)

0 comments on commit 7181767

Please sign in to comment.