From 1c5b6bb4f7fd843433b922ed1976d4a05f46a27c Mon Sep 17 00:00:00 2001 From: Hank Anderson Date: Wed, 28 Jan 2015 16:33:48 -0600 Subject: [PATCH] Added CORE define to config.h in prebuild.cmake (temporarily). --- cmake/prebuild.cmake | 4 ++++ driver/level2/CMakeLists.txt | 2 ++ 2 files changed, 6 insertions(+) diff --git a/cmake/prebuild.cmake b/cmake/prebuild.cmake index a4faa131d..76f74e049 100644 --- a/cmake/prebuild.cmake +++ b/cmake/prebuild.cmake @@ -106,4 +106,8 @@ message(STATUS "GETARCH LOG: ${GETARCH_LOG}") # temporarily hardcoded to get system.cmake working set(NUM_CORES 4) set(CORE "GENERIC") +# TODO: this should be done by getarch! see above +file(APPEND ${TARGET_CONF} + "#define ${CORE}" +) diff --git a/driver/level2/CMakeLists.txt b/driver/level2/CMakeLists.txt index 8dc37a880..d06d03ccf 100644 --- a/driver/level2/CMakeLists.txt +++ b/driver/level2/CMakeLists.txt @@ -1,4 +1,6 @@ +include_directories(${CMAKE_SOURCE_DIR}) + # sources that need to be compiled twice, once with no flags and once with LOWER set(UL_SOURCES sbmv_k.c