dbe045d016
Fix the following python build failure:
In file included from /home/buildroot/instance-0/output-1/host/include/python3.11/Python.h:38,
from /home/buildroot/instance-0/output-1/host/arc-buildroot-linux-gnu/sysroot/usr/include/pybind11/detail/common.h:266,
from /home/buildroot/instance-0/output-1/host/arc-buildroot-linux-gnu/sysroot/usr/include/pybind11/attr.h:13,
from /home/buildroot/instance-0/output-1/host/arc-buildroot-linux-gnu/sysroot/usr/include/pybind11/detail/class.h:12,
from /home/buildroot/instance-0/output-1/host/arc-buildroot-linux-gnu/sysroot/usr/include/pybind11/pybind11.h:13,
from /home/buildroot/instance-0/output-1/build/gr-osmosdr-0.2.4/python/bindings/device_python.cc:1:
/home/buildroot/instance-0/output-1/host/include/python3.11/pyport.h:596:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
596 | #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
| ^~~~~
Fixes:
- http://autobuild.buildroot.org/results/f009958c37902a224512b336fcb431903bdd0b96
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 8759d81b00
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
67 lines
1.7 KiB
Makefile
67 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# gr-osmosdr
|
|
#
|
|
################################################################################
|
|
|
|
GR_OSMOSDR_VERSION = 0.2.4
|
|
GR_OSMOSDR_SITE = $(call github,osmocom,gr-osmosdr,v$(GR_OSMOSDR_VERSION))
|
|
GR_OSMOSDR_LICENSE = GPL-3.0+
|
|
GR_OSMOSDR_LICENSE_FILES = COPYING
|
|
|
|
# gr-osmosdr prevents doing an in-source-tree build
|
|
GR_OSMOSDR_SUPPORTS_IN_SOURCE_BUILD = NO
|
|
|
|
GR_OSMOSDR_DEPENDENCIES = gnuradio host-python3
|
|
|
|
GR_OSMOSDR_CONF_OPTS = \
|
|
-DENABLE_DEFAULT=OFF \
|
|
-DENABLE_DOXYGEN=OFF
|
|
|
|
# For third-party blocks, the gr-osmosdr libraries are mandatory at
|
|
# compile time.
|
|
GR_OSMOSDR_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_GNURADIO_PYTHON),y)
|
|
GR_OSMOSDR_CONF_OPTS += \
|
|
-DENABLE_PYTHON=ON \
|
|
-DPYTHON_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR)
|
|
GR_OSMOSDR_DEPENDENCIES += python3 host-python-six
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_PYTHON=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_IQFILE),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_FILE=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=ON
|
|
GR_OSMOSDR_DEPENDENCIES += librtlsdr
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RTLSDR_TCP),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RTL_TCP=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_RFSPACE),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=ON
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_RFSPACE=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GR_OSMOSDR_HACKRF),y)
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=ON
|
|
GR_OSMOSDR_DEPENDENCIES += hackrf
|
|
else
|
|
GR_OSMOSDR_CONF_OPTS += -DENABLE_HACKRF=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|