1 ################################################################################
5 ################################################################################
7 GNURADIO_VERSION = 3.7.5
8 GNURADIO_SITE = http://gnuradio.org/redmine/attachments/download/792
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 GNURADIO_CONF_OPTS = \
21 -DENABLE_DEFAULT=OFF \
23 -DENABLE_GNURADIO_RUNTIME=ON
25 # For third-party blocks, the gnuradio libraries are mandatory at
27 GNURADIO_INSTALL_STAGING = YES
29 # Yes, this is silly, because -march is already known by the compiler
30 # with the internal toolchain, and passed by the external wrapper for
31 # external toolchains. Nonetheless, gnuradio does some matching on the
32 # CFLAGS to decide whether to build the NEON functions or not, and
33 # wants to see the string 'armv7' in the CFLAGS.
34 ifeq ($(BR2_ARM_CPU_ARMV7A)$(BR2_ARM_CPU_HAS_NEON),yy)
35 GNURADIO_CONF_OPTS += -DCMAKE_C_FLAGS="-march=armv7-a"
38 # As soon as -mfpu=neon is supported by the compiler, gnuradio will try
39 # to use it. But having NEON support in the compiler doesn't necessarily
40 # mean we have NEON support in our CPU.
41 ifeq ($(BR2_ARM_CPU_HAS_NEON),)
42 GNURADIO_CONF_OPTS += -Dhave_mfpu_neon=0
45 ifeq ($(BR2_PACKAGE_GNURADIO_BLOCKS),y)
46 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=ON
48 GNURADIO_CONF_OPTS += -DENABLE_GR_BLOCKS=OFF
51 ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
52 GNURADIO_DEPENDENCIES += python
53 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=ON
55 GNURADIO_CONF_OPTS += -DENABLE_PYTHON=OFF
58 $(eval $(cmake-package))