[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Problems building GNURadio
From: |
ttsou |
Subject: |
Re: [Discuss-gnuradio] Problems building GNURadio |
Date: |
Mon, 22 Sep 2014 18:10:37 -0700 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Mon, Sep 22, 2014 at 04:27:13PM -0700, Tom Tsou wrote:
> On Mon, Sep 22, 2014 at 4:08 PM, Philip Balister <address@hidden> 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
- Re: [Discuss-gnuradio] Problems building GNURadio, (continued)
- Re: [Discuss-gnuradio] Problems building GNURadio, Nowlan, Sean, 2014/09/21
- Re: [Discuss-gnuradio] Problems building GNURadio, Douglas Geiger, 2014/09/21
- Re: [Discuss-gnuradio] Problems building GNURadio, Michal Jakubiak, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Douglas Geiger, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Michal Jakubiak, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Tom Tsou, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Philip Balister, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Tom Tsou, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Vanush Vaswani, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio, Tom Tsou, 2014/09/22
- Re: [Discuss-gnuradio] Problems building GNURadio,
ttsou <=