commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/02: volk: removing ENABLE_ASM. Doesn't w


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/02: volk: removing ENABLE_ASM. Doesn't work and doens't make sense to have.
Date: Wed, 30 Jul 2014 18:27:50 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit 2017526da4134a63f633741f61bdd25b4871b021
Author: Tom Rondeau <address@hidden>
Date:   Wed Jul 30 14:27:03 2014 -0400

    volk: removing ENABLE_ASM. Doesn't work and doens't make sense to have.
---
 docs/doxygen/other/build_guide.dox |  1 -
 volk/lib/CMakeLists.txt            | 56 ++++++++++++++++++--------------------
 2 files changed, 27 insertions(+), 30 deletions(-)

diff --git a/docs/doxygen/other/build_guide.dox 
b/docs/doxygen/other/build_guide.dox
index 0422ef6..5375379 100644
--- a/docs/doxygen/other/build_guide.dox
+++ b/docs/doxygen/other/build_guide.dox
@@ -161,7 +161,6 @@ If not specified, the "Release" mode is the default.
 \li ENABLE_GR_CTRLPORT: Turn Building ControlPort. Default is True
 \li ENABLE_PERFORMANCE_COUNTERS: Turn performance counters on/off in runtime. 
Default is True.
 \li ENABLE_ORC: tells VOLK enable/disable use of Orc. Default is True.
-\li ENABLE_ASM: tells VOLK to use assembly files for proto-kernels if defined 
for the architecture. Default is True.
 \li ENABLE_STATIC_LIBS: build static library files. Default is False.
 \li CMAKE_TOOLCHAIN_FILE: A toolchain file to setup the CMake environment for 
cross-compiling.
 
diff --git a/volk/lib/CMakeLists.txt b/volk/lib/CMakeLists.txt
index 5a38a28..c768c3c 100644
--- a/volk/lib/CMakeLists.txt
+++ b/volk/lib/CMakeLists.txt
@@ -386,36 +386,34 @@ include_directories(
 #  on by default, but let users turn it off
 ########################################################################
 if(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
-set(ASM_ARCHS_AVAILABLE "armv7")
-if( NOT DEFINED ENABLE_ASM OR ENABLE_ASM )
-    # sort through a list of all architectures we have ASM for
-    # if we find one that matches our current system architecture
-    # set up the assembler flags and include the source files
-    foreach(ARCH ${ASM_ARCHS_AVAILABLE})
-        string(REGEX MATCH "^${ARCH}" ASM_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
-        if( ASM_ARCH STREQUAL "armv7" )
-            set(ASM-ATT $ENV{ASM})
-            message(STATUS "---- Adding ASM files") # we always use ATT syntax
-            message(STATUS "-- Detected armv7 architecture; enabling ASM")
-            # setup architecture specific assembler flags
-            set(ARCH_ASM_FLAGS "-mfpu=neon -g")
-            # then add the files
-            include_directories(${CMAKE_SOURCE_DIR}/kernels/volk/asm/neon)
-            file(GLOB asm_files ${CMAKE_SOURCE_DIR}/kernels/volk/asm/neon/*.s)
-            foreach(asm_file ${asm_files})
-                list(APPEND volk_sources ${asm_file})
-                message(STATUS "Adding source file: ${asm_file}")
-            endforeach(asm_file)
-        endif()
-        set(CMAKE_ASM-ATT_FLAGS_INIT ${ARCH_ASM_FLAGS})
-        enable_language(ASM-ATT) # this must be after flags_init
-        message(STATUS "asm flags: ${CMAKE_ASM-ATT_FLAGS}")
-    endforeach(ARCH)
-else()
-    message("---- NOT Adding ASM files")
-endif()
+  set(ASM_ARCHS_AVAILABLE "armv7")
+
+  # sort through a list of all architectures we have ASM for
+  # if we find one that matches our current system architecture
+  # set up the assembler flags and include the source files
+  foreach(ARCH ${ASM_ARCHS_AVAILABLE})
+    string(REGEX MATCH "^${ARCH}" ASM_ARCH "${CMAKE_SYSTEM_PROCESSOR}")
+    if( ASM_ARCH STREQUAL "armv7" )
+      set(ASM-ATT $ENV{ASM})
+      message(STATUS "---- Adding ASM files") # we always use ATT syntax
+      message(STATUS "-- Detected armv7 architecture; enabling ASM")
+      # setup architecture specific assembler flags
+      set(ARCH_ASM_FLAGS "-mfpu=neon -g")
+      # then add the files
+      include_directories(${CMAKE_SOURCE_DIR}/kernels/volk/asm/neon)
+      file(GLOB asm_files ${CMAKE_SOURCE_DIR}/kernels/volk/asm/neon/*.s)
+      foreach(asm_file ${asm_files})
+        list(APPEND volk_sources ${asm_file})
+        message(STATUS "Adding source file: ${asm_file}")
+      endforeach(asm_file)
+    endif()
+    set(CMAKE_ASM-ATT_FLAGS_INIT ${ARCH_ASM_FLAGS})
+    enable_language(ASM-ATT) # this must be after flags_init
+    message(STATUS "asm flags: ${CMAKE_ASM-ATT_FLAGS}")
+  endforeach(ARCH)
+
 else(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
-    message(STATUS "Not enabling ASM support. CMake >= 2.8.10 required.")
+  message(STATUS "Not enabling ASM support. CMake >= 2.8.10 required.")
 endif(${CMAKE_VERSION} VERSION_GREATER "2.8.9")
 
 ########################################################################



reply via email to

[Prev in Thread] Current Thread [Next in Thread]