diff options
author | Lukas Rusak <lorusak@gmail.com> | 2020-03-03 16:55:32 -0800 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2020-03-22 16:58:55 -0700 |
commit | 7f70b5b7fe941615ccb7e253bd7b78bbd2e18323 (patch) | |
tree | 6bcbe64e91b7e02f5e73802a411eb3c3cd272b9c /cmake/scripts/linux | |
parent | 1ef5a03c4e1a8cade7aa03489bf3f6eaccc17b87 (diff) |
CDMAHeapBufferObject: add new class to abstract new dma-heap buffers
Diffstat (limited to 'cmake/scripts/linux')
-rw-r--r-- | cmake/scripts/linux/ArchSetup.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/scripts/linux/ArchSetup.cmake b/cmake/scripts/linux/ArchSetup.cmake index fd114a23d5..bfdb5d3edc 100644 --- a/cmake/scripts/linux/ArchSetup.cmake +++ b/cmake/scripts/linux/ArchSetup.cmake @@ -96,6 +96,13 @@ else() message(WARNING, "udmabuf: include/linux/udmabuf.h not found") endif() +check_include_files("linux/dma-heap.h" HAVE_LINUX_DMA_HEAP) +if(HAVE_LINUX_DMA_HEAP) + list(APPEND ARCH_DEFINES "-DHAVE_LINUX_DMA_HEAP=1") +else() + message(WARNING, "dma-heap: include/linux/dma-heap.h not found") +endif() + include(CheckSymbolExists) set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE") check_symbol_exists("mkostemp" "stdlib.h" HAVE_MKOSTEMP) |