forked from starfive-tech/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvdla: Support compilation as module
Signed-off-by: Emil Renner Berthing <[email protected]>
- Loading branch information
Showing
4 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
config NVDLA | ||
bool "The NVIDIA Deep Learning Accelerator" | ||
default n | ||
tristate "The NVIDIA Deep Learning Accelerator" | ||
depends on DRM | ||
select DRM_GEM_CMA_HELPER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
|
||
ccflags-$(CONFIG_NVDLA) += -I$(srctree)/$(src) | ||
ccflags-$(CONFIG_NVDLA) += -I$(srctree)/$(src)/include | ||
ccflags-y += -I$(srctree)/$(src) | ||
ccflags-y += -I$(srctree)/$(src)/include | ||
|
||
obj-$(CONFIG_NVDLA) += scheduler.o | ||
obj-$(CONFIG_NVDLA) += engine.o | ||
obj-$(CONFIG_NVDLA) += bdma.o | ||
obj-$(CONFIG_NVDLA) += conv.o | ||
obj-$(CONFIG_NVDLA) += sdp.o | ||
obj-$(CONFIG_NVDLA) += cdp.o | ||
obj-$(CONFIG_NVDLA) += pdp.o | ||
obj-$(CONFIG_NVDLA) += rubik.o | ||
obj-$(CONFIG_NVDLA) += cache.o | ||
obj-$(CONFIG_NVDLA) += common.o | ||
obj-$(CONFIG_NVDLA) += engine_data.o | ||
obj-$(CONFIG_NVDLA) += engine_isr.o | ||
obj-$(CONFIG_NVDLA) += engine_debug.o | ||
obj-$(CONFIG_NVDLA) += nvdla_core_callbacks.o | ||
obj-$(CONFIG_NVDLA) += nvdla_gem.o | ||
nvdla-y := scheduler.o \ | ||
engine.o \ | ||
bdma.o \ | ||
conv.o \ | ||
sdp.o \ | ||
cdp.o \ | ||
pdp.o \ | ||
rubik.o \ | ||
cache.o \ | ||
common.o \ | ||
engine_data.o \ | ||
engine_isr.o \ | ||
engine_debug.o \ | ||
nvdla_core_callbacks.o \ | ||
nvdla_gem.o | ||
|
||
obj-$(CONFIG_NVDLA) += nvdla.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters