Browse files

Build system updated for ODROID-X (arm7).

  • Loading branch information...
1 parent e2345b4 commit 4f4ceb22f975b041f08290505e1ce8f0e9a19f9e @amontefusco amontefusco committed Oct 15, 2012
Showing with 62 additions and 3 deletions.
  1. +2 −2 Makefile.am
  2. +30 −1 configure.ac
  3. +10 −0 trunk/src/perseus/configure.ac
  4. +10 −0 trunk/src/rtlsdr/configure.ac
  5. +10 −0 trunk/src/usrp/configure.ac
View
4 Makefile.am
@@ -2,8 +2,8 @@ ACLOCAL_AMFLAGS=-I build-aux
SUBDIRS = trunk/src/softrock trunk/src/DttSP trunk/src/dspserver \
trunk/src/widget-server trunk/src/server trunk/bin \
- trunk/src/QtRadio trunk/src/pylauncher trunk/src/hiqsdr \
- trunk/src/sdriq \
+ trunk/src/pylauncher trunk/src/hiqsdr trunk/src/sdriq \
+ @MAKE_QTRADIO@ \
@MAKE_PERSEUS@ @MAKE_USRP@ @MAKE_RTLSDR@
View
31 configure.ac
@@ -28,6 +28,12 @@ AM_PROG_CC_C_O
AM_PATH_PYTHON([2.5],, [:])
#
+# attempt to build the GUI
+#
+have_GUI=yes
+
+
+#
# Checking for build cpu
# and, if 64 bit, add some linking option
#
@@ -62,6 +68,20 @@ case $build_cpu in
export CXXFLAGS
AC_MSG_NOTICE([${CFLAGS}])
AC_MSG_NOTICE([${CXXFLAGS}])
+ # no GUI available on Raspberry PI
+ have_GUI=no
+ ;;
+
+ armv7l)
+ AC_MSG_NOTICE([Platform: ARM 7])
+ CFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ CXXFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ export CFLAGS
+ export CXXFLAGS
+ AC_MSG_NOTICE([${CFLAGS}])
+ AC_MSG_NOTICE([${CXXFLAGS}])
+ # no GUI available on ODROID-X
+ have_GUI=no
;;
esac
@@ -406,7 +426,16 @@ fi
#
# Subpackage QtRadio is unconditionally compiled
#
-AC_CONFIG_SUBDIRS([trunk/src/QtRadio])
+
+if test "x${have_GUI}" = xyes; then
+ AC_MSG_NOTICE([
+-----------------------------------
+ QtRadio build enabled.
+-----------------------------------])
+ AC_CONFIG_SUBDIRS([trunk/src/QtRadio])
+ MAKE_QTRADIO="trunk/src/QtRadio"
+ AC_SUBST([MAKE_QTRADIO])
+fi
AC_CONFIG_FILES([Makefile
View
10 trunk/src/perseus/configure.ac
@@ -53,6 +53,16 @@ case $build_cpu in
AC_MSG_NOTICE([${CXXFLAGS}])
;;
+ armv7l)
+ AC_MSG_NOTICE([Platform: ARM 7])
+ CFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ CXXFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ export CFLAGS
+ export CXXFLAGS
+ AC_MSG_NOTICE([${CFLAGS}])
+ AC_MSG_NOTICE([${CXXFLAGS}])
+ ;;
+
esac
# compiling `bandscope.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
View
10 trunk/src/rtlsdr/configure.ac
@@ -54,6 +54,16 @@ case $build_cpu in
AC_MSG_NOTICE([${CXXFLAGS}])
;;
+ armv7l)
+ AC_MSG_NOTICE([Platform: ARM 7])
+ CFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ CXXFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ export CFLAGS
+ export CXXFLAGS
+ AC_MSG_NOTICE([${CFLAGS}])
+ AC_MSG_NOTICE([${CXXFLAGS}])
+ ;;
+
esac
# Checks for libraries.
View
10 trunk/src/usrp/configure.ac
@@ -55,6 +55,16 @@ case $build_cpu in
AC_MSG_NOTICE([${CXXFLAGS}])
;;
+ armv7l)
+ AC_MSG_NOTICE([Platform: ARM 7])
+ CFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ CXXFLAGS="-O3 -pipe -march=armv7 -mfpu=neon -fno-tree-vectorize -fopenmp"
+ export CFLAGS
+ export CXXFLAGS
+ AC_MSG_NOTICE([${CFLAGS}])
+ AC_MSG_NOTICE([${CXXFLAGS}])
+ ;;
+
esac
# Checks for libraries.

0 comments on commit 4f4ceb2

Please sign in to comment.