cmake: fix POSTK_DEBUG definitions (again)

Change-Id: I064b81115102bcbd2c3787c5743009be5032469e
This commit is contained in:
Masamichi Takagi
2021-03-03 17:17:59 +09:00
committed by Masamichi Takagi
parent eba2131f34
commit 687eae3a11
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ if (ENABLE_LINUX_WORK_IRQ_FOR_IKC)
endif()
if (BUILD_TARGET STREQUAL "smp-arm64")
execute_process(COMMAND bash -c "find ${CMAKE_CURRENT_SOURCE_DIR} -name \"*.[chS]\"|xargs -r grep -oE \"^#if.*def.*POSTK_DEBUG[^ ]*\" | cut -d':' -f2 | cut -d' ' -f2 | sort | uniq | awk '{print \"-D\"\$0 }' | xargs"
execute_process(COMMAND bash -c "find -L ${CMAKE_CURRENT_SOURCE_DIR} -name \"*.[chS]\"|xargs -r grep -oE \"^#if.*def.*POSTK_DEBUG[^ ]*\" | cut -d':' -f2 | cut -d' ' -f2 | sort | uniq | awk '{print \"-D\"\$0 }' | xargs"
OUTPUT_VARIABLE POSTK_DEBUG_DEFINES OUTPUT_STRIP_TRAILING_WHITESPACE)
add_definitions("${POSTK_DEBUG_DEFINES}")
set(KBUILD_C_FLAGS "${KBUILD_C_FLAGS} ${POSTK_DEBUG_DEFINES}")

2
ihk

Submodule ihk updated: 797a23795a...1bc915de4e