1 ################################################################################
5 ################################################################################
7 GNURADIO_VERSION
= 3.7.9.1
8 GNURADIO_SITE
= http
://gnuradio.org
/releases
/gnuradio
9 GNURADIO_LICENSE
= GPLv3
+
10 GNURADIO_LICENSE_FILES
= COPYING
12 GNURADIO_SUPPORTS_IN_SOURCE_BUILD
= NO
14 # host-python-cheetah is needed for volk to compile
15 GNURADIO_DEPENDENCIES
= \
20 ifeq ($(BR2_PACKAGE_ORC
),y
)
21 GNURADIO_DEPENDENCIES
+= orc
24 GNURADIO_CONF_OPTS
= \
25 -DENABLE_DEFAULT
=OFF \
27 -DENABLE_GNURADIO_RUNTIME
=ON
29 # For third-party blocks, the gnuradio libraries are mandatory at
31 GNURADIO_INSTALL_STAGING
= YES
33 # Yes, this is silly, because -march is already known by the compiler
34 # with the internal toolchain, and passed by the external wrapper for
35 # external toolchains. Nonetheless, gnuradio does some matching on the
36 # CFLAGS to decide whether to build the NEON functions or not, and
37 # wants to see the string 'armv7' in the CFLAGS.
38 ifeq ($(BR2_ARM_CPU_ARMV7A
)$(BR2_ARM_CPU_HAS_NEON
),yy
)
39 GNURADIO_CONF_OPTS
+= -DCMAKE_C_FLAGS
="$(TARGET_CFLAGS) -march=armv7-a"
42 # As soon as -mfpu=neon is supported by the compiler, gnuradio will try
43 # to use it. But having NEON support in the compiler doesn't necessarily
44 # mean we have NEON support in our CPU.
45 ifeq ($(BR2_ARM_CPU_HAS_NEON
),)
46 GNURADIO_CONF_OPTS
+= -Dhave_mfpu_neon
=0
49 ifeq ($(BR2_PACKAGE_GNURADIO_ANALOG
),y
)
50 GNURADIO_CONF_OPTS
+= -DENABLE_GR_ANALOG
=ON
52 GNURADIO_CONF_OPTS
+= -DENABLE_GR_ANALOG
=OFF
55 ifeq ($(BR2_PACKAGE_GNURADIO_AUDIO
),y
)
56 ifeq ($(BR2_PACKAGE_ALSA_LIB
),y
)
57 GNURADIO_DEPENDENCIES
+= alsa-lib
59 ifeq ($(BR2_PACKAGE_PORTAUDIO
),y
)
60 GNURADIO_DEPENDENCIES
+= portaudio
62 GNURADIO_CONF_OPTS
+= -DENABLE_GR_AUDIO
=ON
64 GNURADIO_CONF_OPTS
+= -DENABLE_GR_AUDIO
=OFF
67 ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS
),y
)
68 GNURADIO_CONF_OPTS
+= -DENABLE_GR_BLOCKS
=ON
70 GNURADIO_CONF_OPTS
+= -DENABLE_GR_BLOCKS
=OFF
73 ifeq ($(BR2_PACKAGE_GNURADIO_CHANNELS
),y
)
74 GNURADIO_CONF_OPTS
+= -DENABLE_GR_CHANNELS
=ON
76 GNURADIO_CONF_OPTS
+= -DENABLE_GR_CHANNELS
=OFF
79 ifeq ($(BR2_PACKAGE_GNURADIO_CTRLPORT
),y
)
80 GNURADIO_CONF_OPTS
+= -DENABLE_GR_CTRLPORT
=ON
82 GNURADIO_CONF_OPTS
+= -DENABLE_GR_CTRLPORT
=OFF
85 ifeq ($(BR2_PACKAGE_GNURADIO_DIGITAL
),y
)
86 GNURADIO_CONF_OPTS
+= -DENABLE_GR_DIGITAL
=ON
88 GNURADIO_CONF_OPTS
+= -DENABLE_GR_DIGITAL
=OFF
91 ifeq ($(BR2_PACKAGE_GNURADIO_FEC
),y
)
92 GNURADIO_DEPENDENCIES
+= gsl
93 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FEC
=ON
95 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FEC
=OFF
98 ifeq ($(BR2_PACKAGE_GNURADIO_FFT
),y
)
99 GNURADIO_DEPENDENCIES
+= fftw
100 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FFT
=ON
102 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FFT
=OFF
105 ifeq ($(BR2_PACKAGE_GNURADIO_FILTER
),y
)
106 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FILTER
=ON
108 GNURADIO_CONF_OPTS
+= -DENABLE_GR_FILTER
=OFF
111 ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON
),y
)
112 GNURADIO_DEPENDENCIES
+= python
113 GNURADIO_CONF_OPTS
+= -DENABLE_PYTHON
=ON
115 GNURADIO_CONF_OPTS
+= -DENABLE_PYTHON
=OFF
118 ifeq ($(BR2_PACKAGE_GNURADIO_PAGER
),y
)
119 GNURADIO_CONF_OPTS
+= -DENABLE_PAGER
=ON
121 GNURADIO_CONF_OPTS
+= -DENABLE_PAGER
=OFF
124 ifeq ($(BR2_PACKAGE_GNURADIO_QTGUI
),y
)
125 GNURADIO_DEPENDENCIES
+= python-pyqt qwt
126 GNURADIO_CONF_OPTS
+= -DENABLE_GR_QTGUI
=ON
128 GNURADIO_CONF_OPTS
+= -DENABLE_GR_QTGUI
=OFF
131 ifeq ($(BR2_PACKAGE_GNURADIO_TRELLIS
),y
)
132 GNURADIO_CONF_OPTS
+= -DENABLE_GR_TRELLIS
=ON
134 GNURADIO_CONF_OPTS
+= -DENABLE_GR_TRELLIS
=OFF
137 ifeq ($(BR2_PACKAGE_GNURADIO_UTILS
),y
)
138 GNURADIO_CONF_OPTS
+= -DENABLE_GR_UTILS
=ON
140 GNURADIO_CONF_OPTS
+= -DENABLE_GR_UTILS
=OFF
143 $(eval
$(cmake-package
))