| Submitter | Philip Balister |
|---|---|
| Date | Jan. 25, 2013, 7:24 p.m. |
| Message ID | <1359141866-19402-1-git-send-email-philip@balister.org> |
| Download | mbox | patch |
| Permalink | /patch/43403/ |
| State | Accepted, archived |
| Commit | 2248f8557e9b741bbe1417f128fd35fc51013d33 |
| Headers | show |
Comments
On Fri, Jan 25, 2013 at 02:24:26PM -0500, Philip Balister wrote: > I hear from users that they are fiddling with the recipe to build gnuradio > with different options for various purposes. Start adding PACKAGECONFIG > support to reduce user editing of the recipe. > > Currently these options are supported: > > uhd : enable support for UHD based hardware. > grc: Build gnuradio companion. > qtgui: Build the qtgui component. Applied, thanks. > > Signed-off-by: Philip Balister <philip@balister.org> > --- > .../recipes-connectivity/gnuradio/gnuradio_git.bb | 30 +++++++++++++++++++--- > 1 file changed, 26 insertions(+), 4 deletions(-) > > diff --git a/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb b/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb > index e1a023f..85f52fc 100644 > --- a/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb > +++ b/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb > @@ -4,8 +4,17 @@ SECTION = "apps" > LICENSE = "GPLv3" > LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > > -DEPENDS = "uhd gsl fftwf python alsa-lib boost cppunit \ > - swig-native python-numpy python-pygtk orc qt4-x11-free qwt" > +DEPENDS = "gsl fftwf python alsa-lib boost cppunit \ > + swig-native python-numpy python-cheetah-native orc" > + > +#Available PACKAGECONFIG options are qt grc uhd > +PACKAGECONFIG ??= "qtgui grc uhd" > + > +PACKAGECONFIG[uhd] = "-DENABLE_GR_UHD=ON,-DENABLE_GR_UHD=OFF,uhd," > +PACKAGECONFIG[grc] = "-DENABLE_GRC=ON,-DENABLE_GRC=OFF,python-pygtk python-cheetah, " > + > +PACKAGECONFIG[qtgui] = "-DENABLE_GR_QTGUI=ON,-DENABLE_GR_QTGUI=OFF,qt4-x11-free qwt, " > + > > inherit distutils-base cmake pkgconfig > > @@ -16,8 +25,9 @@ RDEPENDS_${PN} = "python-core python-audio python-threading python-codecs \ > python-lang python-textutils python-shell python-pickle \ > python-compiler python-pkgutil python-pydoc python-mmap \ > python-netclient python-difflib \ > - python-pprint python-numpy python-pygtk python-lxml \ > + python-pprint python-numpy \ > " > +RDEPENDS_${PN}-grc = "python-pygtk python-lxml python-cheetah" > > C_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" > > @@ -68,7 +78,19 @@ S="${WORKDIR}/git" > OECMAKE_BUILDPATH = "${S}/build" > OECMAKE_SOURCEPATH = "${S}" > > -EXTRA_OECMAKE = "-DENABLE_GR_ATSC=FALSE -DENABLE_GR_QTGUI=ON -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VIDEO_SDL=OFF -DQT_HEADERS_DIR=${STAGING_INCDIR}/qt4 -DQT_QTCORE_INCLUDE_DIR=${STAGING_INCDIR}/qt4/QtCore -DQT_LIBRARY_DIR=${STAGING_LIBDIR} -DQT_QTCORE_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtCore.so -DQT_QTGUI_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtGui.so -DENABLE_GR_FCD=OFF -DIMPORT_EXECUTABLES=${S}/gr-vocoder/lib/generate_codebook.txt" > +EXTRA_OECMAKE = "-DENABLE_GR_ATSC=FALSE \ > + -DENABLE_GR_FCD=OFF \ > + -DENABLE_GR_WXGUI=OFF \ > + -DENABLE_GR_VIDEO_SDL=OFF \ > + -DIMPORT_EXECUTABLES=${S}/gr-vocoder/lib/generate_codebook.txt \ > + -DQT_HEADERS_DIR=${STAGING_INCDIR}/qt4 \ > + -DQT_QTCORE_INCLUDE_DIR=${STAGING_INCDIR}/qt4/QtCore \ > + -DQT_LIBRARY_DIR=${STAGING_LIBDIR} \ > + -DQT_QTCORE_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtCore.so \ > + -DQT_QTGUI_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtGui.so \ > +" > + > +inherit distutils-base cmake pkgconfig > > EXTRA_OEMAKE = "-C ${OECMAKE_BUILDPATH}" > > -- > 1.7.11.7 > > > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Patch
diff --git a/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb b/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb index e1a023f..85f52fc 100644 --- a/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb +++ b/meta-oe/recipes-connectivity/gnuradio/gnuradio_git.bb @@ -4,8 +4,17 @@ SECTION = "apps" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" -DEPENDS = "uhd gsl fftwf python alsa-lib boost cppunit \ - swig-native python-numpy python-pygtk orc qt4-x11-free qwt" +DEPENDS = "gsl fftwf python alsa-lib boost cppunit \ + swig-native python-numpy python-cheetah-native orc" + +#Available PACKAGECONFIG options are qt grc uhd +PACKAGECONFIG ??= "qtgui grc uhd" + +PACKAGECONFIG[uhd] = "-DENABLE_GR_UHD=ON,-DENABLE_GR_UHD=OFF,uhd," +PACKAGECONFIG[grc] = "-DENABLE_GRC=ON,-DENABLE_GRC=OFF,python-pygtk python-cheetah, " + +PACKAGECONFIG[qtgui] = "-DENABLE_GR_QTGUI=ON,-DENABLE_GR_QTGUI=OFF,qt4-x11-free qwt, " + inherit distutils-base cmake pkgconfig @@ -16,8 +25,9 @@ RDEPENDS_${PN} = "python-core python-audio python-threading python-codecs \ python-lang python-textutils python-shell python-pickle \ python-compiler python-pkgutil python-pydoc python-mmap \ python-netclient python-difflib \ - python-pprint python-numpy python-pygtk python-lxml \ + python-pprint python-numpy \ " +RDEPENDS_${PN}-grc = "python-pygtk python-lxml python-cheetah" C_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" @@ -68,7 +78,19 @@ S="${WORKDIR}/git" OECMAKE_BUILDPATH = "${S}/build" OECMAKE_SOURCEPATH = "${S}" -EXTRA_OECMAKE = "-DENABLE_GR_ATSC=FALSE -DENABLE_GR_QTGUI=ON -DENABLE_GR_WXGUI=OFF -DENABLE_GR_VIDEO_SDL=OFF -DQT_HEADERS_DIR=${STAGING_INCDIR}/qt4 -DQT_QTCORE_INCLUDE_DIR=${STAGING_INCDIR}/qt4/QtCore -DQT_LIBRARY_DIR=${STAGING_LIBDIR} -DQT_QTCORE_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtCore.so -DQT_QTGUI_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtGui.so -DENABLE_GR_FCD=OFF -DIMPORT_EXECUTABLES=${S}/gr-vocoder/lib/generate_codebook.txt" +EXTRA_OECMAKE = "-DENABLE_GR_ATSC=FALSE \ + -DENABLE_GR_FCD=OFF \ + -DENABLE_GR_WXGUI=OFF \ + -DENABLE_GR_VIDEO_SDL=OFF \ + -DIMPORT_EXECUTABLES=${S}/gr-vocoder/lib/generate_codebook.txt \ + -DQT_HEADERS_DIR=${STAGING_INCDIR}/qt4 \ + -DQT_QTCORE_INCLUDE_DIR=${STAGING_INCDIR}/qt4/QtCore \ + -DQT_LIBRARY_DIR=${STAGING_LIBDIR} \ + -DQT_QTCORE_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtCore.so \ + -DQT_QTGUI_LIBRARY_RELEASE=${STAGING_LIBDIR}/libQtGui.so \ +" + +inherit distutils-base cmake pkgconfig EXTRA_OEMAKE = "-C ${OECMAKE_BUILDPATH}"
I hear from users that they are fiddling with the recipe to build gnuradio with different options for various purposes. Start adding PACKAGECONFIG support to reduce user editing of the recipe. Currently these options are supported: uhd : enable support for UHD based hardware. grc: Build gnuradio companion. qtgui: Build the qtgui component. Signed-off-by: Philip Balister <philip@balister.org> --- .../recipes-connectivity/gnuradio/gnuradio_git.bb | 30 +++++++++++++++++++--- 1 file changed, 26 insertions(+), 4 deletions(-)