[oe] [meta-initramfs][PATCH v3] ubi-utils-klibc_1.5.2: fix build for qemuarm

2018-01-28 Thread Andrea Adami
Building the recipe with TUNE_FEATURES = "aarch64" and TARGET_FPU = ""
fails. See patch headers for more details.

Patch sent upstream for master, here rebased for 1.5.2.
Tested runtime on armv5.

While there backport one more patch fixing warnings in libmtd.c and
move the patches in their specific dir, preparing for v2.0.1.

Signed-off-by: Andrea Adami 
---
Changelog;
v1 initial patch
v2 fix comments and update Upstream_Status
v3 refresh and move patches to ubi-utils-1.5.2 subdir

 .../0001-Makefile-build-ubi-utils-only.patch}  | 19 ---
 .../0002-common.mk-for-klibc-CC-is-klcc.patch  | 10 ++--
 ...ubi.c-add-klibc-specific-fixes-for-ioctl.patch} | 10 ++--
 ...atibility-to-dietlibc-klibc-musl-libc-af.patch} | 18 +++---
 ...more-workarounds-for-klibc-compatibility.patch} | 23 
 ...rser-remove-unused-function-needing-float.patch |  8 +--
 ...ls-common.c-convert-to-integer-arithmetic.patch | 64 ++
 ...ubiformat.c-convert-to-integer-arithmetic.patch | 44 +++
 ...arnings-about-implicit-non-const-casting-.patch | 48 
 .../recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb  | 11 ++--
 10 files changed, 212 insertions(+), 43 deletions(-)
 rename 
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
 => ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch} (86%)
 rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc => 
ubi-utils-klibc-1.5.2}/0002-common.mk-for-klibc-CC-is-klcc.patch (71%)
 rename 
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0003-libubi.c-add-klibc-specific-fixes.patch
 => 
ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch} 
(91%)
 rename 
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0004-common.h-klibc-fixes-1.patch
 => 
ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch}
 (86%)
 rename 
meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc/0005-common.h-klibc-fixes-2.patch
 => 
ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch}
 (71%)
 rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc => 
ubi-utils-klibc-1.5.2}/0006-libiniparser-remove-unused-function-needing-float.patch
 (95%)
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch

diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
similarity index 86%
rename from 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
rename to 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
index 6e1b9ff..6ac2cca 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0001-Makefile-only-build-ubi-utils.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
@@ -1,7 +1,7 @@
-From c4e6bd9378645d577e9d9f85da85f1438afe7c50 Mon Sep 17 00:00:00 2001
+From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
 Date: Sun, 29 Jun 2014 00:32:29 +0200
-Subject: [PATCH 1/6] Makefile: build ubi-utils only
+Subject: [PATCH 1/9] Makefile: build ubi-utils only
 
 We build all the static ubi-utils but actually only ubiattach is needed in
 a minimalistic initramfs for the mount of ubi volumes.
@@ -22,13 +22,13 @@ Upstream-Status: Inappropriate [embedded specific]
 
 Signed-off-by: Andrea Adami 
 ---
- Makefile | 24 ++--
- 1 file changed, 2 insertions(+), 22 deletions(-)
+ Makefile | 26 ++
+ 1 file changed, 2 insertions(+), 24 deletions(-)
 
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
+diff --git a/Makefile b/Makefile
+index 3ce8587..8b79f71 100644
+--- a/Makefile
 b/Makefile
 @@ -16,28 +16,11 @@ endif
  
  TESTS = tests
@@ -82,3 +82,6 @@ Index: git/Makefile
  #
  # Common libmtd
  #
+-- 
+2.7.4
+
diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0002-common.mk-for-klibc-CC-is-klcc.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
similarity index 71%
rename from 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0002-common.mk-for-klibc-CC-is-klcc.patch
rename to 

Re: [oe] [Openembedded-architecture] OpenEmbedded stand at FOSDEM 2018

2018-01-28 Thread Andreas Müller
On Mon, Dec 11, 2017 at 9:55 AM, Paul Barker  wrote:

> Hi all,
>
> We've got confirmation for an OpenEmbedded stand at FOSDEM 2018! We're
> in the AW building as usual, you can see the full list of stands and
> location details here: https://fosdem.org/2018/stands/
>
> What we need:
>
> * People to help out on the stand and chat about the project. If
> you're going to FOSDEM and don't know many people in the OE project
> this is a great way to get to know some. Even if you can only help out
> for an hour or two this would be much appreciated!
>
> * Device/product demos which show off the features of OE. We only have
> one table this year so please let us know if you're bringing hardware,
> that way we can make sure everything fits. Preference will go to
> hobbyist projects as this is FOSDEM but we're happy with commercial
> projects as long as they're not an explicit sales pitch.
>
> * Build system demo. I really want us to show off toaster again as
> that got a lot of interest last time we demo'd it at FOSDEM.
> Unfortunately I'm on holiday before FOSDEM and I'm not travelling
> directly from home so I'll be unable to bring something to run this
> demo on. So if someone could bring a laptop or mini-PC/monitor/etc to
> run a build system demo on that would be excellent. If not I'll see if
> I can get something shipped to Brussels.
>
> I've created a wiki page here:
> https://www.openembedded.org/wiki/FOSDEM_2018. Please add to this if
> you're planning to bring anything or just attend.
>
> Look forward to seeing many of you in Feb :)
>
> --
> Paul Barker
> Togán Labs Ltd
>

My machine is finally done - it turned larger and heavier than expected
originally. Pictures at [1] taken with my very old mobile. Would like to
bring this with me with smaller keyboard - hope there is some place for
it...

[1]
https://drive.google.com/drive/folders/1VUMqcRO8WxWpwMKYy06WZPZcSgrokq0h?usp=sharing

Andreas
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel