mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
Revert "Revert "gpu: nvgpu: add turing support""
This reverts commit 278842d6ff4e15467e0b8761c6e1b2a05f926f91. Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Change-Id: I37f47c137c048ddc3a728e143b6f30be525de120 Reviewed-on: https://git-master.nvidia.com/r/1918622
This commit is contained in:
committed by
Abdul Salam
parent
b74a4dbd26
commit
3bda3a0678
@@ -39,8 +39,6 @@ CORE_OUT=$(OUT)/nvgpu_unit_core
|
||||
# Nvgpu driver code.
|
||||
NVGPU_SRC=$(TWD)/../drivers/gpu/nvgpu
|
||||
NVGPU_OUT=$(OUT)/libnvgpu
|
||||
# Nvgpu_next driver code.
|
||||
NVGPU_NEXT_SRC=$(TWD)/../../nvgpu-next/drivers/gpu/nvgpu
|
||||
|
||||
# Unit tests themselves.
|
||||
UNIT_SRC=$(TWD)/units
|
||||
@@ -49,8 +47,6 @@ UNIT_OUT=$(OUT)/units
|
||||
INCLUDES= \
|
||||
-I$(NVGPU_SRC) \
|
||||
-I$(NVGPU_SRC)/include \
|
||||
-I$(NVGPU_NEXT_SRC) \
|
||||
-I$(NVGPU_NEXT_SRC)/include \
|
||||
-I$(TWD)/../include \
|
||||
-I$(TWD)/../include/uapi \
|
||||
-I$(TWD)/include
|
||||
@@ -111,14 +107,6 @@ $(NVGPU_OUT)/%.o : $(NVGPU_SRC)/%.c $(HEADERS)
|
||||
fi
|
||||
$(CC) --coverage $(CFLAGS) $(configs) -c -o $@ $<
|
||||
|
||||
# Default build target for all the nvgpu-next driver object files we want to
|
||||
# build in userspace. These too get bundled into libnvgpu-drv.so.
|
||||
$(NVGPU_OUT)/%.o : $(NVGPU_NEXT_SRC)/%.c $(HEADERS) $(HEADERS_NEXT)
|
||||
@if [ ! -d $(dir $@) ] ; then \
|
||||
mkdir -p $(dir $@) ; \
|
||||
fi
|
||||
$(CC) --coverage $(CFLAGS) $(configs) -c -o $@ $<
|
||||
|
||||
# Build target for unit test files. These are not part of the libnvgpu-drv.so.
|
||||
# These comprise the unit test framework.
|
||||
$(CORE_OUT)/%.o : $(CORE_SRC)/%.c $(CORE_HEADERS)
|
||||
|
||||
@@ -21,9 +21,8 @@
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
include $(NVGPU_SRC)/Makefile.sources
|
||||
-include $(NVGPU_NEXT_SRC)/Makefile.sources
|
||||
|
||||
OBJS := $(srcs:%.c=$(NVGPU_OUT)/%.o) $(srcs_next:%.c=$(NVGPU_OUT)/%.o)
|
||||
OBJS := $(srcs:%.c=$(NVGPU_OUT)/%.o)
|
||||
|
||||
HEADERS := \
|
||||
$(NVGPU_SRC)/include/nvgpu/*.h \
|
||||
@@ -31,7 +30,8 @@ HEADERS := \
|
||||
$(NVGPU_SRC)/gk20a/*.h \
|
||||
$(NVGPU_SRC)/gm20b/*.h \
|
||||
$(NVGPU_SRC)/gp10b/*.h \
|
||||
$(NVGPU_SRC)/gv11b/*.h
|
||||
$(NVGPU_SRC)/gv11b/*.h \
|
||||
$(NVGPU_SRC)/tu104/*.h
|
||||
|
||||
CORE_OBJS := \
|
||||
$(CORE_OUT)/unit_main.o \
|
||||
|
||||
Reference in New Issue
Block a user