From: Philip Balister <philip@balister.org>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] uhd: Fix compile errors
Date: Mon, 01 Jul 2013 14:34:53 -0400 [thread overview]
Message-ID: <51D1CBCD.60207@balister.org> (raw)
In-Reply-To: <1372663401-12751-1-git-send-email-raj.khem@gmail.com>
Acked-by: Philip Balister <philip@balister.org>
I'll make sure the patch gets into the upstream codebase and drop the
patch ASAP.
Thanks,
Philip
On 07/01/2013 03:23 AM, Khem Raj wrote:
> uhd would fail with wrong scope for uint8_t type
> errors.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> CC: Philip Balister <philip@balister.org>
> ---
> .../0001-use-uint8_t-from-boost-namespace.patch | 29 ++++++++++++++++++++
> meta-oe/recipes-connectivity/uhd/uhd_git.bb | 3 +-
> 2 files changed, 31 insertions(+), 1 deletion(-)
> create mode 100644 meta-oe/recipes-connectivity/uhd/uhd/0001-use-uint8_t-from-boost-namespace.patch
>
> diff --git a/meta-oe/recipes-connectivity/uhd/uhd/0001-use-uint8_t-from-boost-namespace.patch b/meta-oe/recipes-connectivity/uhd/uhd/0001-use-uint8_t-from-boost-namespace.patch
> new file mode 100644
> index 0000000..8978ddc
> --- /dev/null
> +++ b/meta-oe/recipes-connectivity/uhd/uhd/0001-use-uint8_t-from-boost-namespace.patch
> @@ -0,0 +1,29 @@
> +From 317f6f08cedf005ce1f2d6f0d04cfb2659863423 Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Sun, 30 Jun 2013 22:10:50 -0700
> +Subject: [PATCH] use uint8_t from boost namespace
> +
> +Fixes errors like
> +codec_ctrl.cpp:113:10: error: 'uint8_t' was not declared in this scope
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + host/lib/usrp/e100/codec_ctrl.cpp | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/host/lib/usrp/e100/codec_ctrl.cpp b/host/lib/usrp/e100/codec_ctrl.cpp
> +index 13b3bc9..2c13176 100644
> +--- a/host/lib/usrp/e100/codec_ctrl.cpp
> ++++ b/host/lib/usrp/e100/codec_ctrl.cpp
> +@@ -110,7 +110,7 @@ e100_codec_ctrl_impl::e100_codec_ctrl_impl(spi_iface::sptr iface){
> + //_ad9862_regs.dis2 = ad9862_regs_t::DIS2_DIS; needed for transmit
> +
> + //write the register settings to the codec
> +- for (uint8_t addr = 0; addr <= 25; addr++){
> ++ for (boost::uint8_t addr = 0; addr <= 25; addr++){
> + this->send_reg(addr);
> + }
> +
> +--
> +1.7.9.5
> +
> diff --git a/meta-oe/recipes-connectivity/uhd/uhd_git.bb b/meta-oe/recipes-connectivity/uhd/uhd_git.bb
> index 06d5eff..180fd27 100644
> --- a/meta-oe/recipes-connectivity/uhd/uhd_git.bb
> +++ b/meta-oe/recipes-connectivity/uhd/uhd_git.bb
> @@ -4,7 +4,8 @@ PV = "3.5.3"
> PR = "${INC_PR}.0"
>
> SRC_URI = "git://ettus.sourcerepo.com/ettus/uhd.git;branch=maint;protocol=git \
> -"
> + file://0001-use-uint8_t-from-boost-namespace.patch;striplevel=2 \
> + "
> S = "${WORKDIR}/git/host"
>
> SRCREV = "f4c58120dc1e3674ee0228213f0f0011a0f80dcf"
>
prev parent reply other threads:[~2013-07-01 18:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-01 7:23 [meta-oe][PATCH] uhd: Fix compile errors Khem Raj
2013-07-01 18:34 ` Philip Balister [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51D1CBCD.60207@balister.org \
--to=philip@balister.org \
--cc=openembedded-devel@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox