[oe] [meta-oe] [PATCH] librcf: support build on mips/mipsel

Ming Liu liu.ming50 at gmail.com
Fri Jul 7 13:51:05 UTC 2017


Arha, please ignore my patch then. Thanks.

//Ming Liu


2017-07-07 15:44 GMT+02:00 Khem Raj <raj.khem at gmail.com>:

> On Fri, Jul 7, 2017 at 3:27 AM,  <liu.ming50 at gmail.com> wrote:
> > From: Ming Liu <peter.x.liu at external.atlascopco.com>
> >
> > This fixes following errors when building on mips/mipsel:
> > ...
> > src/RCF/ByteOrdering.cpp:115:13: error: 'MachineByteOrder' was not
> declared in this scope
> >          if (MachineByteOrder != NetworkByteOrder)
> >              ^~~~~~~~~~~~~~~~
> > src/RCF/ByteOrdering.cpp:123:13: error: 'MachineByteOrder' was not
> declared in this scope
> >          if (MachineByteOrder != NetworkByteOrder)
> >
> > src/RCF/ByteOrdering.cpp:131:16: error: 'MachineByteOrder' was not
> declared in this scope
> >          return MachineByteOrder == NetworkByteOrder;
> >
> > src/RCF/ByteOrdering.cpp:136:16: error: 'MachineByteOrder' was not
> declared in this scope
> >          return MachineByteOrder == LittleEndian;
> > ...
>
>
> already fixed by
>
> http://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=
> 5ed1dba5f8fdca6c78bf61128aedd0426eb98424
>
> >
> > Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
> > ---
> >  .../librcf/librcf/0001-mips-mipsel-support.patch   | 34
> ++++++++++++++++++++++
> >  meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb  |  1 +
> >  2 files changed, 35 insertions(+)
> >  create mode 100644 meta-oe/recipes-devtools/librcf/librcf/0001-mips-
> mipsel-support.patch
> >
> > diff --git a/meta-oe/recipes-devtools/librcf/librcf/0001-mips-mipsel-support.patch
> b/meta-oe/recipes-devtools/librcf/librcf/0001-mips-mipsel-support.patch
> > new file mode 100644
> > index 0000000..6d873c4
> > --- /dev/null
> > +++ b/meta-oe/recipes-devtools/librcf/librcf/0001-mips-
> mipsel-support.patch
> > @@ -0,0 +1,34 @@
> > +From a0e6a851a7504150e5191b206b8885fa17ce9ab3 Mon Sep 17 00:00:00 2001
> > +From: Ming Liu <peter.x.liu at external.atlascopco.com>
> > +Date: Fri, 7 Jul 2017 10:46:45 +0200
> > +Subject: [PATCH] Support build for mips/mipsel
> > +
> > +Upstream-Status: Pending
> > +
> > +Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
> > +---
> > + src/RCF/ByteOrdering.cpp | 8 ++++++++
> > + 1 file changed, 8 insertions(+)
> > +
> > +diff --git a/src/RCF/ByteOrdering.cpp b/src/RCF/ByteOrdering.cpp
> > +index 5f3d937..ab99967 100755
> > +--- a/src/RCF/ByteOrdering.cpp
> > ++++ b/src/RCF/ByteOrdering.cpp
> > +@@ -64,6 +64,14 @@ namespace RCF {
> > +
> > +     const ByteOrder MachineByteOrder = LittleEndian;
> > +
> > ++#elif defined(_MIPSEL) || defined(__MIPSEL) || defined(__MIPSEL__)
> > ++
> > ++    const ByteOrder MachineByteOrder = LittleEndian;
> > ++
> > ++#elif defined(_mips) || defined(__mips) || defined(__mips__)
> > ++
> > ++    const ByteOrder MachineByteOrder = BigEndian;
> > ++
> > + #elif defined(__bfin__)
> > +
> > +     const ByteOrder MachineByteOrder = LittleEndian;
> > +--
> > +2.7.4
> > +
> > diff --git a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
> b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
> > index 4c9683a..4dac10e 100644
> > --- a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
> > +++ b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
> > @@ -14,6 +14,7 @@ SRC_URI = "http://www.deltavsoft.com/
> downloads/RCF-${PV}.tar.gz \
> >             file://0001-Add-CMake-build-files.patch \
> >             file://aarch64-support.patch \
> >             file://0001-ClientStub.hpp-fix-a-clang-compiling-issue.patch
> \
> > +           file://0001-mips-mipsel-support.patch \
> >            "
> >
> >  SRC_URI[md5sum] = "7ecb3c73f7eb66dba8790b659374f690"
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>



More information about the Openembedded-devel mailing list