On Mon, Sep 22, 2014 at 04:27:13PM -0700, Tom Tsou wrote:
> On Mon, Sep 22, 2014 at 4:08 PM, Philip Balister <philip@balister.org> wrote:
> > On 09/22/2014 02:13 PM, Tom Tsou wrote:
> >> cmake ../ -DCMAKE_C_FLAGS="-march=armv7-a -mthumb-interwork
> >> -mfloat-abi=hard -mfpu=neon-vfpv4 -mtune=cortex-a15"
> >> -DCMAKE_ASM_FLAGS="-march=armv7-a -mthumb-interwork -mfloat-abi=hard
> >> -mfpu=neon-vfpv4 -mtune=cortex-a15"
> >>
> >
> > We should add the ASM fags to the toolchain files.
>
> For native build, the missing piece is architecture detection. Until
> that works sufficiently well, some type of setting(s) will need to
> feed in manually.
The following works after adjusting for hard/softfp appropriately. The
result is cleaner than the above C and ASM flags, but, regardless, the
selection of CPU and hard-float ABI needs come from the user at some
point.
cmake ../ -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchains/arm_cortex_a8_native.cmake
diff --git a/cmake/Toolchains/arm_cortex_a8_native.cmake b/cmake/Toolchains/arm_cortex_a8_native.cmake
index 8e60eaa..9764577 100644
--- a/cmake/Toolchains/arm_cortex_a8_native.cmake
+++ b/cmake/Toolchains/arm_cortex_a8_native.cmake
@@ -6,3 +6,4 @@ set(CMAKE_CXX_COMPILER g++)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_FLAGS "-march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE) #same flags for C sources
+set(CMAKE_ASM_FLAGS ${CMAKE_CXX_FLAGS} CACHE STRING "" FORCE) #same flags for ASM sources
-TT
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment