diff options
author | Per Åstrand <per.astrand@arm.com> | 2021-09-30 09:57:34 +0200 |
---|---|---|
committer | Per Åstrand <per.astrand@arm.com> | 2021-09-30 16:35:22 +0200 |
commit | 9f36f2e1ec19e59b1d390b570fe56f6debdb6525 (patch) | |
tree | bf5816784fe0a6ceef19042f645715d59531d3d2 /remoteproc/CMakeLists.txt | |
parent | 95fec03deff22b4395430e6fb39a37505c375a35 (diff) | |
download | ethos-u-linux-driver-stack-9f36f2e1ec19e59b1d390b570fe56f6debdb6525.tar.gz |
Add Juno FPGA reset kernel module
Change-Id: I93708d609d77484770bd4cea9c4a7cf86361c5ea
Diffstat (limited to 'remoteproc/CMakeLists.txt')
-rw-r--r-- | remoteproc/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/remoteproc/CMakeLists.txt b/remoteproc/CMakeLists.txt index 1532f6c..fa3491a 100644 --- a/remoteproc/CMakeLists.txt +++ b/remoteproc/CMakeLists.txt @@ -36,11 +36,13 @@ file(GLOB_RECURSE OBJ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.c") list(TRANSFORM OBJ REPLACE "^(.*)[.]c" "\\1.o") list(TRANSFORM OBJ PREPEND ${CMAKE_CURRENT_SOURCE_DIR}/) +set(MODULES CONFIG_ARM_ETHOSU_RPROC=m CONFIG_ARM_SGM775_ETHOSU_RESET=m CONFIG_ARM_JUNO_FPGA_RESET=m) + # Build the kernel module add_custom_target(ethosu-remoteproc-module ALL COMMAND ${CMAKE_MAKE_PROGRAM} -C ${KDIR} EXTRA_CFLAGS=-I${KDIR}/../../../drivers/remoteproc M=${CMAKE_CURRENT_SOURCE_DIR} - CONFIG_ETHOSU_RESET=m CONFIG_ETHOSU_REMOTEPROC=m + ${MODULES} CROSS_COMPILE=aarch64-linux-gnu- ARCH=arm64 modules BYPRODUCTS ${CMAKE_CURRENT_SOURCE_DIR}/ethosu_remoteproc.ko @@ -49,6 +51,6 @@ add_custom_target(ethosu-remoteproc-module ALL ${CMAKE_CURRENT_SOURCE_DIR}/Module.symvers ${OBJ} DEPENDS ${SOURCES} Kbuild Kconfig - COMMENT "Building ethosu_remoteproc.ko" + COMMENT "Building remoteproc modules" VERBATIM) |