Re: [oe] Any way to make cryptsetup smaller? I have a small 32M NOR flash and 11M SquashFS rootfs.

2021-08-03 Thread Andrea Adami
Brian,

wow, I think we are the last NOR users here in OE.
I gave the collie to Marcin: let see if another OpenZaurus arises :)

Cheers
A.A.


On Tue, Aug 3, 2021 at 5:16 AM Khem Raj  wrote:
>
> On Mon, Aug 2, 2021 at 4:14 PM Brian Hutchinson  wrote:
> >
> >
> >
> > On Mon, Aug 2, 2021 at 7:06 PM Khem Raj  wrote:
> >>
> >>
> >> I meant build an image like you do and then add cryptsetup and do a build 
> >> again this all after enabling build history then check build history repo 
> >> and it will have the information on top commit about what changed and 
> >> which all packages got added and how much are they adding to size
> >
> >
> > Use both:
> >
> > INHERIT += "buildhistory"
> >
> > BUILDHISTORY_COMMIT = "1"
>
> yes see for e.g.
> https://github.com/YoeDistro/yoe-distro/blob/master/sources/meta-yoe/conf/distro/yoe.inc#L49
> https://github.com/YoeDistro/yoe-distro/blob/master/sources/meta-yoe/conf/distro/yoe.inc#L93
>
>
> >
> > ???
> >
> > I've never used it before.
> >
> > Do I have to smoke /tmp and rebuild everything?
>
> No, but perhaps better to do so. You can still reuse sstate
>
> >
> > Regards,
> >
> > Brian
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#92456): 
https://lists.openembedded.org/g/openembedded-devel/message/92456
Mute This Topic: https://lists.openembedded.org/mt/84618075/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [PATCH] layers: set LAYERSERIES_COMPAT with honister

2021-06-24 Thread Andrea Adami
On Mon, Jun 7, 2021 at 10:21 AM Martin Jansa  wrote:
>
> Then I believe layer index should be fixed to support longer values, there 
> are layers which are compatible with multiple releases and it works fine with 
> bitbake/oe-core, layer index parsing shouldn't be more strict than the 
> mechanism which is using these variables.
>
Hi,
I agree with Martin, we have examples of compatibility since sumo, we
will surely split but this is an unreasonable limit.
A.A.


> On Fri, Jun 4, 2021 at 11:26 AM Kai  wrote:
>>
>> On 6/4/21 4:52 PM, Martin Jansa wrote:
>>
>> On Fri, Jun 4, 2021 at 3:44 AM kai  wrote:
>>>
>>> From: Kai Kang 
>>>
>>> Set LAYERSERIES_COMPAT with 'honister' which align with oe-core.
>>>
>>
>> I think it's bad practice to claim honister support this early in its 
>> development cycle. It won't happen with well-maintained layers like meta-oe, 
>> but if some less frequently updated layer sets the compatibility with 
>> honister now and then doesn't get necessary updates to stay compatible with 
>> honister in next 4 months, then whole purpose of LAYERSERIES_COMPAT will get 
>> broken just by claiming the compatibility too soon (without even knowing 
>> what final honister will contain).
>>
>> Changing it after release freeze in oe-core seems much better time to do it.
>>
>> The same does apply on the meta-qt5 PR you've sent today 
>> https://github.com/meta-qt5/meta-qt5/pull/416/commits
>>
>> Cheers,
>>
>> Got it. Thanks very much.
>>
>> I've comment on the meta-qt5 PR that too long strings in LAYERSERIES_COMPAT 
>> will cause layer index complains:
>>
>> WARNING: YPCompatibleVersion.name: dunfell gatesgarth hardknott: length 28 
>> exceeds maximum (25), truncating
>>
>> So what is policy to keep old codenames in LAYERSERIES_COMPAT? Is  that ok 
>> to keep latest 2(hardknott and honister), please?
>>
>> Regards,
>>
>> --
>> Kai Kang
>> Wind River Linux
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#92014): 
https://lists.openembedded.org/g/openembedded-devel/message/92014
Mute This Topic: https://lists.openembedded.org/mt/83299354/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-oe][PATCH 1/1] rapidjson: remove stale LIB_INSTALL_DIR

2021-06-13 Thread Andrea Adami
This was introduced with commit:
 2e0fd78
 rapidjson: fix cmake artifacts installation for non-default BASELIB case

and should have been removed with commit:
 5aa127a
 rapidjson: Remove unwanted patches


NOTE: such multilib fixes are not needed after this commit in oe-core:
 24f630c cmake.bbclass: Define LIB_SUFFIX

Signed-off-by: Andrea Adami 
---
 meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb 
b/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
index 5b5c8b2570..ac803294e0 100644
--- a/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
+++ b/meta-oe/recipes-devtools/rapidjson/rapidjson_git.bb
@@ -14,7 +14,7 @@ S = "${WORKDIR}/git"
 
 inherit cmake
 
-EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_TESTS=OFF 
-DRAPIDJSON_BUILD_EXAMPLES=OFF -DLIB_INSTALL_DIR:STRING=${libdir}"
+EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_TESTS=OFF 
-DRAPIDJSON_BUILD_EXAMPLES=OFF"
 
 # RapidJSON is a header-only C++ library, so the main package will be empty.
 
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91880): 
https://lists.openembedded.org/g/openembedded-devel/message/91880
Mute This Topic: https://lists.openembedded.org/mt/83505173/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-initramfs][PATCH 2/2] initramfs-debug-image: support cases where machines override IMAGE_FSTYPES

2021-06-12 Thread Andrea Adami
As done for initramfs-kexecboot-image we need to use python to get the
desired value for IMAGE_FSTYPES.

Signed-off-by: Andrea Adami 
---
 .../recipes-core/images/initramfs-debug-image.bb   | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/meta-initramfs/recipes-core/images/initramfs-debug-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
index c3dcd2b821..601056b7e5 100644
--- a/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
+++ b/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
@@ -11,7 +11,12 @@ IMAGE_FEATURES = ""
 export IMAGE_BASENAME = "initramfs-debug-image"
 IMAGE_LINGUAS = ""
 
-IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+# Some BSPs use IMAGE_FSTYPES_ which would override
+# an assignment to IMAGE_FSTYPES so we need anon python
+python () {
+d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES"))
+}
+
 inherit core-image
 
 IMAGE_ROOTFS_SIZE = "8192"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91879): 
https://lists.openembedded.org/g/openembedded-devel/message/91879
Mute This Topic: https://lists.openembedded.org/mt/83499580/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-initramfs][PATCH 1/2] initramfs-kexecboot-image: support cases where machines override IMAGE_FSTYPES

2021-06-12 Thread Andrea Adami
test case: zaurus.inc

IMAGE_FSTYPES ?= "tar.gz jffs2 jffs2.sum ubi ubifs"
IMAGE_FSTYPES_collie ?= "tar.gz jffs2 jffs2.sum"
INITRAMFS_FSTYPES ?= "cpio.gz cpio.xz"

The last assignment IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" did in fact
reset the value to IMAGE_FSTYPES_collie, thus not producing cpio.gz / cpio.xz.

Signed-off-by: Andrea Adami 
---
 .../recipes-core/images/initramfs-kexecboot-image.bb  | 8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb
index 9a686f366f..dd082ba529 100644
--- a/meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb
+++ b/meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb
@@ -1,9 +1,13 @@
 SUMMARY = "Initramfs image for kexecboot kernel"
 DESCRIPTION = "This image provides kexecboot (linux as bootloader) and 
helpers."
 
-inherit image
+# Some BSPs use IMAGE_FSTYPES_ which would override
+# an assignment to IMAGE_FSTYPES so we need anon python
+python () {
+d.setVar("IMAGE_FSTYPES", d.getVar("INITRAMFS_FSTYPES"))
+}
 
-IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
+inherit image
 
 # avoid circular dependencies
 EXTRA_IMAGEDEPENDS = ""
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91878): 
https://lists.openembedded.org/g/openembedded-devel/message/91878
Mute This Topic: https://lists.openembedded.org/mt/83499579/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [oe] [meta-initramfs][PATCH] klibc: Add clang's -rtlib to known options

2021-06-11 Thread Andrea Adami
Thanks, I'll plan to do more testing with clang/llvm.

BTW there is now klibc 2.0.9.
Cheers
Andrea

On Fri, Jun 11, 2021 at 4:42 AM Khem Raj  wrote:
>
> This helps in ensuring that we always link klibc apps with libgcc as
> compiler-rt does not work for klibc due to missing libssp functions e.g.
> __stack_chk_guard and __stack_chk_guard which it expects in libc
>
> Signed-off-by: Khem Raj 
> Cc: Andrea Adami 
> ---
>  .../klibc/files/klcc-cross-accept-clang-options.patch| 5 -
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git 
> a/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
>  
> b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
> index 56905a5159..431c75e3af 100644
> --- 
> a/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
> +++ 
> b/meta-initramfs/recipes-devtools/klibc/files/klcc-cross-accept-clang-options.patch
> @@ -5,7 +5,7 @@ Signed-off-by: Khem Raj 
>
>  --- a/klcc/klcc.in
>  +++ b/klcc/klcc.in
> -@@ -207,6 +207,24 @@ while ( defined($a = shift(@ARGV)) ) {
> +@@ -207,6 +207,27 @@ while ( defined($a = shift(@ARGV)) ) {
>   } elsif ( $a =~ /^--([sysroot=])(.*)$/ ) {
> # Override gcc encoded sysroot
> push(@ccopt, $a);
> @@ -26,6 +26,9 @@ Signed-off-by: Khem Raj 
>  +  push(@ccopt, $a);
>  +} elsif ( $a =~ '--unwindlib=.*' ) {
>  +  # Allow clang options
> ++  push(@ccopt, $a);
> ++} elsif ( $a =~ '-rtlib=.*' ) {
> ++  # Allow clang options
>  +  push(@ccopt, $a);
>   } else {
> die "$0: unknown option: $a\n";
> --
> 2.32.0
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91871): 
https://lists.openembedded.org/g/openembedded-devel/message/91871
Mute This Topic: https://lists.openembedded.org/mt/83460670/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] RFC: meta-oe recipes split

2021-05-13 Thread Andrea Adami
Hi,
I was lately diving in OE-related layers used for DVB/STB devices and
have noticed how badly anyone has moved from the OE-Classic to what
they call OE 2.0. It was not easy.

The problem now is the distros have custom layers containing
.bbappends or different version of recipes for some good reason.

Examples are the duplicate  recipes-support  recipes-multimedia

What I have concluded is that this is in big part our fault...the
recipes in meta-openembedded are really badly splitted here and there.

I remember we started to pull out of meta-openembedded/meta-oe and
create meta-initramfs, meta-networking,... but never finished.

I see now two options:
1 - put all again under meta-oe
2 - finish to split out the recipes in the parent layers

I know that some layers had/have maintainers while meta-oe is more
abandoned and I don't have almost any time  but still...

My 2 cents
A.A.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#91264): 
https://lists.openembedded.org/g/openembedded-devel/message/91264
Mute This Topic: https://lists.openembedded.org/mt/82797192/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[oe] [meta-handheld][PATCH v2 1/4] zaurusd: fix build with kernels < 4.16 and newer libc headers

2020-04-28 Thread Andrea Adami
The Y2038 changes broke the build for older 32bit devices using
older kernels.

As seen on: https://sourceware.org/glibc/wiki/Y2038ProofnessDesign

Re-use the same fix applied for tslib as of commit
id 9201611 tslib: Fix build with 4.x kernel headers

Signed-off-by: Andrea Adami 
---
 .../zaurusd/zaurusd/64bit_time_t.patch| 46 +++
 recipes-bsp/zaurusd/zaurusd_git.bb|  5 +-
 2 files changed, 49 insertions(+), 2 deletions(-)
 create mode 100644 recipes-bsp/zaurusd/zaurusd/64bit_time_t.patch

diff --git a/recipes-bsp/zaurusd/zaurusd/64bit_time_t.patch 
b/recipes-bsp/zaurusd/zaurusd/64bit_time_t.patch
new file mode 100644
index 000..a12c7bb
--- /dev/null
+++ b/recipes-bsp/zaurusd/zaurusd/64bit_time_t.patch
@@ -0,0 +1,46 @@
+From e5bb568619c22d701e8fcd705563acbf7885f735 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Tue, 28 Apr 2020 21:21:29 +0200
+Subject: [PATCH] tskeys.c: fix build with kernels < 4.16 and newer libc
+ headers
+
+The Y2038 changes broke the build for legacy 32bit devices using
+older kernels.
+
+Upgrade the recipe to cope with the 64-bit time changes introduced in 4.16
+
+Fix:
+
+ tskeys.c: In function 'press_key':
+ tskeys.c:141:4: error: 'struct input_event' has no member named 'time'
+   141 |  ev.time.tv_sec = time(0);
+   |^
+ tskeys.c:142:4: error: 'struct input_event' has no member named 'time'
+   142 |  ev.time.tv_usec = 0;
+   |^
+
+
+Signed-off-by: Andrea Adami 
+---
+ apps/tskeys/tskeys.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/apps/tskeys/tskeys.c b/apps/tskeys/tskeys.c
+index 264dfb7..0020012 100644
+--- a/apps/tskeys/tskeys.c
 b/apps/tskeys/tskeys.c
+@@ -21,6 +21,11 @@
+ 
+ #define MAX_OFFSCREEN_KEYS  20
+ 
++#ifndef input_event_sec
++#define input_event_sec time.tv_sec
++#define input_event_usec time.tv_usec
++#endif
++
+ struct rectangle {
+   int16_t x1;
+   int16_t y1;
+-- 
+2.17.1
+
diff --git a/recipes-bsp/zaurusd/zaurusd_git.bb 
b/recipes-bsp/zaurusd/zaurusd_git.bb
index d69805b..663ef1b 100644
--- a/recipes-bsp/zaurusd/zaurusd_git.bb
+++ b/recipes-bsp/zaurusd/zaurusd_git.bb
@@ -24,8 +24,9 @@ SRC_URI = "git://git.yoctoproject.org/${BPN} \
file://01-check-toggle-portait \
file://use-ts-symlink-instead-of-hardcoding.diff \
file://0001-zaurusd-add-support-for-collie.patch \
-   file://allow-newer-tslib.patch"
-
+   file://allow-newer-tslib.patch \
+   file://64bit_time_t.patch \
+"
 
 S = "${WORKDIR}/git"
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84134): 
https://lists.openembedded.org/g/openembedded-devel/message/84134
Mute This Topic: https://lists.openembedded.org/mt/73336016/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-initramfs][PATCH v2] packagegroup-meta-initramfs: remove klibc utilities and kexec-tools-klibc

2020-04-27 Thread Andrea Adami
klibc utils have no update-alternatives because these live ideally alone
in the initramfs. mwta-initramfs image is not minimal having busybox, linux-
utils,coreutils so to resolve the conflict we remove the shared klibc utils.

The image is mostly for build-tests and contains dracut, which does not have
runtime dependencies on kexec-tools, so we can safely remove the klibc
static version of kexec and vmcore-dmesg (not availaible on some archs).
Doing this we can safely remove EXCLUDE_FROM_WORLD

Fix:
ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
Postinstall scriptlets of ['busybox', 'util-linux-umount',
'util-linux-dmesg','coreutils', 'util-linux-mount', 'cpio',
'util-linux-kill', 'util-linux-losetup'] have failed.

Signed-off-by: Andrea Adami 
---
 .../packagegroup-meta-initramfs.bb| 20 +--
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git 
a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb 
b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
index bfede5a74..2955baea2 100644
--- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
+++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
@@ -6,31 +6,13 @@ PROVIDES = "${PACKAGES}"
 PACKAGES = ' \
 packagegroup-meta-initramfs \
 packagegroup-meta-initramfs-devtools \
-packagegroup-meta-initramfs-kernel \
 '
 
 RDEPENDS_packagegroup-meta-initramfs = "\
 packagegroup-meta-initramfs-devtools \
-packagegroup-meta-initramfs-kernel \
 "
 
 RDEPENDS_packagegroup-meta-initramfs-devtools = "\
-libklibc  dracut \
-klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
klibc-utils-chroot \
-klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
-klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
-klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
klibc-utils-false \
-klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
-klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
klibc-utils-ipconfig \
-klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke 
klibc-utils-uname \
-mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
ubidetach-klibc \
-ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
-ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
+dracut \
 ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
"grubby", "", d)} \
 "
-
-RDEPENDS_packagegroup-meta-initramfs-kernel = "\
-kexec-klibc vmcore-dmesg-klibc \
-"
-
-EXCLUDE_FROM_WORLD = "1"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84120): 
https://lists.openembedded.org/g/openembedded-devel/message/84120
Mute This Topic: https://lists.openembedded.org/mt/73314409/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities

2020-04-27 Thread Andrea Adami
Khem,
please disregard this patch as superseded, a new one specific for the
packagegroup is coming.

Thanks!
Andres

On Sat, Apr 25, 2020 at 5:28 PM Khem Raj  wrote:
>
> On Sat, Apr 25, 2020 at 6:10 AM Andrea Adami  wrote:
> >
> > On Sat, Apr 25, 2020 at 12:30 AM Khem Raj  wrote:
> > >
> > > On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami  
> > > wrote:
> > > >
> > > > klibc utils have no update-alternatives because these live ideally alone
> > > > in th einitramfs. This image is not minimal having busybox, linux-utils,
> > > > coreutils so to resolve the conflict we just remove the shared klibc 
> > > > utils
> > > > and replace the klibc kexec and vmcore-dmesg.
> > > >
> > > > Finally, remove EXCLUDE_FROM_WORLD.
> > > >
> > > > Fix:
> > > > ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> > > > Postinstall scriptlets of ['busybox', 'util-linux-umount', 
> > > > 'util-linux-dmesg',
> > > >  'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> > > >  'util-linux-losetup'] have failed.
> > > >
> > > > Signed-off-by: Andrea Adami 
> > > > ---
> > > >  .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--
> > > >  1 file changed, 2 insertions(+), 14 deletions(-)
> > > >
> > > > diff --git 
> > > > a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > >  
> > > > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > index bfede5a74..dc4928b5a 100644
> > > > --- 
> > > > a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > +++ 
> > > > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > > > @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> > > >  "
> > > >
> > > >  RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > > > -libklibc  dracut \
> > > > -klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
> > > > klibc-utils-chroot \
> > > > -klibc-utils-ls klibc-utils-reboot klibc-utils-cpio 
> > > > klibc-utils-minips \
> > > > -klibc-utils-resume klibc-utils-dd klibc-utils-mkdir 
> > > > klibc-utils-run-init \
> > > > -klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
> > > > klibc-utils-false \
> > > > -klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype 
> > > > klibc-utils-mount \
> > > > -klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
> > > > klibc-utils-ipconfig \
> > > > -klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill 
> > > > klibc-utils-nuke klibc-utils-uname \
> > > > -mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
> > > > ubidetach-klibc \
> > > > -ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc 
> > > > ubirename-klibc \
> > > > -ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > > > +dracut \
> > > >  ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
> > > > "grubby", "", d)} \
> > > >  "
> > > >
> > > >  RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > > > -kexec-klibc vmcore-dmesg-klibc \
> > > > +kexec vmcore-dmesg \
> > >
> > > this creates a dependency on kexec-tools from oe-core, this however is
> > > not buildable on some arches e.g. riscv
> > > so this change does not work as such, I think you can only add it as
> > > dependency where its supported.
> > >
> >
> > Well, the problem was already there, kexec-tools klibc and oe-core both have
> >
> > COMPATIBLE_HOST =
> > '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'
> >
> >
> > I really have no idea about the image purposes, I see there is dracut
> > which seems to be buildable for most archs and does not have runtime
> > deps on kexec-tools.
> > Maybe we can just remove kexec and vmcore-dmesg
> >
>
> these were mainly for testing builds of the given layer. So I think
> removing kexec and vmcore-dmesg is ok
>
> > Cheers
> > Andrea
> >
> >
> >
> > > >  "
> > > > -
> > > > -EXCLUDE_FROM_WORLD = "1"
> > > > --
> > > > 2.17.1
> > > >
> > > > 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84118): 
https://lists.openembedded.org/g/openembedded-devel/message/84118
Mute This Topic: https://lists.openembedded.org/mt/73230971/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities

2020-04-25 Thread Andrea Adami
On Sat, Apr 25, 2020 at 12:30 AM Khem Raj  wrote:
>
> On Thu, Apr 23, 2020 at 4:55 PM Andrea Adami  wrote:
> >
> > klibc utils have no update-alternatives because these live ideally alone
> > in th einitramfs. This image is not minimal having busybox, linux-utils,
> > coreutils so to resolve the conflict we just remove the shared klibc utils
> > and replace the klibc kexec and vmcore-dmesg.
> >
> > Finally, remove EXCLUDE_FROM_WORLD.
> >
> > Fix:
> > ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
> > Postinstall scriptlets of ['busybox', 'util-linux-umount', 
> > 'util-linux-dmesg',
> >  'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
> >  'util-linux-losetup'] have failed.
> >
> > Signed-off-by: Andrea Adami 
> > ---
> >  .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--
> >  1 file changed, 2 insertions(+), 14 deletions(-)
> >
> > diff --git 
> > a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb 
> > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > index bfede5a74..dc4928b5a 100644
> > --- 
> > a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > +++ 
> > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > @@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
> >  "
> >
> >  RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > -libklibc  dracut \
> > -klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
> > klibc-utils-chroot \
> > -klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> > -klibc-utils-resume klibc-utils-dd klibc-utils-mkdir 
> > klibc-utils-run-init \
> > -klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
> > klibc-utils-false \
> > -klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype 
> > klibc-utils-mount \
> > -klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
> > klibc-utils-ipconfig \
> > -klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill 
> > klibc-utils-nuke klibc-utils-uname \
> > -mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
> > ubidetach-klibc \
> > -ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc 
> > ubirename-klibc \
> > -ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > +dracut \
> >  ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
> > "grubby", "", d)} \
> >  "
> >
> >  RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > -kexec-klibc vmcore-dmesg-klibc \
> > +kexec vmcore-dmesg \
>
> this creates a dependency on kexec-tools from oe-core, this however is
> not buildable on some arches e.g. riscv
> so this change does not work as such, I think you can only add it as
> dependency where its supported.
>

Well, the problem was already there, kexec-tools klibc and oe-core both have

COMPATIBLE_HOST =
'(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-(linux|freebsd.*)'


I really have no idea about the image purposes, I see there is dracut
which seems to be buildable for most archs and does not have runtime
deps on kexec-tools.
Maybe we can just remove kexec and vmcore-dmesg

Cheers
Andrea



> >  "
> > -
> > -EXCLUDE_FROM_WORLD = "1"
> > --
> > 2.17.1
> >
> > 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84082): 
https://lists.openembedded.org/g/openembedded-devel/message/84082
Mute This Topic: https://lists.openembedded.org/mt/73230971/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-initramfs][PATCH] meta-initramfs-image: remove klibc utilities

2020-04-23 Thread Andrea Adami
klibc utils have no update-alternatives because these live ideally alone
in th einitramfs. This image is not minimal having busybox, linux-utils,
coreutils so to resolve the conflict we just remove the shared klibc utils
and replace the klibc kexec and vmcore-dmesg.

Finally, remove EXCLUDE_FROM_WORLD.

Fix:
ERROR: meta-initramfs-image-1.0-r0 do_rootfs:
Postinstall scriptlets of ['busybox', 'util-linux-umount', 'util-linux-dmesg',
 'coreutils', 'util-linux-mount', 'cpio', 'util-linux-kill',
 'util-linux-losetup'] have failed.

Signed-off-by: Andrea Adami 
---
 .../packagegroups/packagegroup-meta-initramfs.bb | 16 ++--
 1 file changed, 2 insertions(+), 14 deletions(-)

diff --git 
a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb 
b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
index bfede5a74..dc4928b5a 100644
--- a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
+++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
@@ -15,22 +15,10 @@ RDEPENDS_packagegroup-meta-initramfs = "\
 "
 
 RDEPENDS_packagegroup-meta-initramfs-devtools = "\
-libklibc  dracut \
-klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
klibc-utils-chroot \
-klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
-klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init \
-klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
klibc-utils-false \
-klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount \
-klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
klibc-utils-ipconfig \
-klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill klibc-utils-nuke 
klibc-utils-uname \
-mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
ubidetach-klibc \
-ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc ubirename-klibc \
-ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
+dracut \
 ${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
"grubby", "", d)} \
 "
 
 RDEPENDS_packagegroup-meta-initramfs-kernel = "\
-kexec-klibc vmcore-dmesg-klibc \
+kexec vmcore-dmesg \
 "
-
-EXCLUDE_FROM_WORLD = "1"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84056): 
https://lists.openembedded.org/g/openembedded-devel/message/84056
Mute This Topic: https://lists.openembedded.org/mt/73230971/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-initramfs][PATCH 1/2] meta-initramfs: put images and initrdscripts in recipes-core

2020-04-21 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 .../{recipes-bsp => recipes-core}/images/initramfs-debug-image.bb | 0
 .../images/initramfs-kexecboot-image.bb   | 0
 .../images/initramfs-kexecboot-klibc-image.bb | 0
 .../initrdscripts/files/init-debug.sh | 0
 .../initrdscripts/initramfs-debug_1.0.bb  | 0
 5 files changed, 0 insertions(+), 0 deletions(-)
 rename meta-initramfs/{recipes-bsp => 
recipes-core}/images/initramfs-debug-image.bb (100%)
 rename meta-initramfs/{recipes-bsp => 
recipes-core}/images/initramfs-kexecboot-image.bb (100%)
 rename meta-initramfs/{recipes-bsp => 
recipes-core}/images/initramfs-kexecboot-klibc-image.bb (100%)
 rename meta-initramfs/{recipes-bsp => 
recipes-core}/initrdscripts/files/init-debug.sh (100%)
 rename meta-initramfs/{recipes-bsp => 
recipes-core}/initrdscripts/initramfs-debug_1.0.bb (100%)

diff --git a/meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
similarity index 100%
rename from meta-initramfs/recipes-bsp/images/initramfs-debug-image.bb
rename to meta-initramfs/recipes-core/images/initramfs-debug-image.bb
diff --git a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb
similarity index 100%
rename from meta-initramfs/recipes-bsp/images/initramfs-kexecboot-image.bb
rename to meta-initramfs/recipes-core/images/initramfs-kexecboot-image.bb
diff --git 
a/meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-kexecboot-klibc-image.bb
similarity index 100%
rename from meta-initramfs/recipes-bsp/images/initramfs-kexecboot-klibc-image.bb
rename to meta-initramfs/recipes-core/images/initramfs-kexecboot-klibc-image.bb
diff --git a/meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh 
b/meta-initramfs/recipes-core/initrdscripts/files/init-debug.sh
similarity index 100%
rename from meta-initramfs/recipes-bsp/initrdscripts/files/init-debug.sh
rename to meta-initramfs/recipes-core/initrdscripts/files/init-debug.sh
diff --git a/meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb 
b/meta-initramfs/recipes-core/initrdscripts/initramfs-debug_1.0.bb
similarity index 100%
rename from meta-initramfs/recipes-bsp/initrdscripts/initramfs-debug_1.0.bb
rename to meta-initramfs/recipes-core/initrdscripts/initramfs-debug_1.0.bb
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84024): 
https://lists.openembedded.org/g/openembedded-devel/message/84024
Mute This Topic: https://lists.openembedded.org/mt/73174595/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-initramfs][PATCH 2/2] Remove LICENSE = "MIT" from images

2020-04-21 Thread Andrea Adami
As in commit 9d55993
This is the default in the packagegroup and image classes.

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-core/images/initramfs-debug-image.bb | 2 --
 meta-initramfs/recipes-core/images/meta-initramfs-image.bb  | 2 --
 2 files changed, 4 deletions(-)

diff --git a/meta-initramfs/recipes-core/images/initramfs-debug-image.bb 
b/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
index be7350ade..c3dcd2b82 100644
--- a/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
+++ b/meta-initramfs/recipes-core/images/initramfs-debug-image.bb
@@ -11,8 +11,6 @@ IMAGE_FEATURES = ""
 export IMAGE_BASENAME = "initramfs-debug-image"
 IMAGE_LINGUAS = ""
 
-LICENSE = "MIT"
-
 IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
 inherit core-image
 
diff --git a/meta-initramfs/recipes-core/images/meta-initramfs-image.bb 
b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
index 9d70d6d02..4c041eb5f 100644
--- a/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
+++ b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
@@ -3,6 +3,4 @@ SUMMARY = "meta-initramfs build test image"
 IMAGE_INSTALL = "packagegroup-core-boot \
  packagegroup-meta-initramfs"
 
-LICENSE = "MIT"
-
 inherit core-image
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84025): 
https://lists.openembedded.org/g/openembedded-devel/message/84025
Mute This Topic: https://lists.openembedded.org/mt/73174596/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-handheld][PATCH 1/4] zaurusd: fix build with kernels < 4.16 and newer libc headers

2020-04-20 Thread Andrea Adami
On Mon, Apr 20, 2020 at 7:44 PM Khem Raj  wrote:
>
> On Mon, Apr 20, 2020 at 10:07 AM Andrea Adami  wrote:
> >
> > The Y2038 changes broke the build for older 32bit devices using
> > older kernels.
> >
> > As seen on: https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
> >
> > Signed-off-by: Andrea Adami 
> > ---
> >  .../zaurusd/zaurusd/add_64bit_time_t.patch| 43 +++
> >  recipes-bsp/zaurusd/zaurusd_git.bb|  3 +-
> >  2 files changed, 45 insertions(+), 1 deletion(-)
> >  create mode 100644 recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch
> >
> > diff --git a/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch 
> > b/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch
> > new file mode 100644
> > index 000..5f9587a
> > --- /dev/null
> > +++ b/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch
> > @@ -0,0 +1,43 @@
> > +From d15b20fd9e8927db5dc4303f2e6c11cfa8d6fe95 Mon Sep 17 00:00:00 2001
> > +From: Andrea Adami 
> > +Date: Mon, 20 Apr 2020 16:21:22 +0200
> > +Subject: [PATCH] tskeys.c: add support for 64bit time_t
> > +
> > +Upgrade the recipe to cope with the 64-bit time changes introduced in 4.16
> > +
> > +Fix:
> > +
> > +| tskeys.c: In function 'press_key':
> > +| tskeys.c:141:4: error: 'struct input_event' has no member named 'time'
> > +|   141 |  ev.time.tv_sec = time(0);
> > +|   |^
> > +| tskeys.c:142:4: error: 'struct input_event' has no member named 'time'
> > +|   142 |  ev.time.tv_usec = 0;
> > +|   |^
> > +
> > +Signed-off-by: Andrea Adami 
> > +---
> > + apps/tskeys/tskeys.c | 5 +
> > + 1 file changed, 5 insertions(+)
> > +
> > +diff --git a/apps/tskeys/tskeys.c b/apps/tskeys/tskeys.c
> > +index 264dfb7..36e3bfd 100644
> > +--- a/apps/tskeys/tskeys.c
> >  b/apps/tskeys/tskeys.c
> > +@@ -138,8 +138,13 @@ void press_key(int fd, int key, int pressed)
> > +   struct input_event ev;
> > +   int r;
> > +
> > ++#if !defined(__USE_TIME_BITS64)
> > +   ev.time.tv_sec = time(0);
> > +   ev.time.tv_usec = 0;
> > ++#else
> > ++  ev.input_event_sec = time(0);
> > ++  ev.input_event_usec = 0;
> > ++#endif
>
> does this work with musl ?
>


Yes, actually I tested it on musl first.

Build Configuration:
BB_VERSION   = "1.46.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "ubuntu-18.04"
TARGET_SYS   = "arm-oe-linux-musleabi"
MACHINE  = "spitz"
DISTRO   = "nodistro"
DISTRO_VERSION   = "nodistro.0"
TUNE_FEATURES= "arm armv5 thumb dsp"
TARGET_FPU   = "soft"
meta = "master-next:b450b0a2f5df27c4ea903ae9c5f6f5b96b9ddfc3"
meta-oe  = "master-next:205440e40f9a2d37a4f48391b03673a4aa042982"
meta-handheld= "master:a876aaa33317d388aa2e865f665fe6cc58d500a7"




> > +   ev.type = EV_KEY;
> > +   ev.code = key;
> > +   ev.value = pressed;
> > +--
> > +2.17.1
> > +
> > diff --git a/recipes-bsp/zaurusd/zaurusd_git.bb 
> > b/recipes-bsp/zaurusd/zaurusd_git.bb
> > index d69805b..1f8e40b 100644
> > --- a/recipes-bsp/zaurusd/zaurusd_git.bb
> > +++ b/recipes-bsp/zaurusd/zaurusd_git.bb
> > @@ -24,7 +24,8 @@ SRC_URI = "git://git.yoctoproject.org/${BPN} \
> > file://01-check-toggle-portait \
> > file://use-ts-symlink-instead-of-hardcoding.diff \
> > file://0001-zaurusd-add-support-for-collie.patch \
> > -   file://allow-newer-tslib.patch"
> > +   file://allow-newer-tslib.patch \
> > +   file://add_64bit_time_t.patch"
> >
> >
> >  S = "${WORKDIR}/git"
> > --
> > 2.17.1
> >
> > 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#84001): 
https://lists.openembedded.org/g/openembedded-devel/message/84001
Mute This Topic: https://lists.openembedded.org/mt/73154204/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-initramfs][PATCH] kexecboot(-klibc): update recipe to master on github (5a5e04b)

2020-04-20 Thread Andrea Adami
fix injection of compiler flags (static and debug)

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb 
b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
index 4b20e1ed9..ed3dece3f 100644
--- a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
+++ b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
@@ -8,7 +8,7 @@ S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/kexecboot/kexecboot.git"
 SRC_URI_append_libc-klibc = " 
file://0001-kexecboot-Use-new-reboot-API-with-klibc.patch "
 
-SRCREV = "7409a1e0aaea61af87c4eca0149cec18a9f58ab6"
+SRCREV = "5a5e04be206140059f42ac786d424da1afaa04b6"
 inherit autotools
 
 EXTRA_OECONF = "--enable-textui --enable-delay=2 --enable-evdev-rate=1000,250"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83999): 
https://lists.openembedded.org/g/openembedded-devel/message/83999
Mute This Topic: https://lists.openembedded.org/mt/73154257/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-handheld][PATCH 1/4] zaurusd: fix build with kernels < 4.16 and newer libc headers

2020-04-20 Thread Andrea Adami
The Y2038 changes broke the build for older 32bit devices using
older kernels.

As seen on: https://sourceware.org/glibc/wiki/Y2038ProofnessDesign

Signed-off-by: Andrea Adami 
---
 .../zaurusd/zaurusd/add_64bit_time_t.patch| 43 +++
 recipes-bsp/zaurusd/zaurusd_git.bb|  3 +-
 2 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch

diff --git a/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch 
b/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch
new file mode 100644
index 000..5f9587a
--- /dev/null
+++ b/recipes-bsp/zaurusd/zaurusd/add_64bit_time_t.patch
@@ -0,0 +1,43 @@
+From d15b20fd9e8927db5dc4303f2e6c11cfa8d6fe95 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Mon, 20 Apr 2020 16:21:22 +0200
+Subject: [PATCH] tskeys.c: add support for 64bit time_t
+
+Upgrade the recipe to cope with the 64-bit time changes introduced in 4.16
+
+Fix:
+
+| tskeys.c: In function 'press_key':
+| tskeys.c:141:4: error: 'struct input_event' has no member named 'time'
+|   141 |  ev.time.tv_sec = time(0);
+|   |^
+| tskeys.c:142:4: error: 'struct input_event' has no member named 'time'
+|   142 |  ev.time.tv_usec = 0;
+|   |^
+
+Signed-off-by: Andrea Adami 
+---
+ apps/tskeys/tskeys.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/apps/tskeys/tskeys.c b/apps/tskeys/tskeys.c
+index 264dfb7..36e3bfd 100644
+--- a/apps/tskeys/tskeys.c
 b/apps/tskeys/tskeys.c
+@@ -138,8 +138,13 @@ void press_key(int fd, int key, int pressed)
+   struct input_event ev;
+   int r;
+ 
++#if !defined(__USE_TIME_BITS64)
+   ev.time.tv_sec = time(0);
+   ev.time.tv_usec = 0;
++#else
++  ev.input_event_sec = time(0);
++  ev.input_event_usec = 0;
++#endif
+   ev.type = EV_KEY;
+   ev.code = key;
+   ev.value = pressed;
+-- 
+2.17.1
+
diff --git a/recipes-bsp/zaurusd/zaurusd_git.bb 
b/recipes-bsp/zaurusd/zaurusd_git.bb
index d69805b..1f8e40b 100644
--- a/recipes-bsp/zaurusd/zaurusd_git.bb
+++ b/recipes-bsp/zaurusd/zaurusd_git.bb
@@ -24,7 +24,8 @@ SRC_URI = "git://git.yoctoproject.org/${BPN} \
file://01-check-toggle-portait \
file://use-ts-symlink-instead-of-hardcoding.diff \
file://0001-zaurusd-add-support-for-collie.patch \
-   file://allow-newer-tslib.patch"
+   file://allow-newer-tslib.patch \
+   file://add_64bit_time_t.patch"
 
 
 S = "${WORKDIR}/git"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83995): 
https://lists.openembedded.org/g/openembedded-devel/message/83995
Mute This Topic: https://lists.openembedded.org/mt/73154204/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-handheld][PATCH 4/4] layer.conf: set compatibility for dunfell

2020-04-20 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 31fcb54..d1cb281 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -18,5 +18,5 @@ BBFILE_PRIORITY_meta-handheld = "7"
 
 LAYERDEPENDS_meta-handheld = "core meta-initramfs openembedded-layer"
 
-LAYERSERIES_COMPAT_meta-handheld = "sumo thud warrior zeus"
+LAYERSERIES_COMPAT_meta-handheld = "sumo thud warrior zeus dunfell"
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83998): 
https://lists.openembedded.org/g/openembedded-devel/message/83998
Mute This Topic: https://lists.openembedded.org/mt/73154207/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-handheld][PATCH 2/4] layer.conf: set compatibility for warrior

2020-04-20 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 1e0069d..0702f69 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -18,5 +18,5 @@ BBFILE_PRIORITY_meta-handheld = "7"
 
 LAYERDEPENDS_meta-handheld = "core meta-initramfs openembedded-layer"
 
-LAYERSERIES_COMPAT_meta-handheld = "sumo thud"
+LAYERSERIES_COMPAT_meta-handheld = "sumo thud warrior"
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83996): 
https://lists.openembedded.org/g/openembedded-devel/message/83996
Mute This Topic: https://lists.openembedded.org/mt/73154205/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[oe] [meta-handheld][PATCH 3/4] layer.conf: set compatibility for zeus

2020-04-20 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 0702f69..31fcb54 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -18,5 +18,5 @@ BBFILE_PRIORITY_meta-handheld = "7"
 
 LAYERDEPENDS_meta-handheld = "core meta-initramfs openembedded-layer"
 
-LAYERSERIES_COMPAT_meta-handheld = "sumo thud warrior"
+LAYERSERIES_COMPAT_meta-handheld = "sumo thud warrior zeus"
 
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#83997): 
https://lists.openembedded.org/g/openembedded-devel/message/83997
Mute This Topic: https://lists.openembedded.org/mt/73154206/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [oe] [meta-initramfs][PATCH 14/14] kexec-tools-klibc: Refresh patch with no code change

2019-07-23 Thread Andrea Adami
On Sun, Jul 21, 2019 at 6:40 PM Khem Raj  wrote:
>
> Fixes
> kexec-tools-klibc-2.0.18+gitAUTOINC+5750980cdb: Patch log indicates that 
> patches do not apply cleanly. [patch-fuzz]
>
> Signed-off-by: Khem Raj 
 http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Thank you Khem.

I hope to find time to catch-up with next kexec-tools 2.0.20.
(Klibc recipe itself would need more love now that upstream is active again)
Cheers

Acked-by: Andrea Adami 
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [PATCH 8/9] meta-initramfs: add pkg group and image

2019-01-13 Thread Andrea Adami
On Sun, Jan 13, 2019 at 6:53 PM Andrea Adami  wrote:
>
> On Sat, Jan 12, 2019 at 10:33 PM Armin Kuster  wrote:
> >
> > Signed-off-by: Armin Kuster 
> > ---
> >  .../images/meta-initramfs-image.bb|  8 +
> >  .../packagegroup-meta-initramfs.bb| 36 +++
> >  2 files changed, 44 insertions(+)
> >  create mode 100644 
> > meta-initramfs/recipes-core/images/meta-initramfs-image.bb
> >  create mode 100644 
> > meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> >
> > diff --git a/meta-initramfs/recipes-core/images/meta-initramfs-image.bb 
> > b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
> > new file mode 100644
> > index 00..9d70d6d02d
> > --- /dev/null
> > +++ b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
> > @@ -0,0 +1,8 @@
> > +SUMMARY = "meta-initramfs build test image"
> > +
> > +IMAGE_INSTALL = "packagegroup-core-boot \
> > + packagegroup-meta-initramfs"
> > +
> > +LICENSE = "MIT"
> > +
> > +inherit core-image
> > diff --git 
> > a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb 
> > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > new file mode 100644
> > index 00..bfede5a749
> > --- /dev/null
> > +++ 
> > b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> > @@ -0,0 +1,36 @@
> > +SUMMARY = "Meta-initramfs packagegroups"
> > +
> > +inherit packagegroup
> > +
> > +PROVIDES = "${PACKAGES}"
> > +PACKAGES = ' \
> > +packagegroup-meta-initramfs \
> > +packagegroup-meta-initramfs-devtools \
> > +packagegroup-meta-initramfs-kernel \
> > +'
> > +
> > +RDEPENDS_packagegroup-meta-initramfs = "\
> > +packagegroup-meta-initramfs-devtools \
> > +packagegroup-meta-initramfs-kernel \
> > +"
> > +
> > +RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> > +libklibc  dracut \
> > +klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
> > klibc-utils-chroot \
> > +klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> > +klibc-utils-resume klibc-utils-dd klibc-utils-mkdir 
> > klibc-utils-run-init \
> > +klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
> > klibc-utils-false \
> > +klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype 
> > klibc-utils-mount \
> > +klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
> > klibc-utils-ipconfig \
> > +klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill 
> > klibc-utils-nuke klibc-utils-uname \
> > +mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
> > ubidetach-klibc \
> > +ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc 
> > ubirename-klibc \
> > +ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> > +${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
> > "grubby", "", d)} \
> > +"
> > +
> > +RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> > +kexec-klibc vmcore-dmesg-klibc \
> > +"
> > +
> > +EXCLUDE_FROM_WORLD = "1"
> > --
> > 2.17.1
> >
> > --
> > ___
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
>
>
>
> Armin,
>
> nice work, we had something similar once in oe-classic.
>
> About the klibc utilities, I fear there might be some runtime bugs
> because there are many uncommitted patches around.
> See i.e. the last one of Ben  https://salsa.debian.org/kernel-team/klibc
> Let's hope for a new release.
>
> Cheers
> Andrea

Armin,
just a small note: the other images reside in /meta-initramfs/recipes-bsp/images
Can we keep the images unified?

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


Re: [oe] [PATCH 8/9] meta-initramfs: add pkg group and image

2019-01-13 Thread Andrea Adami
On Sat, Jan 12, 2019 at 10:33 PM Armin Kuster  wrote:
>
> Signed-off-by: Armin Kuster 
> ---
>  .../images/meta-initramfs-image.bb|  8 +
>  .../packagegroup-meta-initramfs.bb| 36 +++
>  2 files changed, 44 insertions(+)
>  create mode 100644 meta-initramfs/recipes-core/images/meta-initramfs-image.bb
>  create mode 100644 
> meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
>
> diff --git a/meta-initramfs/recipes-core/images/meta-initramfs-image.bb 
> b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
> new file mode 100644
> index 00..9d70d6d02d
> --- /dev/null
> +++ b/meta-initramfs/recipes-core/images/meta-initramfs-image.bb
> @@ -0,0 +1,8 @@
> +SUMMARY = "meta-initramfs build test image"
> +
> +IMAGE_INSTALL = "packagegroup-core-boot \
> + packagegroup-meta-initramfs"
> +
> +LICENSE = "MIT"
> +
> +inherit core-image
> diff --git 
> a/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb 
> b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> new file mode 100644
> index 00..bfede5a749
> --- /dev/null
> +++ b/meta-initramfs/recipes-core/packagegroups/packagegroup-meta-initramfs.bb
> @@ -0,0 +1,36 @@
> +SUMMARY = "Meta-initramfs packagegroups"
> +
> +inherit packagegroup
> +
> +PROVIDES = "${PACKAGES}"
> +PACKAGES = ' \
> +packagegroup-meta-initramfs \
> +packagegroup-meta-initramfs-devtools \
> +packagegroup-meta-initramfs-kernel \
> +'
> +
> +RDEPENDS_packagegroup-meta-initramfs = "\
> +packagegroup-meta-initramfs-devtools \
> +packagegroup-meta-initramfs-kernel \
> +"
> +
> +RDEPENDS_packagegroup-meta-initramfs-devtools = "\
> +libklibc  dracut \
> +klibc-utils-cat klibc-utils-losetup klibc-utils-readlink 
> klibc-utils-chroot \
> +klibc-utils-ls klibc-utils-reboot klibc-utils-cpio klibc-utils-minips \
> +klibc-utils-resume klibc-utils-dd klibc-utils-mkdir klibc-utils-run-init 
> \
> +klibc-utils-dmesg klibc-utils-mkfifo klibc-utils-sh.shared 
> klibc-utils-false \
> +klibc-utils-mknod klibc-utils-sleep klibc-utils-fstype klibc-utils-mount 
> \
> +klibc-utils-sync klibc-utils-halt klibc-utils-mv klibc-utils-true 
> klibc-utils-ipconfig \
> +klibc-utils-nfsmount klibc-utils-umount klibc-utils-kill 
> klibc-utils-nuke klibc-utils-uname \
> +mtdinfo-klibc ubiattach-klibc ubiblock-klibc ubicrc32-klibc 
> ubidetach-klibc \
> +ubiformat-klibc ubimkvol-klibc ubinfo-klibc ubinize-klibc 
> ubirename-klibc \
> +ubirmvol-klibc ubirsvol-klibc ubiupdatevol-klibc \
> +${@bb.utils.contains_any("TRANSLATED_TARGET_ARCH", "i586 x86-64", 
> "grubby", "", d)} \
> +"
> +
> +RDEPENDS_packagegroup-meta-initramfs-kernel = "\
> +kexec-klibc vmcore-dmesg-klibc \
> +"
> +
> +EXCLUDE_FROM_WORLD = "1"
> --
> 2.17.1
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



Armin,

nice work, we had something similar once in oe-classic.

About the klibc utilities, I fear there might be some runtime bugs
because there are many uncommitted patches around.
See i.e. the last one of Ben  https://salsa.debian.org/kernel-team/klibc
Let's hope for a new release.

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


Re: [oe] [OE-core] [Openembedded-architecture] Dropping armv5 and armv5e tunes in 2.7

2019-01-04 Thread Andrea Adami
On Fri, Jan 4, 2019 at 12:21 AM Khem Raj  wrote:
>
> Thanks Adrian
>
> On Thu, Jan 3, 2019 at 2:59 PM Adrian Bunk  wrote:
> >
> > On Thu, Jan 03, 2019 at 02:01:42PM -0800, Khem Raj wrote:
> > > Hello All
> > >
> > > You might have noticed a recent commit in gcc trunk
> > >
> > > https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=b232e6b58e3766bc66fe08fdb7bcba1bdadda8a2
> > >
> > > Which removed support for deprecated -march=armv5 and armv5e, this
> > > will be released along with gcc-9 release which is upcoming and we
> > > might be able to add gcc9 to 2.7 release or 2.8 release for sure.
> > >
> > > We still have non-thumb tunes for armv5 and armv4 in our tune pack, I
> > > would like to propose a patch to remove them.
> > >...
> >
> > Note that gcc 9 does *not* remove non-thumb armv4 support.
> >
>
> yes that's right. However, I was taking this time to find out if we can drop 
> all
> the ones besides armv5te even if gcc supported it unless there were OE users
> who are still interested in supporting them and had devices running OE
> which need them
>
> > Non-thumb armv5/armv5e have been removed due to
> > "have no known implementations".
> >
> > Non-thumb armv4 support was deprecated in gcc 6 together with armv2/armv3,
> > but there are still people using recent gcc on StrongARM - which is
> > non-thumb armv4.
>
> OK, that's a fair point, however, in OE's case I only have reports from users
> with armv4t devices, but it we can keep the armv4 arm-only tunes around along
> with the arm-thumb v4 ones
>

Khem,

on the kernel side it looks like RMK will not let die amrv4 so easily...

I still have around that Zaurus collie sa1100 armv4 and I think OE is
the only toolchain offering EABI for armv4
My plans were to lead it up to the upcoming linux v.5.0 so it should
not take long.
But all this is for fun I higly doubt there are still 'users'.

So IMHO it is premature to remove armv4.
Cheers
Andrea
> >
> > > Thanks
> > > -Khem
> >
> > cu
> > Adrian
> >
> > --
> >
> >"Is there not promise of rain?" Ling Tan asked suddenly out
> > of the darkness. There had been need of rain for many days.
> >"Only a promise," Lao Er said.
> >Pearl S. Buck - Dragon Seed
> >
> --
> ___
> Openembedded-core mailing list
> openembedded-c...@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel

2018-12-17 Thread Andrea Adami
On Mon, Dec 17, 2018 at 10:28 PM Andrea Adami  wrote:
>
> On Mon, Dec 17, 2018 at 10:18 PM Andrea Adami  wrote:
> >
> > On Mon, Dec 17, 2018 at 8:23 PM Khem Raj  wrote:
> > >
> > > On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami  
> > > wrote:
> > > >
> > > > Fix:
> > > > printf.c:2:10: fatal error: limits.h: No such file or directory
> > > > |  #include 
> > > >
> > > > Signed-off-by: Andrea Adami 
> > > > ---
> > > >  meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > >
> > > > diff --git 
> > > > a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
> > > > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > > index e7553244d..872d79b93 100644
> > > > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/i
> > > >  CFLAGS_arm_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > > >  CFLAGS_aarch64_append = "${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
> > > >  CFLAGS_mips_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > > > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > > >  CFLAGS_mips64_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
> > >
> > > I wonder if we just use use "mipsarch" override here once for all
> > > mips kinds.
>
> Note that there are different bitsizes...
> Please merge this, we'll think how to refactor this later.
> Cheers
>

ehm.. sorry for the noise, my git repo exploded...
This patch is already merged in master-next: archived as
not-applicable (anymore).

Cheers
Andrea


> Andrea
> P.S. Unfortunately my poor 3.13.5 bcm-tainted drivers do not survive to kexec.
> Will retry with a recent bmips for bcm7425
>
>
> > >
> > > >  CFLAGS_powerpc_append = " ${COMMON_CFLAGS} 
> > > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > > >
> > I am also wondering how to do that in another way.
> > Maybe a patch to adjust the included headers?
> >
> > Cheers
> > Andrea
> >
> > > > --
> > > > 2.17.1
> > > >
> > > > --
> > > > ___
> > > > Openembedded-devel mailing list
> > > > Openembedded-devel@lists.openembedded.org
> > > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel

2018-12-17 Thread Andrea Adami
On Mon, Dec 17, 2018 at 10:18 PM Andrea Adami  wrote:
>
> On Mon, Dec 17, 2018 at 8:23 PM Khem Raj  wrote:
> >
> > On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami  
> > wrote:
> > >
> > > Fix:
> > > printf.c:2:10: fatal error: limits.h: No such file or directory
> > > |  #include 
> > >
> > > Signed-off-by: Andrea Adami 
> > > ---
> > >  meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 +
> > >  1 file changed, 1 insertion(+)
> > >
> > > diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
> > > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > index e7553244d..872d79b93 100644
> > > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/i
> > >  CFLAGS_arm_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > >  CFLAGS_aarch64_append = "${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
> > >  CFLAGS_mips_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > >  CFLAGS_mips64_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
> >
> > I wonder if we just use use "mipsarch" override here once for all
> > mips kinds.

Note that there are different bitsizes...
Please merge this, we'll think how to refactor this later.
Cheers

Andrea
P.S. Unfortunately my poor 3.13.5 bcm-tainted drivers do not survive to kexec.
Will retry with a recent bmips for bcm7425


> >
> > >  CFLAGS_powerpc_append = " ${COMMON_CFLAGS} 
> > > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > >
> I am also wondering how to do that in another way.
> Maybe a patch to adjust the included headers?
>
> Cheers
> Andrea
>
> > > --
> > > 2.17.1
> > >
> > > --
> > > ___
> > > Openembedded-devel mailing list
> > > Openembedded-devel@lists.openembedded.org
> > > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel

2018-12-17 Thread Andrea Adami
On Mon, Dec 17, 2018 at 8:23 PM Khem Raj  wrote:
>
> On Mon, Dec 17, 2018 at 10:15 AM Andrea Adami  wrote:
> >
> > Fix:
> > printf.c:2:10: fatal error: limits.h: No such file or directory
> > |  #include 
> >
> > Signed-off-by: Andrea Adami 
> > ---
> >  meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
> > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > index e7553244d..872d79b93 100644
> > --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
> > @@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/i
> >  CFLAGS_arm_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> >  CFLAGS_aarch64_append = "${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
> >  CFLAGS_mips_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> > +CFLAGS_mipsel_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> >  CFLAGS_mips64_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
>
> I wonder if we just use use "mipsarch" override here once for all
> mips kinds.
>
> >  CFLAGS_powerpc_append = " ${COMMON_CFLAGS} 
> > -I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
> >
I am also wondering how to do that in another way.
Maybe a patch to adjust the included headers?

Cheers
Andrea

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


[oe] [meta-initramfs][PATCH v2] kexec-tools-klibc: implement the --no-dtb option for older mips kernels

2018-12-17 Thread Andrea Adami
Fix borrowed from LEDE-DEV.

Signed-off-by: Andrea Adami 
---
 .../140-mips_disable_devicetree_support.patch | 163 ++
 .../kexec/kexec-tools-klibc_git.bb|   3 +
 2 files changed, 166 insertions(+)
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
new file mode 100644
index 0..b3ef3c82d
--- /dev/null
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
@@ -0,0 +1,163 @@
+From 5ea7cd78cd252ffd3a9f3fbc8dc795d6e1596084 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Mon, 17 Dec 2018 11:25:20 +0100
+Subject: [PATCH] kexec-tools: fix non-device tree devices on mips
+
+Add additional argument '--no-dtb' which disables device tree
+search in currently loaded kernel.
+
+Taken from LEDE-DEV:
+https://patchwork.ozlabs.org/patch/852961/
+
+Rebased for kexec-tools 2.0.18
+Removed ppc change (unwanted ?)
+
+Signed-off-by: Konstantin Kuzov 
+Signed-off-by: Andrea Adami 
+---
+ kexec/arch/mips/include/arch/options.h |  4 +-
+ kexec/arch/mips/kexec-elf-mips.c   | 58 ++
+ kexec/arch/mips/kexec-mips.c   |  4 ++
+ kexec/arch/mips/kexec-mips.h   |  1 +
+ 4 files changed, 39 insertions(+), 28 deletions(-)
+
+diff --git a/kexec/arch/mips/include/arch/options.h 
b/kexec/arch/mips/include/arch/options.h
+index 416e224..18d2811 100644
+--- a/kexec/arch/mips/include/arch/options.h
 b/kexec/arch/mips/include/arch/options.h
+@@ -5,6 +5,7 @@
+ #define OPT_APPEND(OPT_ARCH_MAX+0)
+ #define OPT_DTB   (OPT_ARCH_MAX+1)
+ #define OPT_RAMDISK   (OPT_ARCH_MAX+2)
++#define OPT_NO_DTB(OPT_ARCH_MAX+3)
+ 
+ /* Options relevant to the architecture (excluding loader-specific ones),
+  * in this case none:
+@@ -14,7 +15,8 @@
+   {"command-line", 1, 0, OPT_APPEND}, \
+   {"append",   1, 0, OPT_APPEND}, \
+   {"dtb", 1, 0, OPT_DTB }, \
+-  {"initrd",  1, 0, OPT_RAMDISK },
++  {"initrd",  1, 0, OPT_RAMDISK }, \
++  {"no-dtb",  0, 0, OPT_NO_DTB },
+ 
+ 
+ #define KEXEC_ARCH_OPT_STR KEXEC_OPT_STR ""
+diff --git a/kexec/arch/mips/kexec-elf-mips.c 
b/kexec/arch/mips/kexec-elf-mips.c
+index 849a7ba..5c0e535 100644
+--- a/kexec/arch/mips/kexec-elf-mips.c
 b/kexec/arch/mips/kexec-elf-mips.c
+@@ -141,35 +141,37 @@ int elf_mips_load(int argc, char **argv, const char 
*buf, off_t len,
+   else
+   cmdline_addr = 0;
+ 
+-  /* MIPS systems that have been converted to use device tree
+-   * passed through UHI will use commandline in the DTB and
+-   * the DTB passed as a separate buffer. Note that
+-   * CMDLINE_PREFIX is skipped here intentionally, as it is
+-   * used only in the legacy method */
+-
+-  if (arch_options.dtb_file) {
+-  dtb_buf = slurp_file(arch_options.dtb_file, _length);
+-  } else {
+-  create_flatten_tree(_buf, _length, cmdline_buf + 
strlen(CMDLINE_PREFIX));
+-  }
+ 
+-  if (arch_options.initrd_file) {
+-  initrd_buf = slurp_file(arch_options.initrd_file, _size);
++  if (!arch_options.no_dtb) {
++  /* MIPS systems that have been converted to use device tree
++   * passed through UHI will use commandline in the DTB and
++   * the DTB passed as a separate buffer. Note that
++   * CMDLINE_PREFIX is skipped here intentionally, as it is
++   * used only in the legacy method */
++
++  if (arch_options.dtb_file) {
++  dtb_buf = slurp_file(arch_options.dtb_file, 
_length);
++  } else {
++  create_flatten_tree(_buf, _length, cmdline_buf 
+ strlen(CMDLINE_PREFIX));
++  }
+ 
+-  /* Create initrd entries in dtb - although at this time
+-   * they would not point to the correct location */
+-  dtb_set_initrd(_buf, _length, initrd_buf, initrd_buf + 
initrd_size);
++  if (arch_options.initrd_file) {
++  initrd_buf = slurp_file(arch_options.initrd_file, 
_size);
+ 
+-  initrd_base = add_buffer(info, initrd_buf, initrd_size,
+-  initrd_size, sizeof(void *),
+-  _ALIGN_UP(kernel_addr + kernel_size + 
dtb_length,
+-  pagesize), 0x0fff, 1);
++  /* Create initrd entries in dtb - although at this time
++   * they would not point to the correct location */
++  dtb_set_initrd(_buf, _length, initrd_buf, 
initrd_buf + initrd_size);
+ 

[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel

2018-12-17 Thread Andrea Adami
Fix:
printf.c:2:10: fatal error: limits.h: No such file or directory
|  #include 

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index e7553244d..872d79b93 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -66,6 +66,7 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/i
 CFLAGS_arm_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 CFLAGS_aarch64_append = "${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
 CFLAGS_mips_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
+CFLAGS_mipsel_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 CFLAGS_mips64_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
 CFLAGS_powerpc_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 
-- 
2.17.1

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


Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: implement the --no-dtb option for older mips kernels

2018-12-17 Thread Andrea Adami
On Mon, Dec 17, 2018 at 5:59 PM Khem Raj  wrote:
>
> Can you rebase it on master-next please
Sure, sorry
Cheers
Andrea


> On Mon, Dec 17, 2018 at 2:35 AM Andrea Adami  wrote:
> >
> > Fix borrowed from LEDE-DEV.
> >
> > Signed-off-by: Andrea Adami 
> > ---
> >  .../140-mips_disable_devicetree_support.patch | 163 ++
> >  .../kexec/kexec-tools-klibc_git.bb|   8 +-
> >  2 files changed, 169 insertions(+), 2 deletions(-)
> >  create mode 100644 
> > meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
> >
> > diff --git 
> > a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
> >  
> > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
> > new file mode 100644
> > index 0..b3ef3c82d
> > --- /dev/null
> > +++ 
> > b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
> > @@ -0,0 +1,163 @@
> > +From 5ea7cd78cd252ffd3a9f3fbc8dc795d6e1596084 Mon Sep 17 00:00:00 2001
> > +From: Andrea Adami 
> > +Date: Mon, 17 Dec 2018 11:25:20 +0100
> > +Subject: [PATCH] kexec-tools: fix non-device tree devices on mips
> > +
> > +Add additional argument '--no-dtb' which disables device tree
> > +search in currently loaded kernel.
> > +
> > +Taken from LEDE-DEV:
> > +https://patchwork.ozlabs.org/patch/852961/
> > +
> > +Rebased for kexec-tools 2.0.18
> > +Removed ppc change (unwanted ?)
> > +
> > +Signed-off-by: Konstantin Kuzov 
> > +Signed-off-by: Andrea Adami 
> > +---
> > + kexec/arch/mips/include/arch/options.h |  4 +-
> > + kexec/arch/mips/kexec-elf-mips.c   | 58 ++
> > + kexec/arch/mips/kexec-mips.c   |  4 ++
> > + kexec/arch/mips/kexec-mips.h   |  1 +
> > + 4 files changed, 39 insertions(+), 28 deletions(-)
> > +
> > +diff --git a/kexec/arch/mips/include/arch/options.h 
> > b/kexec/arch/mips/include/arch/options.h
> > +index 416e224..18d2811 100644
> > +--- a/kexec/arch/mips/include/arch/options.h
> >  b/kexec/arch/mips/include/arch/options.h
> > +@@ -5,6 +5,7 @@
> > + #define OPT_APPEND(OPT_ARCH_MAX+0)
> > + #define OPT_DTB   (OPT_ARCH_MAX+1)
> > + #define OPT_RAMDISK   (OPT_ARCH_MAX+2)
> > ++#define OPT_NO_DTB(OPT_ARCH_MAX+3)
> > +
> > + /* Options relevant to the architecture (excluding loader-specific ones),
> > +  * in this case none:
> > +@@ -14,7 +15,8 @@
> > +   {"command-line", 1, 0, OPT_APPEND}, \
> > +   {"append",   1, 0, OPT_APPEND}, \
> > +   {"dtb", 1, 0, OPT_DTB }, \
> > +-  {"initrd",  1, 0, OPT_RAMDISK },
> > ++  {"initrd",  1, 0, OPT_RAMDISK }, \
> > ++  {"no-dtb",  0, 0, OPT_NO_DTB },
> > +
> > +
> > + #define KEXEC_ARCH_OPT_STR KEXEC_OPT_STR ""
> > +diff --git a/kexec/arch/mips/kexec-elf-mips.c 
> > b/kexec/arch/mips/kexec-elf-mips.c
> > +index 849a7ba..5c0e535 100644
> > +--- a/kexec/arch/mips/kexec-elf-mips.c
> >  b/kexec/arch/mips/kexec-elf-mips.c
> > +@@ -141,35 +141,37 @@ int elf_mips_load(int argc, char **argv, const char 
> > *buf, off_t len,
> > +   else
> > +   cmdline_addr = 0;
> > +
> > +-  /* MIPS systems that have been converted to use device tree
> > +-   * passed through UHI will use commandline in the DTB and
> > +-   * the DTB passed as a separate buffer. Note that
> > +-   * CMDLINE_PREFIX is skipped here intentionally, as it is
> > +-   * used only in the legacy method */
> > +-
> > +-  if (arch_options.dtb_file) {
> > +-  dtb_buf = slurp_file(arch_options.dtb_file, _length);
> > +-  } else {
> > +-  create_flatten_tree(_buf, _length, cmdline_buf + 
> > strlen(CMDLINE_PREFIX));
> > +-  }
> > +
> > +-  if (arch_options.initrd_file) {
> > +-  initrd_buf = slurp_file(arch_options.initrd_file, 
> > _size);
> > ++  if (!arch_options.no_dtb) {
> > ++  /* MIPS systems that have been converted to use device tree
> > ++   * passed through UHI will use commandline in the DTB and
> > ++   * the DTB passed as a separate buffer. Note that
> > ++   * CMDLINE_PREFIX is skipped here intentionally, as it is
> > ++   * used only in the legacy method */
>

[oe] [meta-initramfs][PATCH] kexecboot: update to latest master (7409a1e0aaea)

2018-12-17 Thread Andrea Adami
implemening --no-dtb option for older mips/mipsel

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb 
b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
index 6d79e8f83..61210e768 100644
--- a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
+++ b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 PV = "0.6+git${SRCPV}"
 S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/kexecboot/kexecboot.git"
-SRCREV = "4c01d6960aa6a9d03675605062469ab777fa2b01"
+SRCREV = "7409a1e0aaea61af87c4eca0149cec18a9f58ab6"
 inherit autotools
 
 EXTRA_OECONF = "--enable-textui --enable-delay=2 --enable-evdev-rate=1000,250"
-- 
2.17.1

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: implement the --no-dtb option for older mips kernels

2018-12-17 Thread Andrea Adami
Fix borrowed from LEDE-DEV.

Signed-off-by: Andrea Adami 
---
 .../140-mips_disable_devicetree_support.patch | 163 ++
 .../kexec/kexec-tools-klibc_git.bb|   8 +-
 2 files changed, 169 insertions(+), 2 deletions(-)
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
new file mode 100644
index 0..b3ef3c82d
--- /dev/null
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/140-mips_disable_devicetree_support.patch
@@ -0,0 +1,163 @@
+From 5ea7cd78cd252ffd3a9f3fbc8dc795d6e1596084 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Mon, 17 Dec 2018 11:25:20 +0100
+Subject: [PATCH] kexec-tools: fix non-device tree devices on mips
+
+Add additional argument '--no-dtb' which disables device tree
+search in currently loaded kernel.
+
+Taken from LEDE-DEV:
+https://patchwork.ozlabs.org/patch/852961/
+
+Rebased for kexec-tools 2.0.18
+Removed ppc change (unwanted ?)
+
+Signed-off-by: Konstantin Kuzov 
+Signed-off-by: Andrea Adami 
+---
+ kexec/arch/mips/include/arch/options.h |  4 +-
+ kexec/arch/mips/kexec-elf-mips.c   | 58 ++
+ kexec/arch/mips/kexec-mips.c   |  4 ++
+ kexec/arch/mips/kexec-mips.h   |  1 +
+ 4 files changed, 39 insertions(+), 28 deletions(-)
+
+diff --git a/kexec/arch/mips/include/arch/options.h 
b/kexec/arch/mips/include/arch/options.h
+index 416e224..18d2811 100644
+--- a/kexec/arch/mips/include/arch/options.h
 b/kexec/arch/mips/include/arch/options.h
+@@ -5,6 +5,7 @@
+ #define OPT_APPEND(OPT_ARCH_MAX+0)
+ #define OPT_DTB   (OPT_ARCH_MAX+1)
+ #define OPT_RAMDISK   (OPT_ARCH_MAX+2)
++#define OPT_NO_DTB(OPT_ARCH_MAX+3)
+ 
+ /* Options relevant to the architecture (excluding loader-specific ones),
+  * in this case none:
+@@ -14,7 +15,8 @@
+   {"command-line", 1, 0, OPT_APPEND}, \
+   {"append",   1, 0, OPT_APPEND}, \
+   {"dtb", 1, 0, OPT_DTB }, \
+-  {"initrd",  1, 0, OPT_RAMDISK },
++  {"initrd",  1, 0, OPT_RAMDISK }, \
++  {"no-dtb",  0, 0, OPT_NO_DTB },
+ 
+ 
+ #define KEXEC_ARCH_OPT_STR KEXEC_OPT_STR ""
+diff --git a/kexec/arch/mips/kexec-elf-mips.c 
b/kexec/arch/mips/kexec-elf-mips.c
+index 849a7ba..5c0e535 100644
+--- a/kexec/arch/mips/kexec-elf-mips.c
 b/kexec/arch/mips/kexec-elf-mips.c
+@@ -141,35 +141,37 @@ int elf_mips_load(int argc, char **argv, const char 
*buf, off_t len,
+   else
+   cmdline_addr = 0;
+ 
+-  /* MIPS systems that have been converted to use device tree
+-   * passed through UHI will use commandline in the DTB and
+-   * the DTB passed as a separate buffer. Note that
+-   * CMDLINE_PREFIX is skipped here intentionally, as it is
+-   * used only in the legacy method */
+-
+-  if (arch_options.dtb_file) {
+-  dtb_buf = slurp_file(arch_options.dtb_file, _length);
+-  } else {
+-  create_flatten_tree(_buf, _length, cmdline_buf + 
strlen(CMDLINE_PREFIX));
+-  }
+ 
+-  if (arch_options.initrd_file) {
+-  initrd_buf = slurp_file(arch_options.initrd_file, _size);
++  if (!arch_options.no_dtb) {
++  /* MIPS systems that have been converted to use device tree
++   * passed through UHI will use commandline in the DTB and
++   * the DTB passed as a separate buffer. Note that
++   * CMDLINE_PREFIX is skipped here intentionally, as it is
++   * used only in the legacy method */
++
++  if (arch_options.dtb_file) {
++  dtb_buf = slurp_file(arch_options.dtb_file, 
_length);
++  } else {
++  create_flatten_tree(_buf, _length, cmdline_buf 
+ strlen(CMDLINE_PREFIX));
++  }
+ 
+-  /* Create initrd entries in dtb - although at this time
+-   * they would not point to the correct location */
+-  dtb_set_initrd(_buf, _length, initrd_buf, initrd_buf + 
initrd_size);
++  if (arch_options.initrd_file) {
++  initrd_buf = slurp_file(arch_options.initrd_file, 
_size);
+ 
+-  initrd_base = add_buffer(info, initrd_buf, initrd_size,
+-  initrd_size, sizeof(void *),
+-  _ALIGN_UP(kernel_addr + kernel_size + 
dtb_length,
+-  pagesize), 0x0fff, 1);
++  /* Create initrd entries in dtb - although at this time
++   * they would not point to the correct location */
++  dtb_set_initrd(_buf, _length, initrd_buf, 
initrd_bu

[oe] [meta-initramfs][PATCH] kexec-tools-klibc: update to 2.0.18

2018-12-12 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index cc1c5518b..6ffa2aad6 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -6,14 +6,14 @@ SECTION = "kernel/userland"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \
 
file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09"
-PV = "2.0.17+git${SRCPV}"
+PV = "2.0.18+git${SRCPV}"
 
 DEPENDS = "zlib xz"
 
 inherit klibc autotools
 
 SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
-SRCREV = "b9de21ef51a7ceab7122a707c188602eae22c4ee"
+SRCREV = "5750980cdbbc33ef75bfba6660295b932376ce15"
 
 BUILD_PATCHES = "file://0001-force-static-build.patch \
  
file://0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch"
-- 
2.17.1

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


[oe] [meta-networking][PATCH] samba: fix build on qemumips64 with musl

2018-12-12 Thread Andrea Adami
There is the same issue as for libldb, the header has conflicting defs
for unitptr_t. Fix it as done for the other recipe.

Fix
 /cmocka/cmocka.h:126:28: error: conflicting types for 'uintptr_t'
typedef unsigned int uintptr_t;
 ^

Signed-off-by: Andrea Adami 
---
 .../samba/samba/cmocka-uintptr_t.patch| 51 +++
 .../recipes-connectivity/samba/samba_4.8.4.bb |  1 +
 2 files changed, 52 insertions(+)
 create mode 100644 
meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch

diff --git 
a/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch 
b/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch
new file mode 100644
index 0..5c299d617
--- /dev/null
+++ b/meta-networking/recipes-connectivity/samba/samba/cmocka-uintptr_t.patch
@@ -0,0 +1,51 @@
+From 5bd7b5d04435bd593349825973ce32290f5f604d Mon Sep 17 00:00:00 2001
+From: Changqing Li 
+Date: Wed, 25 Jul 2018 09:55:25 +0800
+Subject: [PATCH] samba: cmocka.h: fix musl libc conflicting types error
+
+Fix build on qemumips64(el)
+
+taken from:
+[PATCH] libldb: fix musl libc conflicting types error
+
+/third_party/cmocka/cmocka.h:126:28: error: conflicting types for 'uintptr_t'
+typedef unsigned int uintptr_t;
+ ^
+use __DEFINED_uintptr_t in alltypes.h to check if uintptr already defined
+
+Upstream-Status: Pending
+
+Signed-off-by: Changqing Li 
+Signed-off-by: Andrea Adami 
+---
+ third_party/cmocka/cmocka.h | 7 +++
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/third_party/cmocka/cmocka.h b/third_party/cmocka/cmocka.h
+index 4fd82a9..5443a08 100644
+--- a/third_party/cmocka/cmocka.h
 b/third_party/cmocka/cmocka.h
+@@ -110,7 +110,7 @@ typedef uintmax_t LargestIntegralType;
+ ((LargestIntegralType)(value))
+ 
+ /* Smallest integral type capable of holding a pointer. */
+-#if !defined(_UINTPTR_T) && !defined(_UINTPTR_T_DEFINED)
++#if !defined(__DEFINED_uintptr_t)
+ # if defined(_WIN32)
+ /* WIN32 is an ILP32 platform */
+ typedef unsigned int uintptr_t;
+@@ -134,9 +134,8 @@ typedef uintmax_t LargestIntegralType;
+ #  endif /* __WORDSIZE */
+ # endif /* _WIN32 */
+ 
+-# define _UINTPTR_T
+-# define _UINTPTR_T_DEFINED
+-#endif /* !defined(_UINTPTR_T) || !defined(_UINTPTR_T_DEFINED) */
++# define __DEFINED_uintptr_t
++#endif /* !defined(__DEFINED_uintptr_t) */
+ 
+ /* Perform an unsigned cast to uintptr_t. */
+ #define cast_to_pointer_integral_type(value) \
+-- 
+2.7.4
+
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb 
b/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb
index da0ac322a..f1aaeb83d 100644
--- a/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb
+++ b/meta-networking/recipes-connectivity/samba/samba_4.8.4.bb
@@ -28,6 +28,7 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \
 SRC_URI_append_libc-musl = " \
file://samba-pam.patch \
file://samba-4.3.9-remove-getpwent_r.patch \
+   file://cmocka-uintptr_t.patch \
   "
 
 SRC_URI[md5sum] = "ca5bfbebd8d9eb95506e16594b2bbee2"
-- 
2.17.1

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for mipsel and mips64el

2018-12-10 Thread Andrea Adami
Builds with little endianness were not tested before.

Fix for:
purgatory.c:2:10: fatal error: limits.h:
 No such file or directory

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index 25f5da48d..cc1c5518b 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -66,9 +66,12 @@ CFLAGS_x86-64_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/i
 CFLAGS_arm_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 CFLAGS_aarch64_append = "${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
 CFLAGS_mips_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
+CFLAGS_mipsel_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 CFLAGS_mips64_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
+CFLAGS_mips64el_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
 CFLAGS_powerpc_append = " ${COMMON_CFLAGS} 
-I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
 
+
 do_compile_prepend() {
 # Remove the prepackaged config.h from the source tree as it overrides
 # the same file generated by configure and placed in the build tree
-- 
2.17.1

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


[oe] [meta-networking][PATCH] waf-cross-answers: Add cross-answers-mips64el.txt

2018-12-07 Thread Andrea Adami
Fix build failure on mips64el platforms (missing waf-cross-answers-mips64el).

Signed-off-by: Andrea Adami 
---
 .../cross-answers-mips64el.txt| 39 +++
 1 file changed, 39 insertions(+)
 create mode 100644 
meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt

diff --git a/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt 
b/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt
new file mode 100644
index 0..82e694fda
--- /dev/null
+++ b/meta-networking/files/waf-cross-answers/cross-answers-mips64el.txt
@@ -0,0 +1,39 @@
+Checking uname sysname type: "Linux"
+Checking uname version type: "# Wed May 20 10:34:39 UTC 2015"
+Checking simple C program: "hello world"
+rpath library support: OK
+-Wl,--version-script support: OK
+Checking getconf LFS_CFLAGS: NO
+Checking correct behavior of strtoll: NO
+Checking for working strptime: OK
+Checking for C99 vsnprintf: "1"
+Checking for HAVE_SHARED_MMAP: OK
+Checking for HAVE_MREMAP: OK
+Checking for HAVE_SECURE_MKSTEMP: OK
+Checking for HAVE_IFACE_GETIFADDRS: NO
+Checking for HAVE_IFACE_IFCONF: NO
+Checking for HAVE_IFACE_IFREQ: NO
+Checking for large file support without additional flags: OK
+Checking for HAVE_INCOHERENT_MMAP: OK
+Checking value of NSIG: "128"
+Checking value of _NSIG: "128"
+Checking value of SIGRTMAX: "127"
+Checking value of SIGRTMIN: "34"
+Checking whether the WRFILE -keytab is supported: OK
+Checking for kernel change notify support: OK
+Checking for Linux kernel oplocks: OK
+Checking for kernel share modes: OK
+Checking whether POSIX capabilities are available: OK
+Checking if can we convert from CP850 to UCS-2LE: OK
+Checking if can we convert from UTF-8 to UCS-2LE: OK
+vfs_fileid checking for statfs() and struct statfs.f_fsid: OK
+Checking whether we can use Linux thread-specific credentials: OK
+Checking whether fcntl locking is available: OK
+Checking for the maximum value of the 'time_t' type: OK
+Checking whether the realpath function allows a NULL argument: OK
+Checking for ftruncate extend: OK
+getcwd takes a NULL argument: OK
+Checking for small off_t: NO
+Checking whether blkcnt_t is 32 bit: NO
+Checking whether blkcnt_t is 64 bit: OK
+Checking whether fcntl lock supports open file description locks: OK
-- 
2.17.1

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


Re: [oe] [meta-openembedded][PATCH] mksh: add version 56

2018-12-04 Thread Andrea Adami
I had not yet time to review and test-build the recipe but I pointed
it to the author, tg, the fellow helping with klibc.
Here his observations:

 LICENSE = "MirOS & ISC"
 ISC only if your libc doesn't have strlcpy
 all but glibc have it
 +chmod +x ${S}/Build.sh
 why?
 just run sh ${S}/Build.sh instead
 oh and add -r
 saves time (-r disables automatic compilation of the manpage to
a catmanpage, BSD style)
 inherit autotools   ← I doubt that ;)
 you’ll also want to install an /etc/skel/.mkshrc or similar; in
FreeWRT, OpenWrt and OpenADK where root is the only user we install it
as /root/.mkshrc

Cheers
Andrea
On Wed, Dec 5, 2018 at 12:00 AM Khem Raj  wrote:
>
> Fails to build with musl - 
> http://errors.yoctoproject.org/Errors/Details/203419/
> On Tue, Dec 4, 2018 at 6:16 AM Eduardas Meile  wrote:
> >
> > The MirBSD Korn Shell is a permissively licensed shell currently used
> > by Android.
> >
> > Signed-off-by: Eduardas Meile 
> > ---
> >  meta-oe/recipes-shells/mksh/mksh_56.bb | 34 ++
> >  1 file changed, 34 insertions(+)
> >  create mode 100644 meta-oe/recipes-shells/mksh/mksh_56.bb
> >
> > diff --git a/meta-oe/recipes-shells/mksh/mksh_56.bb 
> > b/meta-oe/recipes-shells/mksh/mksh_56.bb
> > new file mode 100644
> > index 0..2ddcc6607
> > --- /dev/null
> > +++ b/meta-oe/recipes-shells/mksh/mksh_56.bb
> > @@ -0,0 +1,34 @@
> > +DESCRIPTION = "The MirBSD Korn Shell - an enhanced version of the public 
> > domain ksh"
> > +HOMEPAGE = "http://www.mirbsd.org/mksh.htm;
> > +SECTION = "base/shell"
> > +
> > +LICENSE = "MirOS & ISC"
> > +LIC_FILES_CHKSUM = 
> > "file://main.c;beginline=6;endline=25;md5=7204fec4d12912f2a13fe8745bc356f9 \
> > +
> > file://strlcpy.c;beginline=1;endline=17;md5=d953f28f0c43ee29e238ec9bc15df2a0
> >  \
> > +   "
> > +
> > +SRC_URI = "http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R56c.tgz;
> > +
> > +SRC_URI[md5sum] = "4799a9ac6d55871d79ba66713d928663"
> > +SRC_URI[sha256sum] = 
> > "dd86ebc421215a7b44095dc13b056921ba81e61b9f6f4cdab08ca135d02afb77"
> > +
> > +inherit autotools update-alternatives
> > +
> > +S = "${WORKDIR}/${PN}"
> > +
> > +ALTERNATIVE_${PN} = "sh"
> > +ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
> > +ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
> > +ALTERNATIVE_PRIORITY = "100"
> > +
> > +do_compile() {
> > +chmod +x ${S}/Build.sh
> > +${S}/Build.sh
> > +}
> > +
> > +do_install() {
> > +install -d ${D}${base_bindir}
> > +install -m 0755 ${S}/mksh ${D}${base_bindir}/mksh
> > +}
> > +
> > +RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', 
> > '/bin/sh', '', d)}"
> > --
> > 2.17.1
> >
> > --
> > ___
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-initramfs][PATCH] klibc: fix build for mipsel and mips64el with security flags enabled

2018-12-04 Thread Andrea Adami
Fix relocations like:
| mipsel-oe-linux-musl-ld.bfd: usr/klibc/libc.a(kill.o):
 relocation R_MIPS_26 against `__syscall_common' can not be used when making a 
shared object; recompile with -fPIC

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index be01c2f58..398dfd1cf 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -69,6 +69,7 @@ KLIBC_ARCH = "${TARGET_ARCH}"
 KLIBC_ARCH_aarch64 = "arm64"
 KLIBC_ARCH_armeb = "arm"
 KLIBC_ARCH_mipsel = "mips"
+KLIBC_ARCH_mips64el = "mips64"
 KLIBC_ARCH_x86 = "i386"
 KLIBC_ARCH_x86-64 = "x86_64"
 KLIBC_ARCH_powerpc = "ppc"
@@ -78,4 +79,6 @@ THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 GCCPIE ?= ""
 SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
 SECURITY_LDFLAGS_mips = ""
+SECURITY_LDFLAGS_mipsel = ""
 SECURITY_LDFLAGS_mips64 = ""
+SECURITY_LDFLAGS_mips64el = ""
-- 
2.17.1

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


[oe] [meta-oe][PATCH] kernel-selftest: temporary disable bpf for arm - fix build for qemuarm

2018-10-27 Thread Andrea Adami
Even running on 32bit the bpf objects are 64bit: this triggers the QA  about
bitsize mismatch 32 vs. 64. Besides, objdump does not recognize the arch 0xf7.

Trying the workaround to use the llvm-objdump and setting TOOLCHAIN = "clang"
the build for arm fails on libcxx

  |include/c++/8.2.0/atomic:250: undefined reference to `__atomic_load_4'

Temporary disable bpf as done for x86/32bit as it seems still unstable.

Signed-off-by: Andrea Adami 
---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb 
b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index 71bf83c..181e97c 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -20,6 +20,7 @@ SRC_URI += "file://run-ptest \
 # if you have older kernel than that you need to remove it from PACKAGECONFIG
 PACKAGECONFIG ??= "bpf vm"
 PACKAGECONFIG_remove_x86 = "bpf"
+PACKAGECONFIG_remove_arm = "bpf"
 
 PACKAGECONFIG[bpf] = ",,elfutils libcap libcap-ng rsync-native,"
 PACKAGECONFIG[vm] = ",,libcap,libgcc bash"
-- 
2.7.4

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


[oe] [meta-oe][PATCH] redis: fix build for qemuarm disabling atomics

2018-10-25 Thread Andrea Adami
Apply the same patch used for mips.

Fix
  |ld: networking.o: in function `createClient':
  | /usr/src/debug/redis/4.0.8-r0/redis-4.0.8/src/networking.c:93:
 undefined reference to `__atomic_fetch_add_8'

Signed-off-by: Andrea Adami 
---
 meta-oe/recipes-extended/redis/redis_4.0.8.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oe/recipes-extended/redis/redis_4.0.8.bb 
b/meta-oe/recipes-extended/redis/redis_4.0.8.bb
index b6f37e9..80d36d2 100644
--- a/meta-oe/recipes-extended/redis/redis_4.0.8.bb
+++ b/meta-oe/recipes-extended/redis/redis_4.0.8.bb
@@ -16,6 +16,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
 "
 
 SRC_URI_append_mips = " file://remove-atomics.patch"
+SRC_URI_append_arm = " file://remove-atomics.patch"
 
 SRC_URI[md5sum] = "c75b11e4177e153e4dc1d8dd3a6174e4"
 SRC_URI[sha256sum] = 
"ff0c38b8c156319249fec61e5018cf5b5fe63a65b61690bec798f4c998c232ad"
-- 
2.7.4

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


Re: [oe] State of the world, 2018-10-11

2018-10-12 Thread Andrea Adami
On Thu, Oct 11, 2018 at 7:28 PM Khem Raj  wrote:
>
> http://www.openembedded.org/wiki/Bitbake_World_Status
>
> == Failed tasks 2018-10-10 ==
>
> INFO: jenkins-job.sh-1.8.45 Complete log available at
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.report.20181011_102118.log
>
> === common (0) ===
>
> === common-x86 (1) ===
> * 
> sources/meta-freescale-3rdparty/recipes-bsp/u-boot/u-boot-boundary-fw-utils_2018.07.bb:do_fetch
>
> === qemuarm (4) ===
> * 
> sources/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile
> * 
> sources/meta-openembedded/meta-oe/recipes-extended/redis/redis_4.0.8.bb:do_compile
> * 
> sources/meta-openembedded/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb:do_package_qa
> * sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
>
> === qemuarm64 (1) ===
> * 
> sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_71.0.3545.0.r589108.igalia.1.bb:do_compile
>
> === qemux86 (1) ===
> * sources/meta-qt5/recipes-qt/qt5/qt5-creator_git.bb:do_compile
>
> === qemux86_64 (0) ===
>
> === Number of failed tasks (9) ===
> {| class=wikitable
> |-
> || qemuarm || 4 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm.20181010_090138.log/
> ||
> |-
> || qemuarm64 || 1 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm64.20181010_160727.log/
> ||
> |-
> || qemux86 || 2 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86.20181010_090144.log/
> ||
> |-
> || qemux86_64 || 2 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86-64.20181010_184514.log/
> ||
> |}
>
> === PNBLACKLISTs (0) ===
>
> === QA issues (70) ===
> {| class=wikitable
> !| Count ||Issue
> |-
> ||0 ||already-stripped
> |-
> ||0 ||build-deps
> |-
> ||0 ||compile-host-path
> |-
> ||0 ||file-rdeps
> |-
> ||0 ||host-user-contaminated
> |-
> ||0 ||installed-vs-shipped
> |-
> ||0 ||invalid-pkgconfig
> |-
> ||0 ||ldflags
> |-
> ||0 ||libdir
> |-
> ||0 ||pkgname
> |-
> ||0 ||qa_pseudo
> |-
> ||0 ||symlink-to-sysroot
> |-
> ||0 ||textrel
> |-
> ||0 ||unknown-configure-option
> |-
> ||70 ||version-going-backwards
> |}
>
>
>
> === Incorrect PACKAGE_ARCH or sstate signatures (0) ===
>
> Complete log: 
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.signatures.20181011_065446.log/
>
>
> * ERROR:  OE-core's config sanity checker detected a potential
> misconfiguration.
> * ERROR: no sigdata files were generated for MACHINE qemux86copy
> in /home/jenkins/oe/world/yoe/build/tmpfs/stamps
>
>
> PNBLACKLISTs:
> openembedded-core/:
> meta-*:
> PNBLACKLIST[android-system] = "depends on lxc from
> meta-virtualiazation which isn't included in my world builds"
> PNBLACKLIST[bigbuckbunny-1080p] = "big and doesn't really need to be
> tested so much"
> PNBLACKLIST[bigbuckbunny-480p] = "big and doesn't really need to be
> tested so much"
> PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be
> tested so much"
> PNBLACKLIST[bigbuckbunny-720p] = "big and doesn't really need to be
> tested so much"
> PNBLACKLIST[tearsofsteel-1080p] = "big and doesn't really need to be
> tested so much"
> PNBLACKLIST[build-appliance-image] = "tries to include whole downloads
> directory in /home/builder/poky :/"
>
>
> QA issues by type:
> count: 0 issue: already-stripped
>
>
> count: 0 issue: libdir
>
>
> count: 0 issue: textrel
>
>
> count: 0 issue: build-deps
>
>
> count: 0 issue: file-rdeps
>
>
> count: 70 issue: version-going-backwards
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-cat went backwards which would break package feeds
> from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-chroot went backwards which would break package
> feeds from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-cpio went backwards which would break package feeds
> from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-dd went backwards which would break package feeds
> from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-dmesg went backwards which would break package
> feeds from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-false went backwards which would break package
> feeds from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-fstype went backwards which would break package
> feeds from (0:2.0.4-r0.1 to 0:2.0.4-r0.0) [version-going-backwards]
> klibc-static-utils-2.0.4: Package version for package
> klibc-static-utils-gunzip went 

[oe] [meta-initramfs][PATCH] klibc-static-utils: really fix build for x86 with security flags enabled

2018-10-09 Thread Andrea Adami
There were some shared binaries built together with the static ones and this
was leading to the infamous:

 i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'

Fix this by purging the Kbuild files.

Signed-off-by: Andrea Adami 
---
 ...static-utils-do-not-build-shared-binaries.patch | 213 +
 .../klibc/klibc-static-utils_2.0.4.bb  |   2 +
 2 files changed, 215 insertions(+)
 create mode 100644 
meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch

diff --git 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch
 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch
new file mode 100644
index 000..2f7cd35
--- /dev/null
+++ 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-static-utils-do-not-build-shared-binaries.patch
@@ -0,0 +1,213 @@
+From c034dceae17b7d8d437871afe5eba55a55434222 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Wed, 10 Oct 2018 00:48:31 +0200
+Subject: [PATCH] klibc-static-utils: do not build shared binaries
+
+We were building some shared utilities and this was leading to linker errors
+for x86 with security flags enabled.
+
+Fix
+ i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'
+
+Upstream-Status: Inappropriate [Embedded Specific]
+
+Signed-off-by: Andrea Adami 
+---
+ usr/dash/Kbuild   | 6 +-
+ usr/kinit/Kbuild  | 4 +---
+ usr/kinit/fstype/Kbuild   | 4 +---
+ usr/kinit/ipconfig/Kbuild | 4 +---
+ usr/kinit/nfsmount/Kbuild | 4 +---
+ usr/kinit/resume/Kbuild   | 5 +
+ usr/kinit/run-init/Kbuild | 5 +
+ usr/utils/Kbuild  | 7 ++-
+ 8 files changed, 9 insertions(+), 30 deletions(-)
+
+diff --git a/usr/dash/Kbuild b/usr/dash/Kbuild
+index 1a6920a..b3a4e64 100644
+--- a/usr/dash/Kbuild
 b/usr/dash/Kbuild
+@@ -25,12 +25,8 @@ gen-h-files := builtins.h nodes.h syntax.h token.h
+ 
+ static-y := sh
+ 
+-# The shared binary
+-shared-y:= sh.shared
+-sh.shared-y := $(sh-y)
+-
+ # For cleaning
+-targets := sh sh.g sh.shared sh.shared.g $(gen-o-files)
++targets := sh sh.g $(gen-o-files)
+ 
+ # explicit dependency for all generated files
+ $(addprefix $(obj)/, $(sh-y)): $(addprefix $(obj)/, $(gen-h-files))
+diff --git a/usr/kinit/Kbuild b/usr/kinit/Kbuild
+index f7fdccd..8db06ab 100644
+--- a/usr/kinit/Kbuild
 b/usr/kinit/Kbuild
+@@ -18,8 +18,6 @@ kinit-y  += fstype/
+ kinit-y  += resume/
+ 
+ static-y := kinit
+-shared-y := kinit.shared
+-kinit.shared-y := $(kinit-y)
+ 
+ # Additional include paths files
+ KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
+@@ -29,7 +27,7 @@ KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
+  -I$(srctree)/$(src)/run-init
+ 
+ # Cleaning
+-targets += kinit kinit.g kinit.shared kinit.shared.g
++targets += kinit kinit.g
+ subdir- := fstype ipconfig nfsmount resume run-init
+ 
+ 
+diff --git a/usr/kinit/fstype/Kbuild b/usr/kinit/fstype/Kbuild
+index 367611d..8d453ea 100644
+--- a/usr/kinit/fstype/Kbuild
 b/usr/kinit/fstype/Kbuild
+@@ -3,7 +3,6 @@
+ #
+ 
+ static-y := static/fstype
+-shared-y := shared/fstype
+ 
+ # common .o files
+ objs := main.o fstype.o
+@@ -16,8 +15,7 @@ lib-y := $(objs)
+ 
+ # .o files used to built executables
+ static/fstype-y := $(objs)
+-shared/fstype-y := $(objs)
+ 
+ # Cleaning
+-clean-dirs := static shared
++clean-dirs := static
+ 
+diff --git a/usr/kinit/ipconfig/Kbuild b/usr/kinit/ipconfig/Kbuild
+index eb1d472..ef87e7e 100644
+--- a/usr/kinit/ipconfig/Kbuild
 b/usr/kinit/ipconfig/Kbuild
+@@ -3,7 +3,6 @@
+ #
+ 
+ static-y := static/ipconfig
+-shared-y := shared/ipconfig
+ 
+ # common .o files
+ objs := main.o netdev.o packet.o
+@@ -22,8 +21,7 @@ lib-y := $(objs)
+ 
+ # .o files used to built executables
+ static/ipconfig-y := $(objs)
+-shared/ipconfig-y := $(objs)
+ 
+ # Cleaning
+-clean-dirs := static shared
++clean-dirs := static
+ 
+diff --git a/usr/kinit/nfsmount/Kbuild b/usr/kinit/nfsmount/Kbuild
+index ba31708..01bedce 100644
+--- a/usr/kinit/nfsmount/Kbuild
 b/usr/kinit/nfsmount/Kbuild
+@@ -4,7 +4,6 @@
+ 
+ static-y := static/nfsmount
+ #FIXME - build is broken static-y := dummypmap
+-shared-y := shared/nfsmount
+ 
+ objs := main.o mount.o portmap.o dummypmap.o sunrpc.o
+ 
+@@ -13,7 +12,6 @@ lib-y := $(objs)
+ 
+ # .o files used for executables
+ static/nfsmount-y := $(objs)
+-shared/nfsmount-y := $(objs)
+ 
+ # dummypmap uses a single .o file (rename src file?)
+ dummypmap-y := dummypmap_test.o
+@@ -21,5 +19,5 @@ dummypmap-y := dummypmap_test.o
+ # TODO - do we want a stripped version
+ # TODO - do we want the static.g + shared.g directories?
+ 
+-clean-dirs := static shared
++clean-dirs := static
+ 
+diff --git a/usr/kinit/resume/Kbuild b/usr/kinit/resume/Kbuild
+index c1342e1..15b9590 100644
+--- a/usr/kinit/resume/Kbuild
 b/usr/kinit/resume/Kbuild
+@@ -3,7 +3,6 @@
+ #
+ 
+ static-y := static/resume
+-shared-y

[oe] [meta-initramfs][PATCH] klibc.inc: lazy assign GCCPIE in case security_flags.inc was not included

2018-09-25 Thread Andrea Adami
fix build error (GCCPIE is unset):

EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack
EXTRA_KLIBCLDFLAGS=${@-z relro -z now -pie if  else } -z noexecstack
| make: invalid option -- 'z'
| make: invalid option -- ' '

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 6342be0..be01c2f 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -75,6 +75,7 @@ KLIBC_ARCH_powerpc = "ppc"
 KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 
+GCCPIE ?= ""
 SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
 SECURITY_LDFLAGS_mips = ""
 SECURITY_LDFLAGS_mips64 = ""
-- 
2.7.4

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


Re: [oe] State of the world, 2018-09-15

2018-09-17 Thread Andrea Adami
On Tue, Sep 18, 2018 at 12:39 AM Khem Raj  wrote:
>
>
>
> On Mon, Sep 17, 2018 at 3:20 PM Andrea Adami  wrote:
>>
>> On Mon, Sep 17, 2018 at 11:45 PM Khem Raj  wrote:
>> >
>> >
>> >
>> > On Mon, Sep 17, 2018 at 8:38 AM Andrea Adami  
>> > wrote:
>> >>
>> >> On Sun, Sep 16, 2018 at 6:09 PM Khem Raj  wrote:
>> >> >
>> >> > http://www.openembedded.org/wiki/Bitbake_World_Status
>> >> >
>> >> > == Failed tasks 2018-09-15 ==
>> >> >
>> >> > INFO: jenkins-job.sh-1.8.45 Complete log available at
>> >> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.report.20180916_060104.log
>> >> >
>> >> > === common (0) ===
>> >> >
>> >> > === common-x86 (3) ===
>> >> > * 
>> >> > sources/meta-qt5/recipes-connectivity/libqofono/libqofono_git.bb:do_package
>> >> > * 
>> >> > sources/meta-qt5/recipes-python/pyqt5/python-pyqt5_5.10.1.bb:do_configure
>> >> > * 
>> >> > sources/meta-qt5/recipes-qt/qt5/qtwebkit-examples_git.bb:do_compile
>> >> >
>> >> > === qemuarm (6) ===
>> >> > * 
>> >> > sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb:do_package_qa
>> >> > * 
>> >> > sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb:do_package_qa
>> >> > * 
>> >> > sources/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile
>> >> > * 
>> >> > sources/meta-openembedded/meta-oe/recipes-extended/redis/redis_4.0.8.bb:do_compile
>> >> > * 
>> >> > sources/meta-openembedded/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb:do_package_qa
>> >> > * sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
>> >> >
>> >> > === qemuarm64 (2) ===
>> >> > * 
>> >> > sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_71.0.3545.0.r589108.igalia.1.bb:do_compile
>> >> > * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_install
>> >> >
>> >> > === qemux86 (8) ===
>> >> > * 
>> >> > sources/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb:do_compile
>> >> > * 
>> >> > sources/meta-openembedded/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb:do_compile
>> >> > * 
>> >> > sources/meta-openembedded/meta-oe/recipes-dbs/mongodb/mongodb_git.bb:do_compile
>> >> > * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_compile
>> >> > * sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile
>> >> > * 
>> >> > sources/openembedded-core/meta/recipes-graphics/mesa/mesa_18.1.7.bb:do_package_qa
>> >> > * 
>> >> > sources/openembedded-core/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb:do_compile
>> >> > * 
>> >> > sources/openembedded-core/meta/recipes-multimedia/x264/x264_git.bb:do_package_qa
>> >> >
>> >> > === qemux86_64 (1) ===
>> >> > * 
>> >> > sources/meta-browser/recipes-browser/firefox/firefox_52.9.0esr.bb:do_configure
>> >> >
>> >> > === Number of failed tasks (32) ===
>> >> > {| class=wikitable
>> >> > |-
>> >> > || qemuarm || 6 ||
>> >> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm.20180915_081551.log/
>> >> > ||
>> >> > |-
>> >> > || qemuarm64 || 7 ||
>> >> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm64.20180915_125453.log/
>> >> > ||
>> >> > |-
>> >> > || qemux86 || 14 ||
>> >> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86.20180915_081220.log/
>> >> > ||
>> >> > |-
>> >> > || qemux86_64 || 5 ||
>> >> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86-64.20180915_155207.log/
>> >> > ||
>> >> > |}
>> >> >
>> >> > === PNBLACKLISTs (0) ===
>> >> >
>> >> > === QA issues (150) ===
>> >> > {| class=wikitable
&

[oe] [meta-initramfs][PATCH] klibc-static-utils: fix textrel, disable security flags for the static utils

2018-09-17 Thread Andrea Adami
Fix
WARNING: klibc-static-utils-2.0.4-r0 do_package_qa:
 QA Issue: ELF binary 'X' has relocations in .text [textrel]

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb | 4 
 1 file changed, 4 insertions(+)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb 
b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb
index c835fd6..35e17b2 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb
@@ -10,3 +10,7 @@ KLIBC_UTILS_PKGNAME = "klibc-static-utils"
 
 require klibc-utils.inc
 require klibc.inc
+
+# avoid textrel if linking with -pie
+SECURITY_CFLAGS = ""
+SECURITY_LDFLAGS = ""
-- 
2.7.4

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


Re: [oe] State of the world, 2018-09-15

2018-09-17 Thread Andrea Adami
On Mon, Sep 17, 2018 at 11:45 PM Khem Raj  wrote:
>
>
>
> On Mon, Sep 17, 2018 at 8:38 AM Andrea Adami  wrote:
>>
>> On Sun, Sep 16, 2018 at 6:09 PM Khem Raj  wrote:
>> >
>> > http://www.openembedded.org/wiki/Bitbake_World_Status
>> >
>> > == Failed tasks 2018-09-15 ==
>> >
>> > INFO: jenkins-job.sh-1.8.45 Complete log available at
>> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.report.20180916_060104.log
>> >
>> > === common (0) ===
>> >
>> > === common-x86 (3) ===
>> > * 
>> > sources/meta-qt5/recipes-connectivity/libqofono/libqofono_git.bb:do_package
>> > * 
>> > sources/meta-qt5/recipes-python/pyqt5/python-pyqt5_5.10.1.bb:do_configure
>> > * sources/meta-qt5/recipes-qt/qt5/qtwebkit-examples_git.bb:do_compile
>> >
>> > === qemuarm (6) ===
>> > * 
>> > sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb:do_package_qa
>> > * 
>> > sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb:do_package_qa
>> > * 
>> > sources/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile
>> > * 
>> > sources/meta-openembedded/meta-oe/recipes-extended/redis/redis_4.0.8.bb:do_compile
>> > * 
>> > sources/meta-openembedded/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb:do_package_qa
>> > * sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
>> >
>> > === qemuarm64 (2) ===
>> > * 
>> > sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_71.0.3545.0.r589108.igalia.1.bb:do_compile
>> > * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_install
>> >
>> > === qemux86 (8) ===
>> > * 
>> > sources/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb:do_compile
>> > * 
>> > sources/meta-openembedded/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb:do_compile
>> > * 
>> > sources/meta-openembedded/meta-oe/recipes-dbs/mongodb/mongodb_git.bb:do_compile
>> > * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_compile
>> > * sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile
>> > * 
>> > sources/openembedded-core/meta/recipes-graphics/mesa/mesa_18.1.7.bb:do_package_qa
>> > * 
>> > sources/openembedded-core/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb:do_compile
>> > * 
>> > sources/openembedded-core/meta/recipes-multimedia/x264/x264_git.bb:do_package_qa
>> >
>> > === qemux86_64 (1) ===
>> > * 
>> > sources/meta-browser/recipes-browser/firefox/firefox_52.9.0esr.bb:do_configure
>> >
>> > === Number of failed tasks (32) ===
>> > {| class=wikitable
>> > |-
>> > || qemuarm || 6 ||
>> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm.20180915_081551.log/
>> > ||
>> > |-
>> > || qemuarm64 || 7 ||
>> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm64.20180915_125453.log/
>> > ||
>> > |-
>> > || qemux86 || 14 ||
>> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86.20180915_081220.log/
>> > ||
>> > |-
>> > || qemux86_64 || 5 ||
>> > http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86-64.20180915_155207.log/
>> > ||
>> > |}
>> >
>> > === PNBLACKLISTs (0) ===
>> >
>> > === QA issues (150) ===
>> > {| class=wikitable
>> > !| Count ||Issue
>> > |-
>> > ||0 ||already-stripped
>> > |-
>> > ||0 ||build-deps
>> > |-
>> > ||0 ||compile-host-path
>> > |-
>> > ||0 ||file-rdeps
>> > |-
>> > ||0 ||host-user-contaminated
>> > |-
>> > ||0 ||invalid-pkgconfig
>> > |-
>> > ||0 ||ldflags
>> > |-
>> > ||0 ||libdir
>> > |-
>> > ||0 ||pkgname
>> > |-
>> > ||0 ||qa_pseudo
>> > |-
>> > ||0 ||symlink-to-sysroot
>> > |-
>> > ||0 ||unknown-configure-option
>> > |-
>> > ||117 ||textrel
>> > |-
>> > ||1 ||installed-vs-shipped
>> > |-
>> > ||32 ||version-going-backwards
>> > |}
>> >
>> >
>> >
>> > === Incorrect PACKAGE_ARCH or sstate signatures (12) ===
>

Re: [oe] State of the world, 2018-09-15

2018-09-17 Thread Andrea Adami
On Sun, Sep 16, 2018 at 6:09 PM Khem Raj  wrote:
>
> http://www.openembedded.org/wiki/Bitbake_World_Status
>
> == Failed tasks 2018-09-15 ==
>
> INFO: jenkins-job.sh-1.8.45 Complete log available at
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.report.20180916_060104.log
>
> === common (0) ===
>
> === common-x86 (3) ===
> * 
> sources/meta-qt5/recipes-connectivity/libqofono/libqofono_git.bb:do_package
> * 
> sources/meta-qt5/recipes-python/pyqt5/python-pyqt5_5.10.1.bb:do_configure
> * sources/meta-qt5/recipes-qt/qt5/qtwebkit-examples_git.bb:do_compile
>
> === qemuarm (6) ===
> * 
> sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.4.bb:do_package_qa
> * 
> sources/meta-openembedded/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.4.bb:do_package_qa
> * 
> sources/meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile
> * 
> sources/meta-openembedded/meta-oe/recipes-extended/redis/redis_4.0.8.bb:do_compile
> * 
> sources/meta-openembedded/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb:do_package_qa
> * sources/meta-qt5/recipes-qt/qt5/qtbase_git.bb:do_compile
>
> === qemuarm64 (2) ===
> * 
> sources/meta-browser/recipes-browser/chromium/chromium-ozone-wayland_71.0.3545.0.r589108.igalia.1.bb:do_compile
> * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_install
>
> === qemux86 (8) ===
> * 
> sources/meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb:do_compile
> * 
> sources/meta-openembedded/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb:do_compile
> * 
> sources/meta-openembedded/meta-oe/recipes-dbs/mongodb/mongodb_git.bb:do_compile
> * sources/meta-qt5/recipes-qt/qt5/qt5-creator_4.5.1.bb:do_compile
> * sources/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb:do_compile
> * 
> sources/openembedded-core/meta/recipes-graphics/mesa/mesa_18.1.7.bb:do_package_qa
> * 
> sources/openembedded-core/meta/recipes-multimedia/ffmpeg/ffmpeg_4.0.2.bb:do_compile
> * 
> sources/openembedded-core/meta/recipes-multimedia/x264/x264_git.bb:do_package_qa
>
> === qemux86_64 (1) ===
> * 
> sources/meta-browser/recipes-browser/firefox/firefox_52.9.0esr.bb:do_configure
>
> === Number of failed tasks (32) ===
> {| class=wikitable
> |-
> || qemuarm || 6 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm.20180915_081551.log/
> ||
> |-
> || qemuarm64 || 7 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemuarm64.20180915_125453.log/
> ||
> |-
> || qemux86 || 14 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86.20180915_081220.log/
> ||
> |-
> || qemux86_64 || 5 ||
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.world.qemux86-64.20180915_155207.log/
> ||
> |}
>
> === PNBLACKLISTs (0) ===
>
> === QA issues (150) ===
> {| class=wikitable
> !| Count ||Issue
> |-
> ||0 ||already-stripped
> |-
> ||0 ||build-deps
> |-
> ||0 ||compile-host-path
> |-
> ||0 ||file-rdeps
> |-
> ||0 ||host-user-contaminated
> |-
> ||0 ||invalid-pkgconfig
> |-
> ||0 ||ldflags
> |-
> ||0 ||libdir
> |-
> ||0 ||pkgname
> |-
> ||0 ||qa_pseudo
> |-
> ||0 ||symlink-to-sysroot
> |-
> ||0 ||unknown-configure-option
> |-
> ||117 ||textrel
> |-
> ||1 ||installed-vs-shipped
> |-
> ||32 ||version-going-backwards
> |}
>
>
>
> === Incorrect PACKAGE_ARCH or sstate signatures (12) ===
>
> Complete log: 
> http://logs.nslu2-linux.org/buildlogs/oe/world/thud/log.signatures.20180915_194247.log/
> * ERROR: 12 issues were found in these recipes: 96boards-tools
> oprofile packagegroup-core-standalone-sdk-target
> packagegroup-core-tools-debug packagegroup-self-hosted
> phoronix-test-suite phpmyadmin umip
>
> * ERROR: 2 errors found in signatures.qemux86.do_configure.sigdata.log
> * ERROR: 2 errors found in
> signatures.qemux86.do_populate_sysroot.sigdata.log
> * ERROR: 2 errors found in
> signatures.qemux86.do_package_write_ipk.sigdata.log
> * ERROR: 6 errors found in
> signatures.qemuarm.do_package_write_ipk.sigdata.log
>
> * ERROR: oprofile different signature for task
> do_configure.sigdata between qemux86copy and qemux86
> * ERROR: umip different signature for task do_configure.sigdata
> between qemux86copy and qemux86
> * ERROR: 2 errors found in
> /home/jenkins/oe/world/oe-build/build/tmpfs/sstate-diff/1537076567/signatures.qemux86.do_configure.sigdata.log
> * ERROR: oprofile different signature for task
> do_populate_sysroot.sigdata between qemux86copy and qemux86
> * ERROR: umip different signature for task
> do_populate_sysroot.sigdata between qemux86copy and qemux86
> * ERROR: 2 errors found in
> /home/jenkins/oe/world/oe-build/build/tmpfs/sstate-diff/1537076567/signatures.qemux86.do_populate_sysroot.sigdata.log
> * ERROR: oprofile different signature for task
> do_package_write_ipk.sigdata between qemux86copy and qemux86
> * 

Re: [oe] [meta-initramfs][PATCH v2] klibc: fix build on i386 with GCC and security flags enabled

2018-09-17 Thread Andrea Adami
On Sat, Sep 15, 2018 at 1:30 PM Hongxu Jia  wrote:
>
> On 2018年09月15日 18:58, Andrea Adami wrote:
> > On Sat, Sep 15, 2018 at 10:15 AM Hongxu Jia  
> > wrote:
> >> On 2018年09月15日 02:02, Andrea Adami wrote:
> >>> ld fails if distro's security-flags are enabled:
> >>> Inject the SECURITY_XFLAGS if security_flags.inc was included.
> >>>
> >>> Fix on i386: ld: discarded output section: `.got.plt'
> >>>
> >>> Signed-off-by: Andrea Adami 
> >>> ---
> >>>meta-initramfs/recipes-devtools/klibc/klibc.inc | 6 +++---
> >>>1 file changed, 3 insertions(+), 3 deletions(-)
> >>>
> >>> diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
> >>> b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> >>> index 3d25e96..837b026 100644
> >>> --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
> >>> +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> >>> @@ -47,7 +47,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
> >>>'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
> >>> V=1 \
> >>>"
> >>> -EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" 
> >>> EXTRA_KLIBCLDFLAGS="-z noexecstack"'
> >>> +EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} 
> >>> -Wa,--noexecstack' \
> >>> + 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS} -z noexecstack'"
> >>>
> >> Is it necessary to pass SECURITY_XFLAGS directly? While including
> >> security_flags.inc,
> >> CC will contain SECURITY_CFLAGS and LDFLAGS will contain SECURITY_LDFLAGS.
> >> Maybe you should make sure  to pass LDFLAGS to EXTRA_KLIBCLDFLAGS to avoid
> >> ldflags qa warning.
> >>
> >> [security_flags.inc]
> >>58 TARGET_CC_ARCH_append_class-target = " ${SECURITY_CFLAGS}"
> >>59 TARGET_LDFLAGS_append_class-target = " ${SECURITY_LDFLAGS}"
> >> [security_flags.inc]
> >>
> >>>export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
> >>>KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 
> >>> 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
> >>> @@ -74,5 +75,4 @@ KLIBC_ARCH_powerpc = "ppc"
> >>>KLIBC_ARCH_powerpc64 = "ppc64"
> >>>THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
> >>>
> >>> -SECURITY_CFLAGS = "-fno-PIE -no-pie"
> >>> -SECURITY_LDFLAGS = "-no-pie"
> >>> +SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
> >> The same reason, it is not necessary to test GCCPIE,
> >>
> >> and it missed "-Wl,"?, how about directly set SECURITY_STACK_PROTECTOR = ""
> >>
> > Hi,
> > thanks for reviewing.
> >
> > It is true the SECURITY_CFLAGS are passed to the compiler.
> > The problem is, klibc has its own arch makefiles (MCONFIG) and the
> > linker is called directly, so if you just append the LDFLAGS like
> > this:
> >
> > EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=-Wa,--noexecstack' \
> >   'EXTRA_KLIBCLDFLAGS=${LDFLAGS} -z noexecstack'"
> >
> > you get:
> >
> >i586-oe-linux-musl-ld.bfd -m elf_i386 -o 
> > usr/kinit/ipconfig/static/ipconfig -W
> > l,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -z relro -z now -pie -z 
> > noexecstack u
> > sr/klibc/arch/i386/crt0.o --start-group  usr/kinit/ipconfig/main.o 
> > usr/kinit/ipc
> > onfig/netdev.o usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o 
> > usr/k
> > init/ipconfig/bootp_proto.o  usr/klibc/libc.a 
> > /tmp/build/tmp-musl/work/i586-oe-l
> > inux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a
> >  --
> > end-group ; cp -f usr/kinit/ipconfig/static/ipconfig 
> > usr/kinit/ipconfig/static/i
> > pconfig.g ; i586-oe-linux-musl-strip --strip-all -R .comment -R .note 
> > --strip-al
> > l -R .comment -R .note --strip-all -R .comment -R .note 
> > usr/kinit/ipconfig/stati
> > c/ipconfig
> > i586-oe-linux-musl-ld.bfd: unrecognized option '-Wl,-O1'
> >
> > Thus I am expliciting the SECURITY_LDFLAGS.
> >
> > Note that this patch, injecting the -pie, does now break build for mips,
> > because the MCONFIG foir mips disables pic.
> > The immediate fix is to remove -pie for mips (standard behavior).
>
> OK, thanks for the explain
>
> //Hongxu

Hi,

with a following patch more archs were fixed when building with security flags.
I ended up appending both SECURITY_CFLAGS and SECURITY_LDFLAGS and I
only have to special-case the mips/mips64 which at the time of klibc
(10yrs ago) if you read the kernel was expecting pic code in userspace
but here in klibc I see pic disabled in the makefiles...
Maybe Khem can test runtime...my only mips is a DTB decoder (well,
with a bit of motivation I could do that, it's OpenPli).

Cheers
Andrea


>
> > Cheers
> > Andrea
> >
> >
> >> //Hongxu
> >>
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-initramfs][PATCH] klibc: fix build with GCC and -pie for mips, mips64, aarch64

2018-09-15 Thread Andrea Adami
The MCONFIG makefiles for mips/mips64 do disable pic so we do not insist
linking it with -pie.

For aarch64 we have to readd the -Os optimization to avoid

 | usr/dash/shell.h:103:25: error:
 '-mgeneral-regs-only' is incompatible with floating-point argument

as committed (c296fb707ae3 klibc: Pass Optimization with KLIBCOPTFLAGS)
but reverted (76bc58e9329 klibc: Fix build with security flags) trying to
fix the i386 build (see ld.bfd: discarded output section: `.got.plt').
This latter issue was fixed for i386 passing -pie to the linker.

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 837b026..6342be0 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -44,7 +44,7 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
 'INSTALLDIR=${libdir}/klibc' \
 'SHLIBDIR=${libdir}' \
 '${KLIBCTHUMB}' \
-'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
+'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \
  V=1 \
 "
 EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
@@ -76,3 +76,5 @@ KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 
 SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
+SECURITY_LDFLAGS_mips = ""
+SECURITY_LDFLAGS_mips64 = ""
-- 
2.7.4

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


Re: [oe] [meta-initramfs][PATCH v2] klibc: fix build on i386 with GCC and security flags enabled

2018-09-15 Thread Andrea Adami
On Sat, Sep 15, 2018 at 10:15 AM Hongxu Jia  wrote:
>
> On 2018年09月15日 02:02, Andrea Adami wrote:
> > ld fails if distro's security-flags are enabled:
> > Inject the SECURITY_XFLAGS if security_flags.inc was included.
> >
> > Fix on i386: ld: discarded output section: `.got.plt'
> >
> > Signed-off-by: Andrea Adami 
> > ---
> >   meta-initramfs/recipes-devtools/klibc/klibc.inc | 6 +++---
> >   1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
> > b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> > index 3d25e96..837b026 100644
> > --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
> > +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> > @@ -47,7 +47,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
> >   'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
> >V=1 \
> >   "
> > -EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" 
> > EXTRA_KLIBCLDFLAGS="-z noexecstack"'
> > +EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
> > + 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS} -z noexecstack'"
> >
> Is it necessary to pass SECURITY_XFLAGS directly? While including
> security_flags.inc,
> CC will contain SECURITY_CFLAGS and LDFLAGS will contain SECURITY_LDFLAGS.
> Maybe you should make sure  to pass LDFLAGS to EXTRA_KLIBCLDFLAGS to avoid
> ldflags qa warning.
>
> [security_flags.inc]
>   58 TARGET_CC_ARCH_append_class-target = " ${SECURITY_CFLAGS}"
>   59 TARGET_LDFLAGS_append_class-target = " ${SECURITY_LDFLAGS}"
> [security_flags.inc]
>
> >   export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
> >   KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 
> > 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
> > @@ -74,5 +75,4 @@ KLIBC_ARCH_powerpc = "ppc"
> >   KLIBC_ARCH_powerpc64 = "ppc64"
> >   THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
> >
> > -SECURITY_CFLAGS = "-fno-PIE -no-pie"
> > -SECURITY_LDFLAGS = "-no-pie"
> > +SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
>
> The same reason, it is not necessary to test GCCPIE,
>
> and it missed "-Wl,"?, how about directly set SECURITY_STACK_PROTECTOR = ""
>
Hi,
thanks for reviewing.

It is true the SECURITY_CFLAGS are passed to the compiler.
The problem is, klibc has its own arch makefiles (MCONFIG) and the
linker is called directly, so if you just append the LDFLAGS like
this:

EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=-Wa,--noexecstack' \
 'EXTRA_KLIBCLDFLAGS=${LDFLAGS} -z noexecstack'"

you get:

  i586-oe-linux-musl-ld.bfd -m elf_i386 -o usr/kinit/ipconfig/static/ipconfig -W
l,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -z relro -z now -pie -z noexecstack u
sr/klibc/arch/i386/crt0.o --start-group  usr/kinit/ipconfig/main.o usr/kinit/ipc
onfig/netdev.o usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o usr/k
init/ipconfig/bootp_proto.o  usr/klibc/libc.a /tmp/build/tmp-musl/work/i586-oe-l
inux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a --
end-group ; cp -f usr/kinit/ipconfig/static/ipconfig usr/kinit/ipconfig/static/i
pconfig.g ; i586-oe-linux-musl-strip --strip-all -R .comment -R .note --strip-al
l -R .comment -R .note --strip-all -R .comment -R .note usr/kinit/ipconfig/stati
c/ipconfig
i586-oe-linux-musl-ld.bfd: unrecognized option '-Wl,-O1'

Thus I am expliciting the SECURITY_LDFLAGS.

Note that this patch, injecting the -pie, does now break build for mips,
because the MCONFIG foir mips disables pic.
The immediate fix is to remove -pie for mips (standard behavior).

Cheers
Andrea


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


[oe] [meta-initramfs][PATCH v2] klibc: fix build on i386 with GCC and security flags enabled

2018-09-14 Thread Andrea Adami
ld fails if distro's security-flags are enabled:
Inject the SECURITY_XFLAGS if security_flags.inc was included.

Fix on i386: ld: discarded output section: `.got.plt'

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 3d25e96..837b026 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -47,7 +47,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
  V=1 \
 "
-EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" EXTRA_KLIBCLDFLAGS="-z 
noexecstack"'
+EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
+ 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS} -z noexecstack'"
 
 export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
 KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 
'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
@@ -74,5 +75,4 @@ KLIBC_ARCH_powerpc = "ppc"
 KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 
-SECURITY_CFLAGS = "-fno-PIE -no-pie"
-SECURITY_LDFLAGS = "-no-pie"
+SECURITY_LDFLAGS = "${@'-z relro -z now -pie' if '${GCCPIE}' else ''}"
-- 
2.7.4

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


Re: [oe] [meta-initramfs][PATCH] klibc: fix build on i386 with GCC and security flags enabled

2018-09-14 Thread Andrea Adami
please hold on, v2 is coming.

I think -z relro and -z now (data relocation) should be only added if
the distro is using security flags.
BTW I do this check looking at GCCPIE variable, normally evaluated if
security flags are switched on.

Note: all this because the standard SECURITY_LDFLAGS cannot be used:
these start with -Wl but we are talking with the linker directly.

Cheers
Andrea
On Fri, Sep 14, 2018 at 6:46 PM Andrea Adami  wrote:
>
> Disable pie for powerpc as in security_flags.inc.
> Fix on i386: ld: discarded output section: `.got.plt'
>
> Signed-off-by: Andrea Adami 
> ---
>  meta-initramfs/recipes-devtools/klibc/klibc.inc | 10 +++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
> b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> index 3d25e96..b3d1568 100644
> --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
> +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> @@ -47,7 +47,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
>  'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
>   V=1 \
>  "
> -EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" 
> EXTRA_KLIBCLDFLAGS="-z noexecstack"'
> +EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
> + 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS}'"
>
>  export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
>  KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 
> 'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
> @@ -74,5 +75,8 @@ KLIBC_ARCH_powerpc = "ppc"
>  KLIBC_ARCH_powerpc64 = "ppc64"
>  THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
>
> -SECURITY_CFLAGS = "-fno-PIE -no-pie"
> -SECURITY_LDFLAGS = "-no-pie"
> +SECURITY_LDFLAGS = "${@ '-z relro -z now -z noexecstack -pie' if '${GCCPIE}' 
> \
> +   else '-z relro -z now -z noexecstack' }"
> +
> +# SECURITY_CFLAGS for powerpc are disabled in security_flags.inc
> +SECURITY_LDFLAGS_powerpc = "-z relro -z now -z noexecstack"
> --
> 2.7.4
>
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-initramfs][PATCH] klibc: fix build on i386 with GCC and security flags enabled

2018-09-14 Thread Andrea Adami
Disable pie for powerpc as in security_flags.inc.
Fix on i386: ld: discarded output section: `.got.plt'

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-devtools/klibc/klibc.inc | 10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 3d25e96..b3d1568 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -47,7 +47,8 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
  V=1 \
 "
-EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack" EXTRA_KLIBCLDFLAGS="-z 
noexecstack"'
+EXTRA_OEMAKE += "'EXTRA_KLIBCAFLAGS=${SECURITY_CFLAGS} -Wa,--noexecstack' \
+ 'EXTRA_KLIBCLDFLAGS=${SECURITY_LDFLAGS}'"
 
 export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
 KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n', 
'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') == 'thumb')]}"
@@ -74,5 +75,8 @@ KLIBC_ARCH_powerpc = "ppc"
 KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
 
-SECURITY_CFLAGS = "-fno-PIE -no-pie"
-SECURITY_LDFLAGS = "-no-pie"
+SECURITY_LDFLAGS = "${@ '-z relro -z now -z noexecstack -pie' if '${GCCPIE}' \
+   else '-z relro -z now -z noexecstack' }"
+
+# SECURITY_CFLAGS for powerpc are disabled in security_flags.inc
+SECURITY_LDFLAGS_powerpc = "-z relro -z now -z noexecstack"
-- 
2.7.4

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


Re: [oe] [meta-initramfs][PATCH 2/2] klibc: Fix build with security flags

2018-09-13 Thread Andrea Adami
Khem,

with this fix it builds (I removed the two bottom lines)
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 3d25e96..57f32ac 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -47,7 +47,7 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
 'KLIBCOPTFLAGS=${TUNE_CCARGS}' \
  V=1 \
 "
-EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack"
EXTRA_KLIBCLDFLAGS="-z noexecstack"'
+EXTRA_OEMAKE += 'EXTRA_KLIBCAFLAGS="-Wa,--noexecstack"
EXTRA_KLIBCLDFLAGS="-pie it -z noexecstack"'

 export FIX_ARMV4_EABI_BX = "${FIX_V4BX}"
 KLIBCTHUMB = "${@['CONFIG_KLIBC_THUMB=n',
'CONFIG_KLIBC_THUMB=y'][(d.getVar('ARM_INSTRUCTION_SET') ==
'thumb')]}"
@@ -73,6 +73,3 @@ KLIBC_ARCH_x86-64 = "x86_64"
 KLIBC_ARCH_powerpc = "ppc"
 KLIBC_ARCH_powerpc64 = "ppc64"
 THIS_LIBKLIBC = "libklibc (= ${PV}-${PR})"
-
-SECURITY_CFLAGS = "-fno-PIE -no-pie"
-SECURITY_LDFLAGS = "-no-pie"
On Thu, Sep 13, 2018 at 6:58 PM Andrea Adami  wrote:
>
> Khem,
>
> build with gcc still fails:
>
> # i586-oe-linux-musl-ld.bfd -m elf_i386 -o usr/kinit/ipconfig/shared/ipc
> onfig -z noexecstack -e main usr/klibc/interp.o --start-group
> usr/kinit/ipconfig/main.o usr/kinit/ipconfig/netdev.o
> usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o
> usr/kinit/ipconfig/bootp_proto.o  -R usr/klibc/libc.so
> /tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a
> --end-group
> i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'
>
> However, adding  -pie to ld invocation seems solving the problem.
>
> root@andrea-ThinkPad-T520:/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/git#
> i586-oe-linux-musl-ld.bfd -m elf_i386 -o usr/kinit/ipconfig/shared/ipc
> onfig -z noexecstack -e main usr/klibc/interp.o --start-group
> usr/kinit/ipconfig/main.o usr/kinit/ipconfig/netdev.o
> usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o
> usr/kinit/ipconfig/bootp_proto.o  -R usr/klibc/libc.so
> /tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a
> --end-group -pie
> root@andrea-ThinkPad-T520:/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/git#
>
>
> Cheers
> Andrea
>
>
> On Wed, Sep 12, 2018 at 2:19 AM Khem Raj  wrote:
> >
> > Drop -Os which is also causing the relro
> > Fixes
> > | x86_64-bec-linux-musl-ld.bfd: discarded output section: `.got.plt'
> >
> > Signed-off-by: Khem Raj 
> > Cc: Andrea Adami 
> > ---
> >  ...libc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch | 28 +++
> >  .../recipes-devtools/klibc/klibc.inc  |  9 +++---
> >  2 files changed, 33 insertions(+), 4 deletions(-)
> >  create mode 100644 
> > meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> >
> > diff --git 
> > a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> >  
> > b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> > new file mode 100644
> > index 00..94818e3669
> > --- /dev/null
> > +++ 
> > b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> > @@ -0,0 +1,28 @@
> > +From cdc6edc2cfcd0ce88d6e66654d605dad303b1a75 Mon Sep 17 00:00:00 2001
> > +From: Khem Raj 
> > +Date: Tue, 11 Sep 2018 17:03:36 -0700
> > +Subject: [PATCH] klibc/Kbuild: Accept EXTRA_KLIBCAFLAGS
> > +
> > +For passing additional assembler flags
> > +
> > +Upstream-Status: Pending
> > +
> > +Signed-off-by: Khem Raj 
> > +---
> > + usr/klibc/Kbuild | 3 ++-
> > + 1 file changed, 2 insertions(+), 1 deletion(-)
> > +
> > +diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
> > +index 98caf2e9..b34521e0 100644
> > +--- a/usr/klibc/Kbuild
> >  b/usr/klibc/Kbuild
> > +@@ -168,7 +168,8 @@ $(SOHASH): $(SOLIB) $(SOLIB).hash
> > + targets += interp.o
> > +
> > + quiet_cmd_interp = BUILD   $@
> > +-  cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \
> > ++  cmd_interp = $(KLIBCCC) $(klibccflags) $(EXTRA_KLIBCAFLAGS) \
> > ++ -D__ASSEMBLY__ \
> > +  -DLIBDIR=\"$(SHLIBDIR)\" \
> > +-DSOHASH=\"$(SOLIBHASH)\" \
> > + 

Re: [oe] [meta-initramfs][PATCH 2/2] klibc: Fix build with security flags

2018-09-13 Thread Andrea Adami
Khem,

build with gcc still fails:

# i586-oe-linux-musl-ld.bfd -m elf_i386 -o usr/kinit/ipconfig/shared/ipc
onfig -z noexecstack -e main usr/klibc/interp.o --start-group
usr/kinit/ipconfig/main.o usr/kinit/ipconfig/netdev.o
usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o
usr/kinit/ipconfig/bootp_proto.o  -R usr/klibc/libc.so
/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a
--end-group
i586-oe-linux-musl-ld.bfd: discarded output section: `.got.plt'

However, adding  -pie to ld invocation seems solving the problem.

root@andrea-ThinkPad-T520:/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/git#
i586-oe-linux-musl-ld.bfd -m elf_i386 -o usr/kinit/ipconfig/shared/ipc
onfig -z noexecstack -e main usr/klibc/interp.o --start-group
usr/kinit/ipconfig/main.o usr/kinit/ipconfig/netdev.o
usr/kinit/ipconfig/packet.o usr/kinit/ipconfig/dhcp_proto.o
usr/kinit/ipconfig/bootp_proto.o  -R usr/klibc/libc.so
/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/recipe-sysroot/usr/lib/i586-oe-linux-musl/*/libgcc.a
--end-group -pie
root@andrea-ThinkPad-T520:/tmp/build/tmp-musl/work/i586-oe-linux-musl/klibc/2.0.4-r0/git#


Cheers
Andrea


On Wed, Sep 12, 2018 at 2:19 AM Khem Raj  wrote:
>
> Drop -Os which is also causing the relro
> Fixes
> | x86_64-bec-linux-musl-ld.bfd: discarded output section: `.got.plt'
>
> Signed-off-by: Khem Raj 
> Cc: Andrea Adami 
> ---
>  ...libc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch | 28 +++
>  .../recipes-devtools/klibc/klibc.inc  |  9 +++---
>  2 files changed, 33 insertions(+), 4 deletions(-)
>  create mode 100644 
> meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
>
> diff --git 
> a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
>  
> b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> new file mode 100644
> index 00..94818e3669
> --- /dev/null
> +++ 
> b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch
> @@ -0,0 +1,28 @@
> +From cdc6edc2cfcd0ce88d6e66654d605dad303b1a75 Mon Sep 17 00:00:00 2001
> +From: Khem Raj 
> +Date: Tue, 11 Sep 2018 17:03:36 -0700
> +Subject: [PATCH] klibc/Kbuild: Accept EXTRA_KLIBCAFLAGS
> +
> +For passing additional assembler flags
> +
> +Upstream-Status: Pending
> +
> +Signed-off-by: Khem Raj 
> +---
> + usr/klibc/Kbuild | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
> +index 98caf2e9..b34521e0 100644
> +--- a/usr/klibc/Kbuild
>  b/usr/klibc/Kbuild
> +@@ -168,7 +168,8 @@ $(SOHASH): $(SOLIB) $(SOLIB).hash
> + targets += interp.o
> +
> + quiet_cmd_interp = BUILD   $@
> +-  cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \
> ++  cmd_interp = $(KLIBCCC) $(klibccflags) $(EXTRA_KLIBCAFLAGS) \
> ++ -D__ASSEMBLY__ \
> +  -DLIBDIR=\"$(SHLIBDIR)\" \
> +-DSOHASH=\"$(SOLIBHASH)\" \
> +-c -o $@ $<
> diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
> b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> index f0b20bc7fd..3d25e96cd4 100644
> --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
> +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
> @@ -21,9 +21,10 @@ SRC_URI = 
> "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
> 
> file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \
> 
> file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \
> file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \
> -   file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch  \
> +   file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch \
> file://0001-klibc-add-getrandom-syscall.patch \
> -"
> +   file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \
> +   "
>
>  ARMPATCHES ?= ""
>
> @@ -31,7 +32,6 @@ ARMPATCHES_arm = "file://klibc-config-eabi.patch \
>file://armv4-fix-v4bx.patch \
>   "
>
> -
>  S = "${WORKDIR}/git"
>
>  PARALLEL_MAKE = ""
> @@ -44,9 +44,10 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \
>  'INSTALLDIR=${libdir}/klibc' \
>  'SHLIBDIR=${libdir}' \
>  '${KLIBCTHUMB}' \
> -'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \
> +'KLIBCOPTFLAG

[oe] [meta-handheld][PATCH kexecboot-handhelds: catch up with kexecboot upgrades (add --atags)

2018-09-07 Thread Andrea Adami
With the actual kexec-tools-klibc > 2.0.17 in meta-initramfs we can use the
newly added fast reboot option (--no-checks).

Signed-off-by: Andrea Adami 
---
 recipes-bsp/kexecboot/kexecboot-handhelds.inc | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/recipes-bsp/kexecboot/kexecboot-handhelds.inc 
b/recipes-bsp/kexecboot/kexecboot-handhelds.inc
index f7f9a37..06bf96d 100644
--- a/recipes-bsp/kexecboot/kexecboot-handhelds.inc
+++ b/recipes-bsp/kexecboot/kexecboot-handhelds.inc
@@ -1,6 +1,6 @@
-EXTRA_OECONF_akita = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16"
-EXTRA_OECONF_c7x0 = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16"
-EXTRA_OECONF_spitz = "--enable-delay=3 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16"
-EXTRA_OECONF_poodle = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16"
-EXTRA_OECONF_tosa = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16"
-EXTRA_OECONF_collie = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16"
+EXTRA_OECONF_akita = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16 --enable-atags --enable-no-checks"
+EXTRA_OECONF_c7x0 = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16 --enable-atags  --enable-no-checks"
+EXTRA_OECONF_spitz = "--enable-delay=3 --enable-evdev-rate=1000,250 
--enable-fbui-width=480 --enable-bpp=16 --enable-atags  --enable-no-checks"
+EXTRA_OECONF_poodle = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16 --enable-atags  --enable-no-checks"
+EXTRA_OECONF_tosa = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16 --enable-atags  --enable-no-checks"
+EXTRA_OECONF_collie = "--enable-delay=2 --enable-evdev-rate=1000,250 
--enable-bpp=16 --enable-atags  --enable-no-checks"
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexecboot-cfg: add new options for DTB and CMDLINE

2018-09-07 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.2.bb | 6 ++
 1 file changed, 6 insertions(+)

diff --git a/meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.2.bb 
b/meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.2.bb
index 804ec32..f90e234 100644
--- a/meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.2.bb
+++ b/meta-initramfs/recipes-bsp/kexecboot/kexecboot-cfg_0.2.bb
@@ -19,9 +19,15 @@ LABEL=${KEXECBOOT_LABEL}
 # Specify full kernel path on target.
 KERNEL=/boot/${KERNEL_IMAGETYPE}
 #
+# Specify which device tree blob to use
+# DTB=/boot/my-own-dtb
+#
 # Append this tags to the kernel cmdline.
 APPEND=${CMDLINE} ${CMDLINE_DEBUG}
 #
+# Overwrite kernel command line instead of appending to it
+# CMDLINE=console=/dev/tty0 root=/dev/sdb1
+#
 # Specify optional initrd/initramfs.
 # INITRD=/boot/initramfs.cpio.gz
 #
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexecboot: upgrade to rev. 4c01d6960aa6

2018-09-07 Thread Andrea Adami
Remove upstreamed patches, get new options for kexec.

Signed-off-by: Andrea Adami 
---
 ...-Add-top_srcdir-to-compiler-include-paths.patch | 27 ---
 .../files/0002-include-sys-sysmacros.h.patch   | 30 
 .../recipes-bsp/kexecboot/kexecboot_git.bb | 40 ++
 3 files changed, 2 insertions(+), 95 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch
 delete mode 100644 
meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch

diff --git 
a/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch
 
b/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch
deleted file mode 100644
index 0565133..000
--- 
a/meta-initramfs/recipes-bsp/kexecboot/files/0001-Add-top_srcdir-to-compiler-include-paths.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From d302547305727797e0172ba89e7519252c400021 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sat, 11 Aug 2018 14:37:22 -0700
-Subject: [PATCH 1/2] Add top_srcdir to compiler include paths
-
-Helps in compiling with out of tree build dir
-
-Signed-off-by: Khem Raj 

- src/Makefile.am | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/Makefile.am b/src/Makefile.am
-index d04a3a8..6449c5a 100644
 a/src/Makefile.am
-+++ b/src/Makefile.am
-@@ -1,5 +1,7 @@
- bin_PROGRAMS=kexecboot
- 
-+kexecboot_CFLAGS = -I$(top_srcdir)
-+
- kexecboot_SOURCES = \
-   util.c \
-   cfgparser.c \
--- 
-2.18.0
-
diff --git 
a/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch 
b/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch
deleted file mode 100644
index f12ae99..000
--- 
a/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From c587012cbe448c9295f50497812ca3530cabbb51 Mon Sep 17 00:00:00 2001
-From: Khem Raj 
-Date: Sat, 11 Aug 2018 14:39:01 -0700
-Subject: [PATCH 2/2] include sys/sysmacros.h
-
-glibc 2.28+ does not include this header implicitly via other system
-headers anymore
-
-src/devicescan.c:373: undefined reference to `makedev'
-
-Signed-off-by: Khem Raj 

- src/devicescan.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/devicescan.c b/src/devicescan.c
-index 4f2f497..0b2b253 100644
 a/src/devicescan.c
-+++ b/src/devicescan.c
-@@ -20,6 +20,7 @@
- #include 
- #include 
- #include 
-+#include 
- #include 
- #include 
- #include 
--- 
-2.18.0
-
diff --git a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb 
b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
index 8799a3e..6d79e8f 100644
--- a/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
+++ b/meta-initramfs/recipes-bsp/kexecboot/kexecboot_git.bb
@@ -1,36 +1,3 @@
-###
-# Configure options:
-#
-#  --enable-static-linking compile kexecboot as static executable [default=no]
-#  --enable-fbui   support framebuffer menu [default=yes]
-#  --enable-fbui-width limit FB UI width to specified value [default=no]
-#  --enable-fbui-heightlimit FB UI height to specified value [default=no]
-#  --enable-textui support console text user interface [default=no]
-#  --enable-cfgfiles   support config files [default=yes]
-#  --enable-icons  support custom icons (depends on fbui) [default=yes]
-#  --enable-zaurus compile Sharp Zaurus specific code [default=no]
-#  --enable-zimage compile with zImage support [default=yes]
-#  --enable-uimage compile with uImage support [default=no]
-#  --enable-machine-kernel look for machine-specific zImage kernel [default=no]
-#  --enable-devices-recreating
-#  enable devices re-creating [default=yes]
-#  --enable-debug  enable debug output [default=no]
-#  --enable-host-debug allow for non-destructive executing of kexecboot on
-#host system [default=no]
-#  --enable-numkeysenable menu item selection by keys [0-9] 
[default=yes]
-#  --enable-bg-buffer  enable buffer for pre-drawed FB GUI background
-#
-#  --enable-timeoutallow to boot 1st kernel after timeout in seconds
-#[default=no]
-#  --enable-delay  specify delay before device scanning, allowing
-#initialization of old CF/SD cards [default=1]
-#  --enable-bppenable support of specified bpp modes
-#(all,32,24,18,16,4,2,1) [default=all]
-#  --enable-evdev-rate change evdev (keyboard/mouse) repeat rate
-#in milliseconds e.g. "1000,250" [default=no]
-#  --with-kexec-binary look for kexec binary at path
-#[default="/usr/sbin/kexec"]
-##
 SUMMARY = "kexecboot linux-as-bootloader"
 DESCRIPTI

[oe] [meta-initramfs][PATCH] kexec-tools-klibc: remove unneeded aarch64 patch

2018-09-05 Thread Andrea Adami
Remove temporary development leftover (hack).

Signed-off-by: Andrea Adami 
---
 ...4_purgatory-Makefile-remove-unknown-flags.patch | 51 --
 .../recipes-kernel/kexec/kexec-tools-klibc_git.bb  |  3 +-
 2 files changed, 1 insertion(+), 53 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_purgatory-Makefile-remove-unknown-flags.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_purgatory-Makefile-remove-unknown-flags.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_purgatory-Makefile-remove-unknown-flags.patch
deleted file mode 100644
index f87f433..000
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_purgatory-Makefile-remove-unknown-flags.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From 1ceca8645dbe2780e1b8993c80de772993fe3053 Mon Sep 17 00:00:00 2001
-From: Andrea Adami 
-Date: Thu, 19 Apr 2018 10:43:34 +0200
-Subject: [PATCH 1/2] purgatory/arm64: Makefile: remove unknown flags for arm64
-
-Fix
-
- | aarch64-oe-linux-musl-ld: unrecognised emulation mode: cmodel=large
- | Supported emulations: aarch64linux aarch64elf aarch64elf32
-   aarch64elf32b aarch64elfb armelf armelfb aarch64linuxb aarch64linux32
-  aarch64linux32b armelfb_linux_eabi armelf_linux_eabi
-
-Upstream-Status: Inappropriate [klibc specific]
-Signed-off-by: Andrea Adami 
-

- purgatory/arch/arm64/Makefile | 20 ++--
- 1 file changed, 10 insertions(+), 10 deletions(-)
-
-diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile
-index 636abea..ddc9461 100644
 a/purgatory/arch/arm64/Makefile
-+++ b/purgatory/arch/arm64/Makefile
-@@ -1,13 +1,13 @@
- 
--arm64_PURGATORY_EXTRA_CFLAGS = \
--  -mcmodel=large \
--  -fno-PIC \
--  -fno-stack-protector \
--  -fno-asynchronous-unwind-tables \
--  -Wundef \
--  -Werror-implicit-function-declaration \
--  -Wdeclaration-after-statement \
--  -Werror=implicit-int \
--  -Werror=strict-prototypes
-+#arm64_PURGATORY_EXTRA_CFLAGS = \
-+# -mcmodel=large \
-+# -fno-PIC \
-+# -fno-stack-protector \
-+# -fno-asynchronous-unwind-tables \
-+# -Wundef \
-+# -Werror-implicit-function-declaration \
-+# -Wdeclaration-after-statement \
-+# -Werror=implicit-int \
-+# -Werror=strict-prototypes
- 
- arm64_PURGATORY_SRCS += \
-   purgatory/arch/arm64/entry.S \
--- 
-2.7.4
-
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index 92ab7e6..fe34671 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -48,8 +48,7 @@ SRC_URI_append_x86 = " file://x86_sys_io.patch 
file://x86_basename.patch \
 SRC_URI_append_x86-64 = " file://x86_sys_io.patch file://x86_basename.patch \
   file://x86_vfscanf.patch file://x86_kexec_test.patch"
 
-SRC_URI_append_aarch64 = " 
file://arm64_purgatory-Makefile-remove-unknown-flags.patch \
-   
file://arm64_kexec-image-header.h-add-missing-le64toh.patch \
+SRC_URI_append_aarch64 = " 
file://arm64_kexec-image-header.h-add-missing-le64toh.patch \
file://arm64-crashdump-arm64.c-fix-warning.patch \

file://arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch"
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: remove unneeded x86-64 patch

2018-09-05 Thread Andrea Adami
The issue with -mcmodel=large is already solved by the oe-core's patch

 "kexec-x32.patch"

so we can remove this one.

Signed-off-by: Andrea Adami 
---
 ...4-purgatory-Makefile-remove-unknown-flags.patch | 35 --
 .../recipes-kernel/kexec/kexec-tools-klibc_git.bb  |  3 +-
 2 files changed, 1 insertion(+), 37 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
deleted file mode 100644
index 0ec880c..000
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 9453599fd833794fb5d87cab2622de286144ed54 Mon Sep 17 00:00:00 2001
-From: Andrea Adami 
-Date: Wed, 18 Apr 2018 22:30:17 +0200
-Subject: [PATCH 6/6] purgatory: Makefile: remove unknown flags
-
-Fix
-
- x86_64-oe-linux-musl-ld: unrecognised emulation mode: cmodel=large
- Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 elf_iamcu
-   i386linux elf_l1om elf_k1om
- ../kexec-tools-2.0.17-rc1/purgatory/Makefile:67:
- recipe for target 'purgatory/purgatory.ro' failed
-
-Upstream-Status: Inappropriate [embedded specific]
-Signed-off-by: Andrea Adami 
-

- purgatory/arch/x86_64/Makefile | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/purgatory/arch/x86_64/Makefile b/purgatory/arch/x86_64/Makefile
-index 7300937..73f6932 100644
 a/purgatory/arch/x86_64/Makefile
-+++ b/purgatory/arch/x86_64/Makefile
-@@ -24,5 +24,5 @@ x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c
- x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c
- 
- ifeq ($(SUBARCH),64)
--x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
-+#x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
- endif
-
--- 
-2.7.4
-
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index 4bbda4c..92ab7e6 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -46,8 +46,7 @@ SRC_URI_append_x86 = " file://x86_sys_io.patch 
file://x86_basename.patch \
file://x86_vfscanf.patch file://x86_kexec_test.patch"
 
 SRC_URI_append_x86-64 = " file://x86_sys_io.patch file://x86_basename.patch \
-  file://x86_vfscanf.patch file://x86_kexec_test.patch 
\
-  
file://x86-64-purgatory-Makefile-remove-unknown-flags.patch"
+  file://x86_vfscanf.patch file://x86_kexec_test.patch"
 
 SRC_URI_append_aarch64 = " 
file://arm64_purgatory-Makefile-remove-unknown-flags.patch \

file://arm64_kexec-image-header.h-add-missing-le64toh.patch \
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix build for qemuarm64

2018-09-05 Thread Andrea Adami
Since c3f043241a86 upstream the getrandom() syscall is used.
Last recipe bump overlooked that.

The syscall has been added to OE's klibc so we can fix this.

Signed-off-by: Andrea Adami 
---
 ...-arm64.c-workaround-for-getrandom-syscall.patch | 61 ++
 .../recipes-kernel/kexec/kexec-tools-klibc_git.bb  |  3 +-
 2 files changed, 63 insertions(+), 1 deletion(-)
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
new file mode 100644
index 000..b22ac3a
--- /dev/null
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch
@@ -0,0 +1,61 @@
+From 10afeecd10499fbd64b2c68d3b076c6906df441f Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Wed, 5 Sep 2018 17:07:48 +0200
+Subject: [PATCH] kexec-arm64.c: workaround for getrandom() syscall
+
+The syscall was added to OE's klibc.
+Fix
+
+| ../git/kexec/arch/arm64/kexec-arm64.c:19:10: fatal error: syscall.h: No such 
file or directory
+|  #include 
+
+and
+
+| ../git/kexec/arch/arm64/kexec-arm64.c: In function 'setup_2nd_dtb':
+| ../git/kexec/arch/arm64/kexec-arm64.c:499:12: warning: implicit declaration 
of function 'getrandom'; did you mean 'srandom'? 
[-Wimplicit-function-declaration]
+|result = getrandom(_val64,
+
+
+Upstream-Status: Inappropriate [klibc specific]
+Signed-off-by: Andrea Adami 
+---
+ kexec/arch/arm64/kexec-arm64.c | 12 +++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/kexec/arch/arm64/kexec-arm64.c b/kexec/arch/arm64/kexec-arm64.c
+index 7a12479..8a7f5c5 100644
+--- a/kexec/arch/arm64/kexec-arm64.c
 b/kexec/arch/arm64/kexec-arm64.c
+@@ -16,7 +16,11 @@
+ #include 
+ 
+ #include 
++
++#ifndef __KLIBC__
+ #include 
++#endif
++
+ #include 
+ #include 
+ 
+@@ -487,10 +491,16 @@ static int setup_2nd_dtb(struct dtb *dtb, char 
*command_line, int on_crash)
+* have a valid random seed to pass to the
+* secondary kernel.
+*/
++#ifndef __KLIBC__
+   result = syscall(SYS_getrandom, _val64,
+   sizeof(fdt_val64),
+   GRND_NONBLOCK);
+-
++#else
++  extern ssize_t getrandom(void *, size_t, unsigned int);
++  result = getrandom(_val64,
++  sizeof(fdt_val64),
++  GRND_NONBLOCK);
++#endif
+   if(result == -1) {
+   dbgprintf("%s: Reading random bytes failed.\n",
+   __func__);
+-- 
+2.7.4
+
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index d6d3dc8..4bbda4c 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -51,7 +51,8 @@ SRC_URI_append_x86-64 = " file://x86_sys_io.patch 
file://x86_basename.patch \
 
 SRC_URI_append_aarch64 = " 
file://arm64_purgatory-Makefile-remove-unknown-flags.patch \

file://arm64_kexec-image-header.h-add-missing-le64toh.patch \
-   file://arm64-crashdump-arm64.c-fix-warning.patch"
+   file://arm64-crashdump-arm64.c-fix-warning.patch \
+   
file://arm64_kexec-arm64.c-workaround-for-getrandom-syscall.patch"
 
 SRC_URI_append_powerpc = " 
file://powerpc-purgatory-Makefile-remove-unknown-flags.patch"
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: rebase x86-64 patch to remove -mcmodel=large

2018-09-04 Thread Andrea Adami
Patch did not apply after upgrade to latest master.

Signed-off-by: Andrea Adami 
---
 .../x86-64-purgatory-Makefile-remove-unknown-flags.patch | 12 +++-
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
index f1db757..0ec880c 100644
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86-64-purgatory-Makefile-remove-unknown-flags.patch
@@ -19,15 +19,17 @@ Signed-off-by: Andrea Adami 
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/purgatory/arch/x86_64/Makefile b/purgatory/arch/x86_64/Makefile
-index 7300937..38f0bf3 100644
+index 7300937..73f6932 100644
 --- a/purgatory/arch/x86_64/Makefile
 +++ b/purgatory/arch/x86_64/Makefile
-@@ -23,4 +23,4 @@ x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c
- x86_64_PURGATORY_SRCS += purgatory/arch/i386/vga.c
+@@ -24,5 +24,5 @@ x86_64_PURGATORY_SRCS += purgatory/arch/i386/console-x86.c
  x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c
  
--x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
-+#x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
+ ifeq ($(SUBARCH),64)
+-x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
++#x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
+ endif
+
 -- 
 2.7.4
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: enable kexec_file_load() for supported archs

2018-09-04 Thread Andrea Adami
The syscall has been added to klibc.

Signed-off-by: Andrea Adami 
---
 ...all.h-work-around-missing-syscall-wrapper.patch | 35 --
 1 file changed, 26 insertions(+), 9 deletions(-)

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
index e0ba9b4..3020f76 100644
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
@@ -12,11 +12,11 @@ Upstream-Status: Inappropriate [klibc specific]
 Signed-off-by: Andrea Adami 
 
 ---
- kexec/kexec-syscall.h | 9 +
- 1 file changed, 9 insertions(+)
+ kexec/kexec-syscall.h | 21 +
+ 1 file changed, 21 insertions(+)
 
 diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h
-index 33638c2..b4bd63c 100644
+index 33638c2..204007d 100644
 --- a/kexec/kexec-syscall.h
 +++ b/kexec/kexec-syscall.h
 @@ -74,11 +74,16 @@
@@ -36,19 +36,36 @@ index 33638c2..b4bd63c 100644
  
  static inline int is_kexec_file_load_implemented(void) {
if (__NR_kexec_file_load != 0x)
-@@ -90,8 +95,12 @@ static inline long kexec_file_load(int kernel_fd, int 
initrd_fd,
+@@ -86,6 +91,21 @@ static inline int is_kexec_file_load_implemented(void) {
+   return 0;
+ }
+ 
++#ifdef __KLIBC__
++/* Stub provided by klibc only for the following archs */
++#if defined (__x86_64__) || defined (__powerpc_64__) || defined (__s390x__)
++extern long kexec_file_load(int kernel_fd, int initrd_fd,
++  unsigned long cmdline_len, const char *cmdline_ptr,
++  unsigned long flags);
++#else
++static inline long kexec_file_load(int kernel_fd, int initrd_fd,
++  unsigned long cmdline_len, const char *cmdline_ptr,
++  unsigned long flags)
++{
++  return -1;
++}
++#endif
++#else
+ static inline long kexec_file_load(int kernel_fd, int initrd_fd,
unsigned long cmdline_len, const char *cmdline_ptr,
unsigned long flags)
- {
-+#ifndef __KLIBC__
+@@ -93,6 +113,7 @@ static inline long kexec_file_load(int kernel_fd, int 
initrd_fd,
return (long) syscall(__NR_kexec_file_load, kernel_fd, initrd_fd,
cmdline_len, cmdline_ptr, flags);
-+#else
-+  return -1;
-+#endif
  }
++#endif
  
  #define KEXEC_ON_CRASH0x0001
+ #define KEXEC_PRESERVE_CONTEXT0x0002
 -- 
 2.7.4
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] klibc_2.0.4: add kexec_file_load() and getrandom() syscalls

2018-09-04 Thread Andrea Adami
Needed by kexec-tools afer 2.0.17

Signed-off-by: Andrea Adami 
---
 .../0001-klibc-add-getrandom-syscall.patch | 27 ++
 ...1-klibc_2.0.4-add-kexec_file_load-syscall.patch | 27 ++
 meta-initramfs/recipes-devtools/klibc/klibc.inc|  2 ++
 3 files changed, 56 insertions(+)
 create mode 100644 
meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
 create mode 100644 
meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch

diff --git 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
new file mode 100644
index 000..0768f6d
--- /dev/null
+++ 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
@@ -0,0 +1,27 @@
+From e4d5d5224609d7d5c824dd231f5baec868befdfa Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Tue, 4 Sep 2018 23:56:00 +0200
+Subject: [PATCH 1/1] klibc: add getrandom() syscall
+
+needed by latest kexec-tools for qemuarm64 (kashan)
+
+Signed-off-by: Andrea Adami 
+---
+ usr/klibc/SYSCALLS.def | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
+index 6b3bf4c..d4184ba 100644
+--- a/usr/klibc/SYSCALLS.def
 b/usr/klibc/SYSCALLS.def
+@@ -274,6 +274,7 @@ int syslog::klogctl(int, char *, int);
+ int sysinfo(struct sysinfo *);
+ long kexec_load(void *, unsigned long, struct kexec_segment *, unsigned long);
+  long kexec_file_load(int, int, unsigned long, const char 
*, unsigned long);
++ssize_t getrandom(void *, size_t, unsigned int);
+ 
+ /*
+  * Low-level I/O (generally architecture-specific);
+-- 
+2.7.4
+
diff --git 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
new file mode 100644
index 000..3d8d987
--- /dev/null
+++ 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
@@ -0,0 +1,27 @@
+From 90683d5eaabfa684a71411d6e3262153ac191ad8 Mon Sep 17 00:00:00 2001
+From: Andrea Adami 
+Date: Tue, 4 Sep 2018 23:44:30 +0200
+Subject: [PATCH 1/1] klibc_2.0.4: add kexec_file_load syscall
+
+for supported archs only (matched in kexec-tools)
+
+Signed-off-by: Andrea Adami 
+---
+ usr/klibc/SYSCALLS.def | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
+index c56e8f9..6b3bf4c 100644
+--- a/usr/klibc/SYSCALLS.def
 b/usr/klibc/SYSCALLS.def
+@@ -273,6 +273,7 @@ int reboot::__reboot(int, int, int, void *);
+ int syslog::klogctl(int, char *, int);
+ int sysinfo(struct sysinfo *);
+ long kexec_load(void *, unsigned long, struct kexec_segment *, unsigned long);
++ long kexec_file_load(int, int, unsigned long, const char 
*, unsigned long);
+ 
+ /*
+  * Low-level I/O (generally architecture-specific);
+-- 
+2.7.4
+
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc 
b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 30294b1..8616f89 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -20,6 +20,8 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \

file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \

file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \
file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \
+   file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch  \
+   file://0001-klibc-add-getrandom-syscall.patch \
 "
 
 ARMPATCHES ?= ""
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: rebase x86_kexec_test.patch

2018-09-04 Thread Andrea Adami
After last upgrade this patch does not apply anymore.
Replace the previous hack just commenting out the two lines
(package vmcore-dmesg as well).

Signed-off-by: Andrea Adami 
---
 .../kexec/kexec-tools-klibc/x86_kexec_test.patch   | 14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86_kexec_test.patch 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86_kexec_test.patch
index b7d7c10..1c471f5 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86_kexec_test.patch
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/x86_kexec_test.patch
@@ -14,17 +14,17 @@ Signed-off-by: Andrea Adami 
  1 file changed, 2 insertions(+), 2 deletions(-)
 
 diff --git a/Makefile.in b/Makefile.in
-index 79188d8..953c141 100644
+index fb01134..440730d 100644
 --- a/Makefile.in
 +++ b/Makefile.in
-@@ -178,8 +178,8 @@ PSRCS:=$(foreach s, $(SRCS), 
$(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
+@@ -173,8 +173,8 @@ PSRCS:=$(foreach s, $(SRCS), 
$(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
  PGSRCS:=$(foreach s, $(GENERATED_SRCS), 
$(PACKAGE_NAME)-$(PACKAGE_VERSION)/$(s))
  
- MAN_PAGES:=$(KEXEC_MANPAGE) $(KDUMP_MANPAGE) $(VMCORE_DMESG_MANPAGE)
+ MAN_PAGES:=$(KEXEC_MANPAGE) $(VMCORE_DMESG_MANPAGE)
 -BINARIES_i386:=$(KEXEC_TEST)
 -BINARIES_x86_64:=$(KEXEC_TEST)
-+BINARIES_i386:=$(SBINDIR)/kexec
-+BINARIES_x86_64:=$(SBINDIR)/kexec
- BINARIES:=$(KEXEC) $(KDUMP) $(VMCORE_DMESG) $(BINARIES_$(ARCH))
++#BINARIES_i386:=$(KEXEC_TEST)
++#BINARIES_x86_64:=$(KEXEC_TEST)
+ BINARIES:=$(KEXEC) $(VMCORE_DMESG) $(BINARIES_$(ARCH))
  
- TARGETS:=$(BINARIES) $(MAN_PAGES)
+ UNINSTALL_KDUMP = $(sbindir)/kdump
-- 
2.7.4

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


[oe] [meta-handheld][PATCH] linux-*-kexecboot: rename *_SYMLINK_NAME variables to *_LINK_NAME and *_BASE_NAME to *_NAME

2018-08-31 Thread Andrea Adami
As done in kernel*.bbclass with commit id f952c8e08b4

Fix empty zaurus-installer.

Signed-off-by: Andrea Adami 
---
 recipes-kernel/linux/linux-gcw0-kexecboot_4.7.bb | 4 ++--
 recipes-kernel/linux/linux-kexecboot_4.4.bb  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/recipes-kernel/linux/linux-gcw0-kexecboot_4.7.bb 
b/recipes-kernel/linux/linux-gcw0-kexecboot_4.7.bb
index 64480eb..4d2def7 100644
--- a/recipes-kernel/linux/linux-gcw0-kexecboot_4.7.bb
+++ b/recipes-kernel/linux/linux-gcw0-kexecboot_4.7.bb
@@ -7,8 +7,8 @@ inherit nopackages
 PACKAGES = ""
 PROVIDES = ""
 
-KERNEL_IMAGE_BASE_NAME = "gcw0-kexecboot-${PV}-${MACHINE}"
-KERNEL_IMAGE_SYMLINK_NAME = "gcw0-kexecboot-${MACHINE}"
+KERNEL_IMAGE_NAME = "gcw0-kexecboot-${PV}-${MACHINE}"
+KERNEL_IMAGE_LINK_NAME = "gcw0-kexecboot-${MACHINE}"
 
 # RAW for ubiboot
 KERNEL_IMAGETYPE = "vmlinuz.bin"
diff --git a/recipes-kernel/linux/linux-kexecboot_4.4.bb 
b/recipes-kernel/linux/linux-kexecboot_4.4.bb
index 576eea0..4a3df18 100644
--- a/recipes-kernel/linux/linux-kexecboot_4.4.bb
+++ b/recipes-kernel/linux/linux-kexecboot_4.4.bb
@@ -21,8 +21,8 @@ inherit nopackages
 PACKAGES = ""
 PROVIDES = ""
 
-KERNEL_IMAGE_BASE_NAME = "kexecboot-${PV}-${MACHINE}"
-KERNEL_IMAGE_SYMLINK_NAME = "kexecboot-${MACHINE}"
+KERNEL_IMAGE_NAME = "kexecboot-${PV}-${MACHINE}"
+KERNEL_IMAGE_LINK_NAME = "kexecboot-${MACHINE}"
 
 INITRAMFS_IMAGE = "initramfs-kexecboot-klibc-image"
 INITRAMFS_TASK = "${INITRAMFS_IMAGE}:do_image_complete"
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: add kexec-x32.patch from oe-core

2018-08-31 Thread Andrea Adami
This is the last patch borrowed from the actual oe-core recipe.

Signed-off-by: Andrea Adami 
---
 .../kexec/kexec-tools-klibc/kexec-x32.patch| 88 ++
 .../recipes-kernel/kexec/kexec-tools-klibc_git.bb  |  3 +-
 2 files changed, 90 insertions(+), 1 deletion(-)
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/kexec-x32.patch

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/kexec-x32.patch 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/kexec-x32.patch
new file mode 100644
index 000..26d18eb
--- /dev/null
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/kexec-x32.patch
@@ -0,0 +1,88 @@
+x86_64: Add support to build kexec-tools with x32 ABI
+
+Summary of changes,
+
+configure.ac: Add test for detect x32 ABI.
+purgatory/arch/x86_64/Makefile: Not use mcmodel large when
+   x32 ABI is set.
+kexec/arch/x86_64/kexec-elf-rel-x86_64.c: When x32 ABI is set
+   use ELFCLASS32 instead of ELFCLASS64.
+kexec/kexec-syscall.h: Add correct syscall number for x32 ABI.
+
+Upstream-Status: Submitted
+
+Signed-off-by: An??bal Lim??n 
+Signed-off-by: Mariano Lopez 
+
+---
+ configure.ac | 9 +
+ kexec/arch/x86_64/kexec-elf-rel-x86_64.c | 4 
+ kexec/kexec-syscall.h| 4 
+ purgatory/arch/x86_64/Makefile   | 4 +++-
+ 4 files changed, 20 insertions(+), 1 deletion(-)
+
+Index: kexec-tools-2.0.10/configure.ac
+===
+--- kexec-tools-2.0.10.orig/configure.ac
 kexec-tools-2.0.10/configure.ac
+@@ -56,6 +56,15 @@ case $target_cpu in
+   ;;
+   ia64|x86_64|alpha|m68k )
+   ARCH="$target_cpu"
++
++  dnl ---Test for x32 ABI in x86_64
++  if test "x$ARCH" = "xx86_64" ; then
++  AC_EGREP_CPP(x32_test,
++  [#if defined(__x86_64__) && defined (__ILP32__)
++  x32_test
++  #endif
++  ], SUBARCH='x32', SUBARCH='64')
++  fi
+   ;;
+   * )
+   AC_MSG_ERROR([unsupported architecture $target_cpu])
+Index: kexec-tools-2.0.10/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+===
+--- kexec-tools-2.0.10.orig/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
 kexec-tools-2.0.10/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+@@ -8,7 +8,11 @@ int machine_verify_elf_rel(struct mem_eh
+   if (ehdr->ei_data != ELFDATA2LSB) {
+   return 0;
+   }
++#ifdef __ILP32__
++  if (ehdr->ei_class != ELFCLASS32) {
++#else
+   if (ehdr->ei_class != ELFCLASS64) {
++#endif
+   return 0;
+   }
+   if (ehdr->e_machine != EM_X86_64) {
+Index: kexec-tools-2.0.10/kexec/kexec-syscall.h
+===
+--- kexec-tools-2.0.10.orig/kexec/kexec-syscall.h
 kexec-tools-2.0.10/kexec/kexec-syscall.h
+@@ -31,8 +31,12 @@
+ #define __NR_kexec_load   268
+ #endif
+ #ifdef __x86_64__
++#ifdef __ILP32__
++#define __NR_kexec_load   528
++#else
+ #define __NR_kexec_load   246
+ #endif
++#endif
+ #ifdef __s390x__
+ #define __NR_kexec_load   277
+ #endif
+Index: kexec-tools-2.0.10/purgatory/arch/x86_64/Makefile
+===
+--- kexec-tools-2.0.10.orig/purgatory/arch/x86_64/Makefile
 kexec-tools-2.0.10/purgatory/arch/x86_64/Makefile
+@@ -23,4 +23,6 @@ x86_64_PURGATORY_SRCS += purgatory/arch/
+ x86_64_PURGATORY_SRCS += purgatory/arch/i386/vga.c
+ x86_64_PURGATORY_SRCS += purgatory/arch/i386/pic.c
+ 
+-x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
++ifeq ($(SUBARCH),64)
++x86_64_PURGATORY_EXTRA_CFLAGS = -mcmodel=large
++endif
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index 7558b57..d6d3dc8 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -35,7 +35,8 @@ KLIBC_PATCHES += " \
 
 WARNING_FIXES = ""
 FROM_OE_CORE = "file://arm_crashdump-fix-buffer-align.patch \
-file://powerpc_change-the-memory-size-limit.patch"
+file://powerpc_change-the-memory-size-limit.patch \
+file://kexec-x32.patch"
 
 SRC_URI += "${BUILD_PATCHES} ${KLIBC_PATCHES} ${WARNING_FIXES} ${FROM_OE_CORE}"
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: package vmcore-dmesg-klibc

2018-08-31 Thread Andrea Adami
Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index d5f6738..7558b57 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -84,9 +84,10 @@ do_compile_prepend() {
 done
 }
 
-PACKAGES =+ "kexec-klibc"
+PACKAGES =+ "kexec-klibc vmcore-dmesg-klibc"
 
 FILES_kexec-klibc = "${sbindir}/kexec"
+FILES_vmcore-dmesg-klibc = "${sbindir}/vmcore-dmesg"
 
 INSANE_SKIP_${PN} = "arch"
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: fix kexec_load() syscall workaround

2018-08-31 Thread Andrea Adami
As soon as klibc adds kexec_file_load() syscall we can rework this patch.

Signed-off-by: Andrea Adami 
---
 ...all.h-work-around-missing-syscall-wrapper.patch | 25 +-
 1 file changed, 15 insertions(+), 10 deletions(-)

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
index 4a8968b..e0ba9b4 100644
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0006-kexec-syscall.h-work-around-missing-syscall-wrapper.patch
@@ -1,6 +1,6 @@
-From e6aa1f18dc44dc71be3ceada2a96383d22454399 Mon Sep 17 00:00:00 2001
+From 45a80fe7d247898d83edfeabe32b9de80a50a6be Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
-Date: Thu, 19 Apr 2018 00:25:01 +0200
+Date: Fri, 31 Aug 2018 11:33:51 +0200
 Subject: [PATCH] kexec-syscall.h: work around missing syscall() wrapper
 
 Fix
@@ -12,26 +12,31 @@ Upstream-Status: Inappropriate [klibc specific]
 Signed-off-by: Andrea Adami 
 
 ---
- kexec/kexec-syscall.h | 8 
- 1 file changed, 8 insertions(+)
+ kexec/kexec-syscall.h | 9 +
+ 1 file changed, 9 insertions(+)
 
 diff --git a/kexec/kexec-syscall.h b/kexec/kexec-syscall.h
-index 33638c2..6b633e4 100644
+index 33638c2..b4bd63c 100644
 --- a/kexec/kexec-syscall.h
 +++ b/kexec/kexec-syscall.h
-@@ -77,7 +77,11 @@ struct kexec_segment;
+@@ -74,11 +74,16 @@
+ 
+ struct kexec_segment;
+ 
++#ifndef __KLIBC__
  static inline long kexec_load(void *entry, unsigned long nr_segments,
struct kexec_segment *segments, unsigned long flags)
  {
-+#ifndef __KLIBC__
return (long) syscall(__NR_kexec_load, entry, nr_segments, segments, 
flags);
+ }
 +#else
-+  return (long) kexec_load(entry, nr_segments, segments, flags);
++extern long kexec_load(void *entry, unsigned long nr_segments,
++  struct kexec_segment *segments, unsigned long flags);
 +#endif
- }
  
  static inline int is_kexec_file_load_implemented(void) {
-@@ -90,8 +94,12 @@ static inline long kexec_file_load(int kernel_fd, int 
initrd_fd,
+   if (__NR_kexec_file_load != 0x)
+@@ -90,8 +95,12 @@ static inline long kexec_file_load(int kernel_fd, int 
initrd_fd,
unsigned long cmdline_len, const char *cmdline_ptr,
unsigned long flags)
  {
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: upgrade to latest master

2018-08-31 Thread Andrea Adami
as of b9de21ef51a7ceab7122a707c188602eae22c4ee we can remove
obsoleted kdump and get the --no-checks option.

Signed-off-by: Andrea Adami 
---
 meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
index 14edec2..4518e70 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb
@@ -13,7 +13,7 @@ DEPENDS = "zlib xz"
 inherit klibc autotools
 
 SRC_URI = "git://git.kernel.org/pub/scm/utils/kernel/kexec/kexec-tools.git"
-SRCREV = "0481e9ed61ef80b3d851bb96b0c70a3d4a112c8b"
+SRCREV = "b9de21ef51a7ceab7122a707c188602eae22c4ee"
 
 BUILD_PATCHES = "file://0001-force-static-build.patch \
  
file://0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch"
@@ -82,10 +82,9 @@ do_compile_prepend() {
 done
 }
 
-PACKAGES =+ "kexec-klibc kdump-klibc"
+PACKAGES =+ "kexec-klibc"
 
 FILES_kexec-klibc = "${sbindir}/kexec"
-FILES_kdump-klibc = "${sbindir}/kdump"
 
 INSANE_SKIP_${PN} = "arch"
 
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: rework Makefile patch for purgatory

2018-08-21 Thread Andrea Adami
Replace previous hack, wrap linker LDFLAGS for compatibility with
klcc.

Signed-off-by: Andrea Adami 
---
 .../0011-purgatory-Makefile-adapt-to-klcc.patch| 33 +-
 1 file changed, 14 insertions(+), 19 deletions(-)

diff --git 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch
 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch
index 0ae2be7..a459d45 100644
--- 
a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch
+++ 
b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch
@@ -1,17 +1,16 @@
-From fa3844ce6ce95f2db142b6c77f077b3e704d4f6f Mon Sep 17 00:00:00 2001
+From 9b6866b106eb3ad5bd591a23e65a68dd847d Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
-Date: Tue, 17 Apr 2018 19:12:14 +0200
-Subject: [PATCH] purgatory Makefile: adapt to klcc
+Date: Tue, 21 Aug 2018 16:31:44 +0200
+Subject: [PATCH 11/11] purgatory Makefile: adapt to klcc
 
 Upstream-Status: Inappropriate [klibc specific]
 Signed-off-by: Andrea Adami 
-
 ---
- purgatory/Makefile | 9 +
- 1 file changed, 5 insertions(+), 4 deletions(-)
+ purgatory/Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
 
 diff --git a/purgatory/Makefile b/purgatory/Makefile
-index 49ce80a..da36075 100644
+index 49ce80a..72eefaa 100644
 --- a/purgatory/Makefile
 +++ b/purgatory/Makefile
 @@ -47,7 +47,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c
@@ -23,21 +22,17 @@ index 49ce80a..da36075 100644
  -fno-zero-initialized-in-bss \
  -fno-PIC -fno-PIE -fno-stack-protector
  
-@@ -59,13 +59,14 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
+@@ -59,8 +59,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
-Iinclude \
-I$(shell $(CC) -print-file-name=include)
  $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
 -  -Wl,--no-undefined -nostartfiles -nostdlib \
-+  --no-undefined -nostartfiles -nostdlib \
-   -nodefaultlibs -e purgatory_start -r \
--  -Wl,-Map=$(PURGATORY_MAP)
-+  -Map=$(PURGATORY_MAP)
+-  -nodefaultlibs -e purgatory_start -r \
++  -Wl,--no-undefined -Wl,-nostartfiles -Wl,-nostdlib \
++  -Wl,-nodefaultlibs -Wl,--entry=purgatory_start -Wl,-r \
+   -Wl,-Map=$(PURGATORY_MAP)
  
  $(PURGATORY): $(PURGATORY_OBJS)
-   $(MKDIR) -p $(@D)
--  $(CC) $(CFLAGS) $(LDFLAGS) -o $@.sym $^
-+# $(CC) $(CFLAGS) -o $@.sym $^
-+  $(LD) $(LDFLAGS) -o $@.sym $^
- # $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r 
-o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
-   $(STRIP) --strip-debug -o $@ $@.sym
- 
+-- 
+2.7.4
+
-- 
2.7.4

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


[oe] [PATCH 2/2] pcmciautils: depend on bison-native

2018-08-14 Thread Andrea Adami
pcmciautils needs yacc as well as lex.

Backport of oe-core commit dd5208ae22d4

Signed-off-by: Christopher Larson 
Signed-off-by: Richard Purdie 
---
 meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb 
b/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
index 2e59f05..fc06455 100644
--- a/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
+++ b/meta-oe/recipes-bsp/pcmciautils/pcmciautils_018.bb
@@ -5,7 +5,7 @@ SECTION = "kernel/userland"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
 
-DEPENDS = "udev sysfsutils flex-native"
+DEPENDS = "udev sysfsutils flex-native bison-native"
 RDEPENDS_${PN} = "udev module-init-tools"
 
 PR = "r1"
-- 
2.7.4

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


[oe] [PATCH 1/2] pcmciautils: drop duplicate chunk from pcmciautils-018/makefile_race.patch

2018-08-14 Thread Andrea Adami
The new rule was patched into the makefile twice.

Backport of oe-core commit c52228f4d071

Signed-off-by: Alexander Kanavin 
Signed-off-by: Ross Burton 
Signed-off-by: Ross Burton 
---
 .../pcmciautils/pcmciautils/makefile_race.patch| 14 --
 1 file changed, 14 deletions(-)

diff --git a/meta-oe/recipes-bsp/pcmciautils/pcmciautils/makefile_race.patch 
b/meta-oe/recipes-bsp/pcmciautils/pcmciautils/makefile_race.patch
index f5a518f..4c5eba7 100644
--- a/meta-oe/recipes-bsp/pcmciautils/pcmciautils/makefile_race.patch
+++ b/meta-oe/recipes-bsp/pcmciautils/pcmciautils/makefile_race.patch
@@ -16,20 +16,6 @@ Index: pcmciautils-018/Makefile
 ===
 --- pcmciautils-018.orig/Makefile
 +++ pcmciautils-018/Makefile
-@@ -249,6 +249,9 @@ $(PCMCIA_SOCKET_STARTUP): $(LIBC) src/st
- yacc_config.o lex_config.o: %.o: %.c src/yacc_config.h
-   $(CC) -c -MD -O -pipe $(CPPFLAGS) $<
- 
-+src/lex_config.o : src/lex_config.c src/yacc_config.h
-+  $(QUIET) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
-+
- debugtools: ccdv $(CBDUMP) $(CISDUMP)
- 
- $(CBDUMP): $(LIBC) debug/cbdump.o
-Index: pcmciautils-018/Makefile
-===
 pcmciautils-018.orig/Makefile
-+++ pcmciautils-018/Makefile
 @@ -246,8 +246,8 @@ $(PCMCIA_SOCKET_STARTUP): $(LIBC) src/st
$(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) src/startup.o src/yacc_config.o 
src/lex_config.o $(LIB_OBJS) $(ARCH_LIB_OBJS)
$(QUIET) $(STRIPCMD) $@
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] ubi-utils-klibc_2.0.2: upgrade to git rev 64f61a9

2018-05-30 Thread Andrea Adami
 -Incorporate 3 small after-relase fixes
 -Fix typos in patch comments (Upstream-Status)
 -Remove patch enumeration from Subject line

Signed-off-by: Andrea Adami 
---
 .../0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch   | 2 +-
 .../0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch   | 2 +-
 .../ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch | 2 +-
 .../0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch  | 2 +-
 .../0005-common.h-replace-getline-with-fgets.patch| 4 ++--
 meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb  | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch
index 6ed167f..4ee9bd9 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch
@@ -12,7 +12,7 @@ Fix build error:
 | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: 
  No such file or directory
 
-Status: Inappropriate [klibc specific]
+Upstream-Status: Inappropriate [klibc specific]
 
 Signed-off-by: Andrea Adami 
 ---
diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
index bb675a7..5c6e097 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
@@ -1,7 +1,7 @@
 From 01c98d5d5d044d9a125abcdbb2f3d771966365b0 Mon Sep 17 00:00:00 2001
 From: mirabilos 
 Date: Thu, 1 Feb 2018 15:34:07 +0100
-Subject: [PATCH 2/4] Instead of doing preprocessor magic, just output off_t as
+Subject: [PATCH] Instead of doing preprocessor magic, just output off_t as
  long long
 
 Fix warnings abot PRIdoff_t in libmtd.c, in mtd_read (and mtd_write):
diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
index 08c53d1..38ab7a9 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
@@ -1,7 +1,7 @@
 From 139d93bc405272a3261d57be26da842e737fe4d0 Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
 Date: Sun, 28 Jan 2018 23:10:34 +0100
-Subject: [PATCH 3/4] Makefile.am: only build ubi-utils
+Subject: [PATCH] Makefile.am: only build ubi-utils
 
 We only target the ubi-utils, static, small.
 
diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
index 5da05fa..2844a50 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
@@ -1,7 +1,7 @@
 From ae1cf6d0eb1833e46549328a4473222c259723d7 Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
 Date: Thu, 1 Feb 2018 00:25:00 +0100
-Subject: [PATCH 4/4] mtd-utils: common.h: no features.h for klibc builds
+Subject: [PATCH] mtd-utils: common.h: no features.h for klibc builds
 
 Add guard around features.h to fix missing include (here first error):
 
diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0005-common.h-replace-getline-with-fgets.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0005-common.h-replace-getline-with-fgets.patch
index adef377..a556ed3 100644
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0005-common.h-replace-getline-with-fgets.patch
+++ 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0005-common.h-replace-getline-with-fgets.patch
@@ -1,7 +1,7 @@
 From 2137eb1a6cd0326510bd3b9faf8037d9bf34ca3d Mon Sep 17 00:00:00 2001
 From: Andrea Adami 
 Date: Wed, 23 May 2018 15:52:34 +0200
-Subject: [PATCH 5/5] common.h: replace getline() with fgets
+Subject: [PATCH] common.h: replace getline() with fgets
 
 There is an unofficial upstream patch adding a simple getline()
 to libmissing.h. Unfortunately the patch creates issues if the
@@ -13,7

[oe] [meta-initramfs][PATCH v2] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-23 Thread Andrea Adami
Update to new version and drop accepted patches.
Use autotools and packageconfig (for xattrs).

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
 .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
 ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
 ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
 ...-more-workarounds-for-klibc-compatibility.patch |  52 
 ...rser-remove-unused-function-needing-float.patch |  85 --
 ...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 ---
 ...h-fix-klibc-build-when-using-glibc-toolch.patch |  40 +++
 ...doing-preprocessor-magic-just-output-off_.patch | 326 +
 .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
 ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
 .../0005-common.h-replace-getline-with-fgets.patch |  56 
 ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  27 +-
 15 files changed, 508 insertions(+), 584 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-libmissing.h-fix-klibc-build-when-using-glibc-toolch.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0005-common.h-replace-getline-with-fgets.patch
 rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
ubi-utils-klibc_2.0.2.bb} (64%)

diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
deleted file mode 100644
index 6ac2cca..000
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
-From: Andrea Adami <andrea.ad...@gmail.com>
-Date: Sun, 29 Jun 2014 00:32:29 +0200
-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.
-
-More fixes are needed in order to build the full mtd-utils.
-The first issue is:
-
-| mkfs.jffs2.c:64:20: fatal error: libgen.h: No such file or directory
-|  #include 
-
-Removing the include then the second error is:
-
-| mkfs.jffs2.c:1570:22: error: '_SC_PAGESIZE' undeclared
-| (first use in this function)
-|   page_size = sysconf(_SC_PAGESIZE);
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>

- Makefile | 26 ++
- 1 file changed, 2 insertions(+), 24 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 3ce8587..8b79f71 100644
 a/Makefile
-+++ b/Makefile
-@@ -16,28 +16,11 @@ endif
- 
- TESTS = tests
- 
--MTD_BINS = \
--  ftl_format flash_erase nanddump doc_loadbios \
--  ftl_check mkfs.jffs2 flash_lock flash_unlock \
--  flash_otp_info flash_otp_dump flash_otp_lock flash_otp_write \
--  mtd_debug flashcp nandwrite nandtest mtdpart \
--  jffs2dump \
--  nftldump nftl_format docfdisk \
--  rfddump rfdformat \
--

Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-22 Thread Andrea Adami
On Thu, May 17, 2018 at 10:44 PM, Andrea Adami <andrea.ad...@gmail.com> wrote:
> 
>
>>> This fails on qemuarm with the following error.
>>
>> >>
>> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> >> file or directory
>> >> |  #include 
>> >> |   ^~~~
>> >> | compilation terminated.
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
>> >> | make: *** [ubi-utils/ubimkvol.o] Error 1
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
>> >> | make: *** [ubi-utils/ubicrc32.o] Error 1
>> >> | In file included from ../git/include/common.h:38:0,
>> >> |  from ../git/ubi-utils/ubiupdatevol.c:40:
>> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> >> file or directory
>> >> |  #include 
>> >> |   ^~~~
>> >> | compilation terminated.
>> >> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
>> >> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
>> >> | ERROR: oe_runmake failed
>> >>
>> >> http://errors.yoctoproject.org/Errors/Build/60410/
>> >>
>> >> - Armin
>> >
>> >
>> > Hi Armin,
>> > thanks for testing.
>> >
>> > Strange, I did cross-build for all archs, maybe some oe-core change.
>> > I'll compare with my log (attached the quemuarm).
>> >
>> > Cheers
>> > Andrea
>> >
>>
>> I see the issue is with execinfo.h.
>> As of last week ...musl did not have backtrace/execinfo so I think musl has 
>> been updated and now the HAVE_EXECINFO_H check fails.
>> I'll try to fix this in the recipe.
>>
>>
>> Cheers
>> Andrea
>>
> Armin,
>
> I can't reproduce this even after git-pull:
>
> Build Configuration:
> BB_VERSION   = "1.37.0"
> BUILD_SYS= "x86_64-linux"
> NATIVELSBSTRING  = "ubuntu-16.04"
> TARGET_SYS   = "arm-oe-linux-musleabi"
> MACHINE  = "qemuarm"
> DISTRO   = "nodistro"
> DISTRO_VERSION   = "nodistro.0"
> TUNE_FEATURES= "arm armv5 thumb dsp"
> TARGET_FPU   = "soft"
> meta = "master:9611485bba03ef77ff31121e3b1da7cd57990c3e"
> meta-handheld= "master:891fefa796ff3a12e4d9470f44597a375818acb6"
> meta-initramfs
> meta-oe  = "master:61576573e70f8c1d338ddb23d7b76044f68d1cd9"
>
> here logs of tosa (armv5te) and qemuarm (armv5e):
>
> https://pastebin.com/vNx4D14z
> https://pastebin.com/gw8vZvCf
>
>
> Please send me full configure and build logs.
> Andrea

Ok, after the post I realized it is happening only with glibc. Musl builds fine.

The cause is the backported patch I received from the upstream
maintainer: let say for the moment I will skip that patch and replace
getline() like it was before.
This should fix the glibc build so I plan to send a patch v2.

Please disregard this one, thanks.

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


Re: [oe] [OE-core] meta-openembedded maintainer ship change.

2018-05-22 Thread Andrea Adami
On Tue, May 22, 2018 at 5:40 PM, akuster808  wrote:
> Hello all,
>
> After much thought, I have decided to step away from being the
> meta-openembedded maintainer, patch wrangler and builder.  Khem Raj has
> kindly stepped up to continue these activities. Maintaining this was
> consuming too much of my free time and I need to focus on other things
> in the community.
>
> Thanks for the opportunity to have served you.
>
> Kind regards,
>
> Armin
>

Many thanks for the time you've spent!
Andrea

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


Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami


>> This fails on qemuarm with the following error.
>
> >>
> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> >> file or directory
> >> |  #include 
> >> |   ^~~~
> >> | compilation terminated.
> >> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
> >> | make: *** [ubi-utils/ubimkvol.o] Error 1
> >> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
> >> | make: *** [ubi-utils/ubicrc32.o] Error 1
> >> | In file included from ../git/include/common.h:38:0,
> >> |  from ../git/ubi-utils/ubiupdatevol.c:40:
> >> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> >> file or directory
> >> |  #include 
> >> |   ^~~~
> >> | compilation terminated.
> >> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
> >> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
> >> | ERROR: oe_runmake failed
> >>
> >> http://errors.yoctoproject.org/Errors/Build/60410/
> >>
> >> - Armin
> >
> >
> > Hi Armin,
> > thanks for testing.
> >
> > Strange, I did cross-build for all archs, maybe some oe-core change.
> > I'll compare with my log (attached the quemuarm).
> >
> > Cheers
> > Andrea
> >
>
> I see the issue is with execinfo.h.
> As of last week ...musl did not have backtrace/execinfo so I think musl has 
> been updated and now the HAVE_EXECINFO_H check fails.
> I'll try to fix this in the recipe.
>
>
> Cheers
> Andrea
>
Armin,

I can't reproduce this even after git-pull:

Build Configuration:
BB_VERSION   = "1.37.0"
BUILD_SYS= "x86_64-linux"
NATIVELSBSTRING  = "ubuntu-16.04"
TARGET_SYS   = "arm-oe-linux-musleabi"
MACHINE  = "qemuarm"
DISTRO   = "nodistro"
DISTRO_VERSION   = "nodistro.0"
TUNE_FEATURES= "arm armv5 thumb dsp"
TARGET_FPU   = "soft"
meta = "master:9611485bba03ef77ff31121e3b1da7cd57990c3e"
meta-handheld= "master:891fefa796ff3a12e4d9470f44597a375818acb6"
meta-initramfs
meta-oe  = "master:61576573e70f8c1d338ddb23d7b76044f68d1cd9"

here logs of tosa (armv5te) and qemuarm (armv5e):

https://pastebin.com/vNx4D14z
https://pastebin.com/gw8vZvCf


Please send me full configure and build logs.
Andrea
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami
On Thu, May 17, 2018 at 5:31 PM, Andrea Adami <andrea.ad...@gmail.com>
wrote:
> On Thu, May 17, 2018 at 4:15 PM, akuster808 <akuster...@gmail.com> wrote:
>>
>>
>> On 05/13/2018 03:16 PM, Andrea Adami wrote:
>>> Update to new version and drop accepted patches.
>>>
>>> Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
>>> ---
>>>  .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
>>>  .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
>>>  ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
>>>  ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
>>>  ...-more-workarounds-for-klibc-compatibility.patch |  52 
>>>  ...rser-remove-unused-function-needing-float.patch |  85 --
>>>  ...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 ---
>>>  ...mple-getline-implementation-to-libmissing.patch | 187 
>>>  ...doing-preprocessor-magic-just-output-off_.patch | 326
+
>>>  .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
>>>  ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
>>>  ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
>>
>> This fails on qemuarm with the following error.
>>
>> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> file or directory
>> |  #include 
>> |   ^~~~
>> | compilation terminated.
>> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
>> | make: *** [ubi-utils/ubimkvol.o] Error 1
>> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
>> | make: *** [ubi-utils/ubicrc32.o] Error 1
>> | In file included from ../git/include/common.h:38:0,
>> |  from ../git/ubi-utils/ubiupdatevol.c:40:
>> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
>> file or directory
>> |  #include 
>> |   ^~~~
>> | compilation terminated.
>> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
>> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
>> | ERROR: oe_runmake failed
>>
>> http://errors.yoctoproject.org/Errors/Build/60410/
>>
>> - Armin
>
>
> Hi Armin,
> thanks for testing.
>
> Strange, I did cross-build for all archs, maybe some oe-core change.
> I'll compare with my log (attached the quemuarm).
>
> Cheers
> Andrea
>

I see the issue is with execinfo.h.
As of last week ...musl did not have backtrace/execinfo so I think musl has
been updated and now the HAVE_EXECINFO_H check fails.
I'll try to fix this in the recipe.


Cheers
Andrea

>>
>>>  14 files changed, 598 insertions(+), 584 deletions(-)
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
>>>  delete mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
>>>  create mode 100644
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-

Re: [oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-17 Thread Andrea Adami
On Thu, May 17, 2018 at 4:15 PM, akuster808 <akuster...@gmail.com> wrote:
>
>
> On 05/13/2018 03:16 PM, Andrea Adami wrote:
>> Update to new version and drop accepted patches.
>>
>> Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
>> ---
>>  .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
>>  .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
>>  ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
>>  ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
>>  ...-more-workarounds-for-klibc-compatibility.patch |  52 
>>  ...rser-remove-unused-function-needing-float.patch |  85 --
>>  ...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 ---
>>  ...mple-getline-implementation-to-libmissing.patch | 187 
>>  ...doing-preprocessor-magic-just-output-off_.patch | 326 
>> +
>>  .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
>>  ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
>>  ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
>
> This fails on qemuarm with the following error.
>
> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> file or directory
> |  #include 
> |   ^~~~
> | compilation terminated.
> | Makefile:2452: recipe for target 'ubi-utils/ubimkvol.o' failed
> | make: *** [ubi-utils/ubimkvol.o] Error 1
> | Makefile:2452: recipe for target 'ubi-utils/ubicrc32.o' failed
> | make: *** [ubi-utils/ubicrc32.o] Error 1
> | In file included from ../git/include/common.h:38:0,
> |  from ../git/ubi-utils/ubiupdatevol.c:40:
> | ../git/include/libmissing.h:7:10: fatal error: execinfo.h: No such
> file or directory
> |  #include 
> |   ^~~~
> | compilation terminated.
> | Makefile:2452: recipe for target 'ubi-utils/ubiupdatevol.o' failed
> | make: *** [ubi-utils/ubiupdatevol.o] Error 1
> | ERROR: oe_runmake failed
>
> http://errors.yoctoproject.org/Errors/Build/60410/
>
> - Armin


Hi Armin,
thanks for testing.

Strange, I did cross-build for all archs, maybe some oe-core change.
I'll compare with my log (attached the quemuarm).

Cheers
Andrea

>
>>  14 files changed, 598 insertions(+), 584 deletions(-)
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
>>  delete mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
>>  create mode 100644 
>> meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
>>  rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
>> ubi-utils-klibc_2.0.2.bb} (64%)
>>
>> diff --git 
>> a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>>  
>> b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
>> deleted fi

[oe] [meta-handheld][PATCH] linux-handheld(-kexecboot)_4.4: upgrade to 4.4.131

2018-05-14 Thread Andrea Adami
Remove backported pxa_dma fix.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 ...aengine-mmp-pdma-add-number-of-requestors.patch | 34 --
 recipes-kernel/linux/linux-handheld_4.4.bb |  6 ++--
 2 files changed, 3 insertions(+), 37 deletions(-)
 delete mode 100644 
recipes-kernel/linux/linux-handheld-4.4/dmaengine-mmp-pdma-add-number-of-requestors.patch

diff --git 
a/recipes-kernel/linux/linux-handheld-4.4/dmaengine-mmp-pdma-add-number-of-requestors.patch
 
b/recipes-kernel/linux/linux-handheld-4.4/dmaengine-mmp-pdma-add-number-of-requestors.patch
deleted file mode 100644
index 02287a4..000
--- 
a/recipes-kernel/linux/linux-handheld-4.4/dmaengine-mmp-pdma-add-number-of-requestors.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 4ab014655ebad342c6e7beae427c5cc0f8141d2b Mon Sep 17 00:00:00 2001
-From: Robert Jarzmik <robert.jarz...@free.fr>
-Date: Mon, 15 Feb 2016 21:57:46 +0100
-Subject: dmaengine: mmp-pdma: add number of requestors
-
-commit c283e41ef32442f41e7180f9bb1c5aedf9255bfe upstream.
-
-The DMA chip has a fixed number of requestor lines used for flow
-control. This number is platform dependent. The pxa_dma dma driver will
-use this value to activate or not the flow control.
-
-There won't be any impact on mmp_pdma driver.
-
-Signed-off-by: Robert Jarzmik <robert.jarz...@free.fr>
-Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

- include/linux/platform_data/mmp_dma.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/include/linux/platform_data/mmp_dma.h 
b/include/linux/platform_data/mmp_dma.h
-index 2a330ec..d1397c8 100644
 a/include/linux/platform_data/mmp_dma.h
-+++ b/include/linux/platform_data/mmp_dma.h
-@@ -14,6 +14,7 @@
- 
- struct mmp_dma_platdata {
-   int dma_channels;
-+  int nb_requestors;
- };
- 
- #endif /* MMP_DMA_H */
--- 
-cgit v0.12
-
diff --git a/recipes-kernel/linux/linux-handheld_4.4.bb 
b/recipes-kernel/linux/linux-handheld_4.4.bb
index 6403fc7..603073d 100644
--- a/recipes-kernel/linux/linux-handheld_4.4.bb
+++ b/recipes-kernel/linux/linux-handheld_4.4.bb
@@ -6,12 +6,12 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
 COMPATIBLE_MACHINE = "akita|c7x0|collie|h3600|hx4700|poodle|spitz|tosa"
 
 SRC_URI = 
"${KERNELORG_MIRROR}/linux/kernel/v4.x/linux-${PV}.tar.xz;name=kernel \
-   
${KERNELORG_MIRROR}/linux/kernel/v4.x/patch-${PV}.90.xz;apply=yes;name=stablepatch
 \
+   
${KERNELORG_MIRROR}/linux/kernel/v4.x/patch-${PV}.131.xz;apply=yes;name=stablepatch
 \
"
 SRC_URI[kernel.md5sum] = "9a78fa2eb6c68ca5a40ed5af08142599"
 SRC_URI[kernel.sha256sum] = 
"401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2"
-SRC_URI[stablepatch.md5sum] = "8186b1fec7b797f341040ccd4ae45ce0"
-SRC_URI[stablepatch.sha256sum] = 
"fe52e3ae90ea5cc2bc6da70efcb085cb80257cfb2dd058d09e5efcadcc7ed275"
+SRC_URI[stablepatch.md5sum] = "e03be4613183558867bc1342e295485e"
+SRC_URI[stablepatch.sha256sum] = 
"6d55f660482213c8fcd2ccd89592eccaa020d047976733909a457d9b0e56f3af"
 
 SRC_URI += "\
file://ASoC-pxa-fix-module-autoload-for-platform-drivers.patch \
-- 
2.7.4

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


[oe] [meta-handheld][PATCH] linux-kexecboot_4.4: remove superseded 3200-mtd.patch

2018-05-14 Thread Andrea Adami
The real partitioning is detected by the kernel mtd
parser sharpslpart. No confusion between 300, 3100
and 3200 mtdparts anymore.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../linux/linux-kexecboot-4.4/spitz/3200-mtd.patch  | 13 -
 recipes-kernel/linux/linux-kexecboot_4.4.bb |  3 ---
 2 files changed, 16 deletions(-)
 delete mode 100644 
recipes-kernel/linux/linux-kexecboot-4.4/spitz/3200-mtd.patch

diff --git a/recipes-kernel/linux/linux-kexecboot-4.4/spitz/3200-mtd.patch 
b/recipes-kernel/linux/linux-kexecboot-4.4/spitz/3200-mtd.patch
deleted file mode 100644
index 4b2a968..000
--- a/recipes-kernel/linux/linux-kexecboot-4.4/spitz/3200-mtd.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c
-index 953a919..14e7736 100644
 a/arch/arm/mach-pxa/spitz.c
-+++ b/arch/arm/mach-pxa/spitz.c
-@@ -802,7 +802,7 @@ static void __init spitz_nand_init(void)
-   spitz_nand_bbt.len = 1;
-   spitz_nand_pdata.ecc_layout = _oobinfo;
-   } else if (machine_is_borzoi()) {
--  spitz_nand_partitions[1].size = 32 * 1024 * 1024;
-+  spitz_nand_partitions[1].size = 43 * 1024 * 1024;
-   spitz_nand_bbt.len = 1;
-   spitz_nand_pdata.ecc_layout = _oobinfo;
-   }
diff --git a/recipes-kernel/linux/linux-kexecboot_4.4.bb 
b/recipes-kernel/linux/linux-kexecboot_4.4.bb
index cb3f544..576eea0 100644
--- a/recipes-kernel/linux/linux-kexecboot_4.4.bb
+++ b/recipes-kernel/linux/linux-kexecboot_4.4.bb
@@ -7,9 +7,6 @@ COMPATIBLE_MACHINE = "|akita|c7x0|collie|poodle|spitz|tosa"
 
 LOCOMO_PATCHES += 
"file://locomo/0091-locomokbd.c-invert-KEY_ENTER-and-KEY_KPENTER.patch"
 
-# only for SL-C3200 (terrier)
-# SRC_URI_append_spitz += "file://3200-mtd.patch"
-
 # Zaurus machines need kernel size-check.
 KERNEL_IMAGE_MAXSIZE_akita = "1264"
 KERNEL_IMAGE_MAXSIZE_c7x0 = "1264"
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] kexec-tools-klibc: upgrade from v. 2.0.2 to 2.0.17

2018-05-13 Thread Andrea Adami
This version does support aarch64.
Ad klibc-specific patchset and track the git repository
to get the (many) fixes for the warnings.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../kexec-tools-klibc-2.0.2/arm_crashdump.patch|  12 --
 .../kexec-tools-klibc-2.0.2/cflags_static.patch|  11 --
 .../fix-out-of-tree-build.patch|  54 
 .../kexec-tools-klibc-2.0.2/ifdown_errno.patch |  11 --
 .../kexec-tools-klibc-2.0.2/kexec-elf-rel.patch|  61 -
 .../kexec-tools-klibc-2.0.2/kexec-syscall.patch|  44 --
 .../kexec-tools-klibc-2.0.2/ppc__lshrdi3.patch |  18 ---
 .../kexec-tools-klibc-2.0.2/purgatory_flags.patch  |  21 ---
 .../kexec-tools-klibc-2.0.2/purgatory_string.patch |   9 --
 .../kexec/kexec-tools-klibc-2.0.2/sha256.patch |  13 --
 .../sysconf_nrprocessors.patch |  13 --
 .../kexec-tools-klibc-2.0.2/x86_basename.patch |  14 --
 .../kexec-tools-klibc-2.0.2/x86_kexec_test.patch   |  13 --
 .../kexec/kexec-tools-klibc-2.0.2/x86_sys_io.patch |  21 ---
 .../kexec-tools-klibc-2.0.2/x86_vfscanf.patch  |  27 
 .../0001-force-static-build.patch  |  25 
 ...e-order-of-headers-to-fix-build-for-musl.patch} |  17 ++-
 .../0003-kexec-elf-rel-use-our-elf.h.patch |  92 +
 ...4-kexec-elf-exec.c-replace-with-our-err.h.patch |  30 
 ...lf.c-work-around-for-sysconf-_SC_NPROCESS.patch | 134 ++
 ...all.h-work-around-missing-syscall-wrapper.patch |  49 +++
 .../0007-kexec.c-add-guard-around-ENOTSUP.patch|  37 +
 .../0008-kexec.c-replace-mising-BLKGETSIZE64.patch |  32 +
 ...mcore-dmesg.c-work-around-missing-imaxdiv.patch |  57 
 .../0010-fs2dt.c-work-around-missing-getline.patch |  47 +++
 .../0011-purgatory-Makefile-adapt-to-klcc.patch|  43 ++
 ...tory-string.c-avoid-inclusion-of-string.h.patch |  31 +
 ...3-sha256.h-avoid-inclusion-of-sys-types.h.patch |  36 +
 .../0014-add-if_nameindex-from-musl.patch  | 152 +
 .../0015-vmcore-dmesg-fix-warning.patch|  29 
 .../arm64-crashdump-arm64.c-fix-warning.patch  |  34 +
 ..._kexec-image-header.h-add-missing-le64toh.patch |  40 ++
 ...4_purgatory-Makefile-remove-unknown-flags.patch |  51 +++
 .../kexec/kexec-tools-klibc/arm_crashdump.patch|  31 +
 ...c-purgatory-Makefile-remove-unknown-flags.patch |  34 +
 ...4-purgatory-Makefile-remove-unknown-flags.patch |  33 +
 .../kexec/kexec-tools-klibc/x86_basename.patch |  30 
 .../kexec/kexec-tools-klibc/x86_kexec_test.patch   |  30 
 .../kexec/kexec-tools-klibc/x86_sys_io.patch   |  36 +
 .../kexec/kexec-tools-klibc/x86_vfscanf.patch  |  43 ++
 .../kexec/kexec-tools-klibc_2.0.2.bb   |  69 --
 .../recipes-kernel/kexec/kexec-tools-klibc_git.bb  |  92 +
 42 files changed, 1256 insertions(+), 420 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/arm_crashdump.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/cflags_static.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/fix-out-of-tree-build.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/ifdown_errno.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/kexec-elf-rel.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/kexec-syscall.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/ppc__lshrdi3.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/purgatory_flags.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/purgatory_string.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/sha256.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/sysconf_nrprocessors.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_basename.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_kexec_test.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_sys_io.patch
 delete mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/x86_vfscanf.patch
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0001-force-static-build.patch
 rename 
meta-initramfs/recipes-kernel/kexec/{kexec-tools-klibc-2.0.2/0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch
 => 
kexec-tools-klibc/0002-Adjust-the-order-of-headers-to-fix-build-for-musl.patch} 
(64%)
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0003-kexec-elf-rel-use-our-elf.h.patch
 create mode 100644 
meta-initramfs/recipes-kernel/kexec/ke

[oe] [meta-initramfs][PATCH] ubi-utils-klibc: update from v. 1.5.2 to 2.0.2

2018-05-13 Thread Andrea Adami
Update to new version and drop accepted patches.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../0001-Makefile-build-ubi-utils-only.patch   |  87 --
 .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  27 --
 ...bubi.c-add-klibc-specific-fixes-for-ioctl.patch |  76 -
 ...patibility-to-dietlibc-klibc-musl-libc-af.patch |  88 --
 ...-more-workarounds-for-klibc-compatibility.patch |  52 
 ...rser-remove-unused-function-needing-float.patch |  85 --
 ...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 ---
 ...mple-getline-implementation-to-libmissing.patch | 187 
 ...doing-preprocessor-magic-just-output-off_.patch | 326 +
 .../0003-Makefile.am-only-build-ubi-utils.patch|  34 +++
 ...s-common.h-no-features.h-for-klibc-builds.patch |  38 +++
 ...ils-klibc_1.5.2.bb => ubi-utils-klibc_2.0.2.bb} |  26 +-
 14 files changed, 598 insertions(+), 584 deletions(-)
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0002-common.mk-for-klibc-CC-is-klcc.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0005-common.h-more-workarounds-for-klibc-compatibility.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0006-libiniparser-remove-unused-function-needing-float.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
 delete mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0009-Eliminate-warnings-about-implicit-non-const-casting-.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-Add-simple-getline-implementation-to-libmissing.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0003-Makefile.am-only-build-ubi-utils.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch
 rename meta-initramfs/recipes-devtools/mtd/{ubi-utils-klibc_1.5.2.bb => 
ubi-utils-klibc_2.0.2.bb} (64%)

diff --git 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
 
b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
deleted file mode 100644
index 6ac2cca..000
--- 
a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-1.5.2/0001-Makefile-build-ubi-utils-only.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 1c989e4c36d0bf76ab444f984bc73b98eeacd03f Mon Sep 17 00:00:00 2001
-From: Andrea Adami <andrea.ad...@gmail.com>
-Date: Sun, 29 Jun 2014 00:32:29 +0200
-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.
-
-More fixes are needed in order to build the full mtd-utils.
-The first issue is:
-
-| mkfs.jffs2.c:64:20: fatal error: libgen.h: No such file or directory
-|  #include 
-
-Removing the include then the second error is:
-
-| mkfs.jffs2.c:1570:22: error: '_SC_PAGESIZE' undeclared
-| (first use in this function)
-|   page_size = sysconf(_SC_PAGESIZE);
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>

- Makefile | 26 ++
- 1 file changed, 2 insertions(+), 24 deletions(-)
-
-diff --git a/Makefile b/Makefile
-index 3ce8587..8b79f71 100644
 a/Makefile
-+++ b/Makefile
-@@ -16,28 +16,11 @@ endif
- 
- TESTS = tests
- 
--MTD_BINS = \
--  ftl_format flash_erase nanddump doc_loadbios \
--  ftl_check mkfs.jffs2 flash_lock flash_unlock \
--  flash_otp_info flash_otp_dump flash_otp_lock flash_otp_write \
--  mtd_debug flashcp nandwrite nandtest mtdpart \
--  jffs2dump \
--  nftldump nftl_format docfdisk \
--  rfddump rfdformat \
--  serve_image recv_image \
--  sumtool jffs2reader
- UBI_BINS = \
-   ubiupdatevol ubimkvol ubirmvol ubicrc32 ubinfo ubiattach \
-   ubidetach ubinize ubiformat ubirename mtdinfo ubirsvol ubiblock
- 
--BINS = $(MTD_BI

Re: [oe] [meta-oe][PATCH] openobex: explicitly set ASNEEDED from openobex recipe

2018-05-08 Thread Andrea Adami
On Sat, May 5, 2018 at 1:09 AM, Andre McCurdy  wrote:
> Up to now, an openobex specific over-ride for ASNEEDED has been
> provided by oe-core (from as-needed.inc). If ASNEEDED does need to be
> over-ridden in order to build openobex it's not ideal that the
> over-ride comes from a different layer so define it directly in the
> meta-oe recipe.
>
Hi,

don't we have a special include for this purpose?
 /meta/conf/distro/include/as-needed.inc
What want we do? ASNEEDED in the recipe or include the as_needed.inc?

For me, patch is ok, all in the recipe (there are just few cases).

Cheers
Andrea

> Signed-off-by: Andre McCurdy 
> ---
>  meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb 
> b/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb
> index 2db48f3..1b56685 100644
> --- a/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb
> +++ b/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb
> @@ -25,6 +25,8 @@ EXTRA_OECMAKE += "-DBUILD_DOCUMENTATION=OFF"
>
>  #--enable-apps --enable-syslog
>
> +ASNEEDED = ""
> +
>  do_install_append () {
>  rmdir ${D}${bindir}
>  }
> --
> 1.9.1
>
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] State of the world, Failed tasks 2018-04-11

2018-04-20 Thread Andrea Adami
(cut)
> === qemuarm64 (8) ===
> * 
> meta-openembedded/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb:do_compile
> * 
> meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb:do_configure

Hi,
I am working on the coming 2.0.17 version and the recipe now builds
for all supported archs.

https://github.com/LinuxPDA/meta-openembedded/tree/master/meta-initramfs/recipes-kernel/kexec

There are still nasty compile warnings to fix, some could lead to
runtime errors...I uploaded the logs.
Please review, thanks.

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


Re: [oe] [meta-handheld][PATCH] zaurusd: refresh patches (using devtool)

2018-04-12 Thread Andrea Adami
On Thu, Apr 12, 2018 at 10:59 AM, Koen Kooi <k...@dominion.thruhere.net> wrote:
> Op 10-04-18 om 23:01 schreef Andrea Adami:
>> Silence warnings about ingnored context.
>>
>> Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
>
>
>> --- a/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch
>> +++ b/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch
>> @@ -1,17 +1,17 @@
>> -From 85b94bed1feab70bc529a59fb80c26da825b9abe Mon Sep 17 00:00:00 2001
>> +From 668a7bc50ca8f36df5a0eae73a5fa251aada9cc4 Mon Sep 17 00:00:00 2001
>>  From: Dmitry Eremin-Solenikov <dbarysh...@gmail.com>
>>  Date: Fri, 5 Aug 2011 16:00:10 +0400
>>  Subject: [PATCH] zaurusd: add support for collie
>> -Upstream-Status: Pending
> Was that change intended?

No, not really.
Let say I have spotted it and planned to read the devtool code...

I think it is tolerable in this context, because unfortunately not all
patches have Upstream-Status.
(I am wondering if there is still Upstream for zaurusd...)

So I have left the result unchanged., planning to update the
Upstream-Status soon.

Cheers
Andrea

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


Re: [oe] State of the world, 2018-03-19

2018-04-12 Thread Andrea Adami
cut...

> === qemuarm64 (7) ===
> * 
> meta-openembedded/meta-filesystems/recipes-utils/aufs-util/aufs-util_git.bb:do_compile
> * 
> meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb:do_configure

I have update the recipe to 2.0.16 as in oe-core to get aarch64 support

https://github.com/LinuxPDA/meta-openembedded/commit/33f38283b5f811df4fea0876e35d5ff08fa000a7

Almost done, now build fails because net headers...
warning: implicit declaration of function 'if_nameindex'; did you
mean 'ifr_ifindex'?

Khem, should we add these missing bits to klibc?


> * 
> meta-openembedded/meta-oe/recipes-benchmark/libc-bench/libc-bench_20110206.bb:do_compile
> * 
> openembedded-core/meta/recipes-devtools/glide/glide_0.13.1.bb:do_package_qa
> * openembedded-core/meta/recipes-devtools/go/go_1.10.bb:do_package_qa
> * openembedded-core/meta/recipes-devtools/go/go-dep_0.4.1.bb:do_package_qa
> * 
> openembedded-core/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb:do_compile

About this, we have seen the issue are the security_flags in world build:

-fstack-protector-strong  -D_FORTIFY_SOURCE=2
-Wformat -Wformat-security -Werror=format-security

I'll work on this after having fixed the former...

Cheers
Andrea
>
...cut
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


[oe] [meta-handheld][PATCH] zaurusd: relax Autoconf macro to allow tslib >= 1.0

2018-04-10 Thread Andrea Adami
Fix build after 72ef78e tslib: Upgrade to 1.15 release

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../zaurusd/zaurusd/allow-newer-tslib.patch| 31 ++
 recipes-bsp/zaurusd/zaurusd_git.bb |  3 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 recipes-bsp/zaurusd/zaurusd/allow-newer-tslib.patch

diff --git a/recipes-bsp/zaurusd/zaurusd/allow-newer-tslib.patch 
b/recipes-bsp/zaurusd/zaurusd/allow-newer-tslib.patch
new file mode 100644
index 000..8269148
--- /dev/null
+++ b/recipes-bsp/zaurusd/zaurusd/allow-newer-tslib.patch
@@ -0,0 +1,31 @@
+From 368e025220842db13e8b5d95bfe12877d752a7c8 Mon Sep 17 00:00:00 2001
+From: Andrea Adami <andrea.ad...@gmail.com>
+Date: Wed, 11 Apr 2018 00:14:49 +0200
+Subject: [PATCH] zaurusd: relax Autoconf macro to allow tslib >= 1.0
+
+Fix build after 72ef78e tslib: Upgrade to 1.15 release
+
+| checking for "tslib-1.0"... no
+| configure: error: TSKeys requires tslib.
+
+Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 36f858c..b207dcf 100644
+--- a/configure.ac
 b/configure.ac
+@@ -45,7 +45,7 @@ if test "x$HAVE_TSKEYS" != "x"; then
+   #
+ # Checks for tslib
+   #
+-  PKG_CHECK_MODULES(TSLIB, "tslib-1.0", :, AC_MSG_ERROR([TSKeys requires 
tslib.]))
++  PKG_CHECK_MODULES(TSLIB, [tslib >= 1.0], :, AC_MSG_ERROR([TSKeys 
requires tslib.]))
+   AC_SUBST(TSLIB_CFLAGS)
+   AC_SUBST(TSLIB_LIBS)
+ fi
+-- 
+2.7.4
+
diff --git a/recipes-bsp/zaurusd/zaurusd_git.bb 
b/recipes-bsp/zaurusd/zaurusd_git.bb
index 8a49fdc..d69805b 100644
--- a/recipes-bsp/zaurusd/zaurusd_git.bb
+++ b/recipes-bsp/zaurusd/zaurusd_git.bb
@@ -23,7 +23,8 @@ SRC_URI = "git://git.yoctoproject.org/${BPN} \
file://01-check-toggle-landscape \
file://01-check-toggle-portait \
file://use-ts-symlink-instead-of-hardcoding.diff \
-   file://0001-zaurusd-add-support-for-collie.patch"
+   file://0001-zaurusd-add-support-for-collie.patch \
+   file://allow-newer-tslib.patch"
 
 
 S = "${WORKDIR}/git"
-- 
2.7.4

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


[oe] [meta-initramfs][PATCH] klibc-2.0.4: refresh patches (using devtool)

2018-04-10 Thread Andrea Adami
Silence warnings about ingnored context.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 ...ine-in_-structs-for-non-glibc-system-libs.patch |  60 
 ...c-Add-path-to-compiler-headers-via-isyste.patch |  12 +-
 ...c-Use-print-libgcc-file-name-instead-of-p.patch |  10 +-
 .../klibc-2.0.4/0001-always-use-bfd-linker.patch   |   8 +-
 ...arm-Do-not-set-a-fallback-march-and-mtune.patch |  10 +-
 ...0001-dash-Specify-format-string-in-fmtstr.patch |   8 +-
 .../0001-include-linux-sysinfo.h-directly.patch|   8 +-
 .../klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch |   8 +-
 .../klibc/klibc-2.0.4/armv4-fix-v4bx.patch |  17 ++-
 .../klibc/klibc-2.0.4/klcc-consider-sysroot.patch  |   8 ++
 .../klibc/klibc-2.0.4/klibc-config-eabi.patch  |  18 ++-
 .../klibc/klibc-2.0.4/klibc-linux-libc-dev.patch   |  23 ++--
 .../klibc/klibc-2.0.4/staging.patch| 151 +++--
 13 files changed, 185 insertions(+), 156 deletions(-)

diff --git 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch
 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch
index 8d1ec69..e7a0cce 100644
--- 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch
+++ 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Define-in_-structs-for-non-glibc-system-libs.patch
@@ -1,4 +1,4 @@
-From f414dea1316a48aba3e8e293201ebd51652d3ef4 Mon Sep 17 00:00:00 2001
+From 57e3a60b23891905733bfea7a1cb78c2377cc524 Mon Sep 17 00:00:00 2001
 From: Khem Raj <raj.k...@gmail.com>
 Date: Sun, 9 Jul 2017 15:17:29 -0700
 Subject: [PATCH] Define in_* structs for non-glibc system libs
@@ -10,14 +10,38 @@ glibc in mind, and does not provide adequate guards for musl
 to infer that these structs should be defined in linux/in.h
 
 Signed-off-by: Khem Raj <raj.k...@gmail.com>
+
 ---
- usr/include/netinet/in.h | 33 +
- 1 file changed, 33 insertions(+)
+ usr/include/net/if.h | 11 +++
+ usr/include/netinet/in.h | 36 
+ 2 files changed, 47 insertions(+)
 
-Index: git/usr/include/netinet/in.h
-===
 git.orig/usr/include/netinet/in.h
-+++ git/usr/include/netinet/in.h
+diff --git a/usr/include/net/if.h b/usr/include/net/if.h
+index 116a176..6246b12 100644
+--- a/usr/include/net/if.h
 b/usr/include/net/if.h
+@@ -1,6 +1,17 @@
+ #ifndef _NET_IF_H
+ #define _NET_IF_H
+ 
++#ifndef __GLIBC__
++#include 
++#undef __UAPI_DEF_IF_IFREQ
++#define __UAPI_DEF_IF_IFREQ1
++#undef __UAPI_DEF_IF_IFNAMSIZ
++#define __UAPI_DEF_IF_IFNAMSIZ 1
++#undef __UAPI_DEF_IF_IFMAP
++#define __UAPI_DEF_IF_IFMAP1
++#undef __UAPI_DEF_IF_NET_DEVICE_FLAGS
++#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
++#endif
+ #include 
+ #include 
+ #include 
+diff --git a/usr/include/netinet/in.h b/usr/include/netinet/in.h
+index 2952bb2..0c95bc9 100644
+--- a/usr/include/netinet/in.h
 b/usr/include/netinet/in.h
 @@ -5,6 +5,42 @@
  #ifndef _NETINET_IN_H
  #define _NETINET_IN_H
@@ -61,25 +85,3 @@ Index: git/usr/include/netinet/in.h
  #include 
  #include 
  #include/* Must be included *before*  */
-Index: git/usr/include/net/if.h
-===
 git.orig/usr/include/net/if.h
-+++ git/usr/include/net/if.h
-@@ -1,6 +1,17 @@
- #ifndef _NET_IF_H
- #define _NET_IF_H
- 
-+#ifndef __GLIBC__
-+#include 
-+#undef __UAPI_DEF_IF_IFREQ
-+#define __UAPI_DEF_IF_IFREQ1
-+#undef __UAPI_DEF_IF_IFNAMSIZ
-+#define __UAPI_DEF_IF_IFNAMSIZ 1
-+#undef __UAPI_DEF_IF_IFMAP
-+#define __UAPI_DEF_IF_IFMAP1
-+#undef __UAPI_DEF_IF_NET_DEVICE_FLAGS
-+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS 1
-+#endif
- #include 
- #include 
- #include 
diff --git 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
index 7cd4c0e..181dcfb 100644
--- 
a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
+++ 
b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch
@@ -1,4 +1,4 @@
-From 10fb440795a7796140bd657ee028847ec7c34447 Mon Sep 17 00:00:00 2001
+From 4b4147b76518d31a88fb2c58cdbf2236e159a25c Mon Sep 17 00:00:00 2001
 From: Khem Raj <raj.k...@gmail.com>
 Date: Fri, 8 Sep 2017 23:10:54 -0700
 Subject: [PATCH] Kbuild.klibc: Add path to compiler headers via -isystem
@@ -7,12 +7,13 @@ We need to include this path so it can find compiler headers 
e.g.
 stdarg.h which is called from wrapper stdarg.h using include_next
 
 Signed-off-by: Khem Raj <raj.k...@

[oe] [meta-handheld][PATCH] zaurusd: refresh patches (using devtool)

2018-04-10 Thread Andrea Adami
Silence warnings about ingnored context.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 .../0001-zaurusd-add-support-for-collie.patch  |  16 +-
 recipes-bsp/zaurusd/zaurusd/add-poodle.patch   |  14 +-
 .../zaurusd/zaurusd/alsa-6000x-default.state.patch | 166 +++--
 .../zaurusd/zaurusd/alsa-cxx00-default.state.patch |  61 
 .../zaurusd/zaurusd/avoid-rotated-server.patch | 106 +++--
 .../zaurusd/zaurusd/disable-alsa-handling.patch|  16 +-
 recipes-bsp/zaurusd/zaurusd/scripts_pidof.patch|  10 +-
 .../use-ts-symlink-instead-of-hardcoding.diff  | 111 ++
 8 files changed, 300 insertions(+), 200 deletions(-)

diff --git 
a/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch 
b/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch
index 36ded13..0d242f5 100644
--- a/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch
+++ b/recipes-bsp/zaurusd/zaurusd/0001-zaurusd-add-support-for-collie.patch
@@ -1,17 +1,17 @@
-From 85b94bed1feab70bc529a59fb80c26da825b9abe Mon Sep 17 00:00:00 2001
+From 668a7bc50ca8f36df5a0eae73a5fa251aada9cc4 Mon Sep 17 00:00:00 2001
 From: Dmitry Eremin-Solenikov <dbarysh...@gmail.com>
 Date: Fri, 5 Aug 2011 16:00:10 +0400
 Subject: [PATCH] zaurusd: add support for collie
-Upstream-Status: Pending
 
 Note: alsa mixer support is disabled, as collie doesn't support sound (yet).
 
 Signed-off-by: Dmitry Eremin-Solenikov <dbarysh...@gmail.com>
+
 ---
- config/mach-config/mach-collie-functions |4 
- config/mach-config/mach-collie-vars.in   |3 +++
- configure.ac |1 +
- 3 files changed, 8 insertions(+), 0 deletions(-)
+ config/mach-config/mach-collie-functions | 4 
+ config/mach-config/mach-collie-vars.in   | 3 +++
+ configure.ac | 1 +
+ 3 files changed, 8 insertions(+)
  create mode 100644 config/mach-config/mach-collie-functions
  create mode 100644 config/mach-config/mach-collie-vars.in
 
@@ -35,7 +35,7 @@ index 000..ec1bfb8
 +
 +ALSA_MIXER_INIT=@appconfdir@/alsa/5500-default.state
 diff --git a/configure.ac b/configure.ac
-index 78ea2ae..5160fab 100644
+index 36f858c..8ee281b 100644
 --- a/configure.ac
 +++ b/configure.ac
 @@ -65,6 +65,7 @@ AC_CONFIG_FILES([
@@ -46,5 +46,3 @@ index 78ea2ae..5160fab 100644
config/mach-config/mach-corgi-vars
config/mach-config/mach-husky-vars
config/mach-config/mach-poodle-vars
---
-1.7.2.5
diff --git a/recipes-bsp/zaurusd/zaurusd/add-poodle.patch 
b/recipes-bsp/zaurusd/zaurusd/add-poodle.patch
index 3793faf..6698aeb 100644
--- a/recipes-bsp/zaurusd/zaurusd/add-poodle.patch
+++ b/recipes-bsp/zaurusd/zaurusd/add-poodle.patch
@@ -1,5 +1,15 @@
 zaurusd/config/mach-config/mach-poodle-vars.in (revision 418)
-+++ zaurusd/config/mach-config/mach-poodle-vars.in (working copy)
+From 9edcb004b09cef8e01598482935fc6ba2a6beb81 Mon Sep 17 00:00:00 2001
+From: Paul Eggleton <paul.eggle...@linux.intel.com>
+Date: Sun, 24 Jul 2011 19:12:32 +0100
+
+---
+ config/mach-config/mach-poodle-vars.in | 8 +++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/config/mach-config/mach-poodle-vars.in 
b/config/mach-config/mach-poodle-vars.in
+index 949460a..cbb1478 100644
+--- a/config/mach-config/mach-poodle-vars.in
 b/config/mach-config/mach-poodle-vars.in
 @@ -1,3 +1,9 @@
  MACHINE=poodle
  
diff --git a/recipes-bsp/zaurusd/zaurusd/alsa-6000x-default.state.patch 
b/recipes-bsp/zaurusd/zaurusd/alsa-6000x-default.state.patch
index 29c98f7..0409100 100644
--- a/recipes-bsp/zaurusd/zaurusd/alsa-6000x-default.state.patch
+++ b/recipes-bsp/zaurusd/zaurusd/alsa-6000x-default.state.patch
@@ -1,6 +1,16 @@
 zaurusd/config/alsa/6000x-default.state2009-04-25 22:57:30.0 
+0100
-+++ zaurusd/config/alsa/6000x-default.state2009-05-14 10:41:29.0 
+0100
-@@ -6,8 +6,8 @@
+From dfd71335507681ec984195265ed5866e677d9bb6 Mon Sep 17 00:00:00 2001
+From: Paul Eggleton <paul.eggle...@linux.intel.com>
+Date: Sun, 24 Jul 2011 19:12:32 +0100
+
+---
+ config/alsa/6000x-default.state | 192 +---
+ 1 file changed, 101 insertions(+), 91 deletions(-)
+
+diff --git a/config/alsa/6000x-default.state b/config/alsa/6000x-default.state
+index d2bf5e2..c38265d 100644
+--- a/config/alsa/6000x-default.state
 b/config/alsa/6000x-default.state
+@@ -6,8 +6,8 @@ state.Tosa {
comment.range '0 - 31'
iface MIXER
name 'Speaker Playback Volume'
@@ -11,7 +21,7 @@
}
control.2 {
comment.access 'read write'
-@@ -24,8 +24,8 @@
+@@ -24,8 +24,8 @@ state.Tosa {
comment.range '0 - 31'
iface MIXER
name 'Headphone Playback Volume'
@@ -22,7 +32,7 @@
}
control.4 {
comment.access 'read write'
-@@ -37,13 +37,23 @@
+@@ -37,13 +37,23 @@ state.Tosa

[oe] [RFC] Rename meta-openembedded to openembedded-extras

2018-02-22 Thread Andrea Adami
All,
it seems there is some consensus about reordering/cleaning the
"OpenEmbedded layers".

I think that before starting any cleaning *inside* we should finally
clean up the confusion about meta-oe meta-openembedded
openembedded-layers, etc..

I think it would be advisable to rename the repository from
meta-openembedded to openembedded-extras, matching the
openembedded-core naming schema.

Regards
Andrea


P.S.
One layer of this repo would be the (in)famous meta-oe.
I can't imagine right now a definition for it: it contains old
versions of oe-core recipes, expunged recipes, tools and libraries
needed by other layers (i.e. tslib), etc. etc.
This one will need a separate thread.
-- 
___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel


Re: [oe] Splitting meta-oe?

2018-02-21 Thread Andrea Adami
On Wed, Feb 21, 2018 at 10:06 AM, Martin Jansa  wrote:
>> I'm actually very worried about these (re)tired maintainers. If the
> layers were more independent it would allow some of the patch handling
> responsibilities and testing responsibilities to move to other people,
> reducing the load on those maintainers.
>
> Armin can update his own view, but for me the main issue wasn't the "patch
> handling" part, but actually the lack of patches for the new issues (often
> caused by new changes in oe-core).
>

That's one point.
If I may add my experience as maintainer of two minor layers
(meta-handheld and meta-initramfs), I have to say there have been many
cases where an upgrade to oe-core did break one of these layers.
Just a variable rename for example...this fall-outs could have been
avoided if the oe-core dev would have spent a minute grepping the
repository,
Heh..now we have to define what is the public repository, which layers
have to be checked...

And about layer interdependencies...well..it is very delicate.
For example meta-handheld, a BSP layer, must depend since some time on
meta-oe. Why? Because tslib was removed from oe-core.
This is ugly...here a more separated layering structure would help

So I somehow feel we should refine what is in the repository but
absolutely not split it around.
Even, I think we should host all public layers (definition lacks
today) in the OpenEmbedded Git Repository .

My 2 cents
Andrea

> Yes, the "patch handling" part was the most boring piece, but patches from
> regular contributors or co-maintainers were always easy to handle and
> rarely caused any extra work.
>
> The untested drive-by contributions from people who don't even reply to
> review comments are completely different category, but separate git
> repositories won't drive those away (until it gets so confusing that these
> people will even fail to find correct repository and just gave up trying to
> contribute anything at all). Nothing is blocking more people to collect,
> fix, test these drive-by contributions and then send consolidated
> pull-request which will be easily merged to shared repository - but I never
> seen this happen and I don't know how separate git repositories will help
> with this.
>
> In the end after spending a lot of own time doing this boring part, I
> always felt responsible for fixing as many build failures detected in world
> build as I could, but that's never-ending uphill battle where very few
> people ever help (big thanks to those exceptions who sometimes help). And
> what you get for that extra afford to get it building as much as possible
> in spare time? Comments about how garbage meta-oe layers are.
>
> We need patches not more git repos!
>
> On Wed, Feb 21, 2018 at 9:49 AM, Martin Jansa 
> wrote:
>
>> > I need an updated python- package for an unrelated package
>>
>> And how far will you go?
>>
>> If you want just newer python- and nothing else, will you take other
>> changes to other python-* recipes from meta-python layer? There is a lot of
>> recipes there, if you're so picky about updates, then you shouldn't update
>> whole oe-core as well.
>>
>> On Wed, Feb 21, 2018 at 1:51 AM, Bruce Ashfield 
>> wrote:
>>
>>> On Tue, Feb 20, 2018 at 1:52 PM, Khem Raj  wrote:
>>> > On 2/20/18 9:13 AM, Bruce Ashfield wrote:
>>> >> On Tue, Feb 20, 2018 at 11:50 AM, akuster808 
>>> wrote:
>>> >>>
>>> >>>
>>> >>> On 02/20/2018 02:45 AM, Burton, Ross wrote:
>>>  Hi,
>>> 
>>>  Is now a good time to talk about splitting up meta-oe?  Some layers
>>> are
>>>  actively developed and maintained (one example: meta-python), others
>>> are
>>>  basically bitrotting and only get touched when something else causes
>>> them
>>>  to break world builds (one example: meta-gnome).  I've long felt that
>>>  meta-oe should be split up and the high quality layers managed in
>>> their own
>>>  repositories so patches to them don't get held up by breakage in
>>> other
>>>  sub-layers.
>>> >>> You make it sound like meta-oe is not a high quality layer.  I could
>>> >>> make the same claim about oe-core master.
>>> >>>
>>> >>> I don't see the connection in patches being held up due to breakage in
>>> >>> other sub layers. This only happens if the dependency fail to build.
>>> >>>
>>> >>> You lose control over the quality in current layers that reside in
>>> >>> meta-openbedded just like you have no control over all the other
>>> layers
>>> >>> residing in the community. It makes maintaining stable versions very
>>> >>> difficult. Well, unless The Yocto Project takes over them.. I guess
>>> that
>>> >>> would work then.
>>> >>>
>>> 
>>>  Another advantage of splitting out the high quality layers is that
>>> we'd
>>>  like to look at running more community layers through the Yocto
>>>  autobuilder, and granular layers make that easier to manage.

[oe] [meta-handheld][PATCH] linux-qi-ben-nanonote_3.12: fix bb warning

2018-02-06 Thread Andrea Adami
Adapt after oe-core changes:
 6c8c899: Add support for multiple kernel packages

Fixes following WARNING:
 /oe/meta-handheld/recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb:
 Variable key FILES_${KERNEL_PACKAGE_NAME}-image ()
 replaces original key FILES_kernel-image (/boot/uImage*)

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb 
b/recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb
index 0a232c0..8d97b26 100644
--- a/recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb
+++ b/recipes-kernel/linux/linux-qi-ben-nanonote_3.12.bb
@@ -18,7 +18,7 @@ S = "${WORKDIR}/git"
 
 inherit kernel
 
-FILES_kernel-image = "/boot/uImage*"
+FILES_${KERNEL_PACKAGE_NAME}-image = "/boot/uImage*"
 
 do_configure_prepend() {
install -m 0644 ${S}/arch/mips/configs/qi_lb60_defconfig ${S}/.config
-- 
2.7.4

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


[oe] [meta-handheld] zaurus-installer: replace deprecated base_conditional with appends

2018-02-03 Thread Andrea Adami
Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 recipes-bsp/zaurus-utils/zaurus-installer.bb | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/recipes-bsp/zaurus-utils/zaurus-installer.bb 
b/recipes-bsp/zaurus-utils/zaurus-installer.bb
index 2956f15..24d0fe1 100644
--- a/recipes-bsp/zaurus-utils/zaurus-installer.bb
+++ b/recipes-bsp/zaurus-utils/zaurus-installer.bb
@@ -1,8 +1,11 @@
 DESCRIPTION = "Installkit for kexecboot-kernel"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
-DEPENDS = "${@base_conditional('MACHINE', 'collie', 'linux-kexecboot', 
'zaurus-updater linux-kexecboot', d)}"
-DEPENDS += "${@base_conditional('MACHINE', 'spitz', 'zaurus-legacy-tar', '', 
d)}"
+
+DEPENDS = "zaurus-updater linux-kexecboot"
+DEPENDS_collie = "linux-kexecboot"
+DEPENDS_append_spitz = " zaurus-legacy-tar"
+
 PV = "2017.05"
 
 INHIBIT_DEFAULT_DEPS = "1"
-- 
2.7.4

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


[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 <andrea.ad...@gmail.com>
---
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 <andrea.ad...@gmail.com>
 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 <andrea.ad...@gmail.com>
 ---
- 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 
meta-initramfs/recipes-devtoo

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

2018-01-27 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
rebase patches.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
Changelog;
v1 initial patch
v2 fix comments and update Upstream_Status

 ...ch => 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 | 61 ++
 ...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, 209 insertions(+), 43 deletions(-)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0001-Makefile-only-build-ubi-utils.patch
 => 0001-Makefile-build-ubi-utils-only.patch} (86%)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0003-libubi.c-add-klibc-specific-fixes.patch
 => 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
 => 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
 => 0005-common.h-more-workarounds-for-klibc-compatibility.patch} (71%)
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0008-ubi-utils-ubiformat.c-convert-to-integer-arithmetic.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/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/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/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/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 <andrea.ad...@gmail.com>
 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 <andrea.ad...@gmail.com>
 ---
- 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/0002-common.mk-for-klibc-CC-is-klcc.patch
index f46824b..c23d11f 100644
--- 
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/0002-common.mk-for-klibc-CC-is-klcc.patch
@@ -1,11 +1,11 @@
-From f3609c7c0450b4c31e1d4603fcf2cfb1ba46f994 Mon Sep 17 00:00:00 2001
+From 89c76bbe82a2029a25b0654eb0a1d0b22d6e6877 Mon Sep 17 00:00:00 2001
 From: Andrea Adami <andrea.ad...@gmail.com>
 Date: Sun, 29 Jun 2014 00:37:28 +0200
-Subject: [PATCH 2/6] common.mk: for klibc $(CC) is klcc
+Subject: [PATCH 2/9] common.mk: for klibc $(CC) is klcc
 
 Do not hardcode: assign the value to the variable if it is not already defined.
 
-Upstream-Status: P

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

2018-01-27 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
rebase patches.

Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
---
 ...ch => 0001-Makefile-build-ubi-utils-only.patch} | 19 ---
 .../0002-common.mk-for-klibc-CC-is-klcc.patch  |  8 +--
 ...ubi.c-add-klibc-specific-fixes-for-ioctl.patch} |  8 +--
 ...atibility-to-dietlibc-klibc-musl-libc-af.patch} | 16 +++---
 ...more-workarounds-for-klibc-compatibility.patch} | 21 
 ...rser-remove-unused-function-needing-float.patch |  6 +--
 ...ls-common.c-convert-to-integer-arithmetic.patch | 59 ++
 ...td-utils-improve-compatibility-with-klibc.patch | 36 +
 ...arnings-about-implicit-non-const-casting-.patch | 47 +
 .../recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb  | 11 ++--
 10 files changed, 193 insertions(+), 38 deletions(-)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0001-Makefile-only-build-ubi-utils.patch
 => 0001-Makefile-build-ubi-utils-only.patch} (86%)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0003-libubi.c-add-klibc-specific-fixes.patch
 => 0003-libubi.c-add-klibc-specific-fixes-for-ioctl.patch} (93%)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0004-common.h-klibc-fixes-1.patch
 => 0004-Restore-compatibility-to-dietlibc-klibc-musl-libc-af.patch} (87%)
 rename 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/{0005-common.h-klibc-fixes-2.patch
 => 0005-common.h-more-workarounds-for-klibc-compatibility.patch} (72%)
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0007-mtd-utils-common.c-convert-to-integer-arithmetic.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/0008-mtd-utils-improve-compatibility-with-klibc.patch
 create mode 100644 
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/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/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/0001-Makefile-build-ubi-utils-only.patch
index 6e1b9ff..e47aa86 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/0001-Makefile-build-ubi-utils-only.patch
@@ -1,7 +1,7 @@
-From c4e6bd9378645d577e9d9f85da85f1438afe7c50 Mon Sep 17 00:00:00 2001
+From 826cfc8cf07ca272fe21cad6718730ac0800ee5e Mon Sep 17 00:00:00 2001
 From: Andrea Adami <andrea.ad...@gmail.com>
 Date: Sun, 29 Jun 2014 00:32:29 +0200
-Subject: [PATCH 1/6] Makefile: build ubi-utils only
+Subject: [PATCH 1/8] 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 <andrea.ad...@gmail.com>
 ---
- 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/0002-common.mk-for-klibc-CC-is-klcc.patch
index f46824b..6624b90 100644
--- 
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/0002-common.mk-for-klibc-CC-is-klcc.patch
@@ -1,7 +1,7 @@
-From f3609c7c0450b4c31e1d4603fcf2cfb1ba46f994 Mon Sep 17 00:00:00 2001
+From c0c18cb70fe0c066baf57c196e3d96ad58d704bf Mon Sep 17 00:00:00 2001
 From: Andrea Adami <andrea.ad...@gmail.com>
 Date: Sun, 29 Jun 2014 00:37:28 +0200
-Subject: [PATCH 2/6] common.mk: for klibc $(CC) is klcc
+Subject: [PATCH 2/8] common.mk: for klibc $(CC) is klcc
 
 Do not hardcode: assign the value to the variable if it is not already defined.
 
@@ -13,7 +13,7 @@ Signed-off-by: Andrea Adami <andrea.ad...@gmail.com>
  1 file changed, 1 insertion(+), 1

Re: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: update to fix build issues after core changes.

2018-01-05 Thread Andrea Adami
On Thu, Jan 4, 2018 at 11:28 PM, Manjukumar Harthikote Matha
 wrote:
>
>
>> -Original Message-
>> From: openembedded-devel-boun...@lists.openembedded.org
>> [mailto:openembedded-devel-boun...@lists.openembedded.org] On Behalf Of
>> Armin Kuster
>> Sent: Thursday, January 04, 2018 9:32 AM
>> To: akus...@mvista.com; openembedded-devel@lists.openembedded.org
>> Subject: [oe] [meta-initramfs][PATCH] kexec-tools-klibc: update to fix build 
>> issues
>> after core changes.
>>
>> Parsing recipes...ERROR: ParseError at ../meta-initramfs/recipes-
>> kernel/kexec/kexec-tools-klibc_2.0.2.bb:2: Could not include required file 
>> recipes-
>> kernel/kexec/kexec-tools.inc
>>
>> This was introduced by:
>> http://cgit.openembedded.org/openembedded-
>> core/commit/?id=491f6d523b72b91dc7b186a6f273756435804581
>>
>> removed the kexec-tools.inc so place those changes into the recipe.
>>
>> Signed-off-by: Armin Kuster 
>
> Tested-by: Jaewon Lee 
> Acked-by: Manjukumar Matha 
>
> Thanks,
> Manju
>
>
>> ---
>>  .../kexec/kexec-tools-klibc_2.0.2.bb   | 33 
>> +++---
>>  1 file changed, 29 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb 
>> b/meta-
>> initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
>> index 49c53a3..1c37531 100644
>> --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
>> +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
>> @@ -1,10 +1,16 @@
>>  # the binaries are statically linked against klibc -require 
>> recipes-kernel/kexec/kexec-
>> tools.inc
>>  SUMMARY = "Kexec tools, statically compiled against klibc"
>> -SRC_URI[md5sum] = "92eff93b097475b7767f8c98df84408a"
>> -SRC_URI[sha256sum] =
>> "09e180ff36dee087182cdc939ba6c6917b6adbb5fc12d589f31fd3659b6471f2"
>> +AUTHOR = "Eric Biederman"
>> +HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/kexec/;
>> +SECTION = "kernel/userland"
>> +LICENSE = "GPLv2"
>> +LIC_FILES_CHKSUM =
>> "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \
>> +
>> file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687a
>> d3e09"
>> +DEPENDS = "zlib xz"
>>
>> -inherit klibc
>> +PR = "r1"
>> +
>> +inherit klibc autotools
>>
>>  FILESPATH =. "${FILE_DIRNAME}/kexec-tools-${PV}:"
>>
>> @@ -35,7 +41,26 @@ EXTRA_OECONF += "--without-zlib --without-lzma --
>> without-xen"
>>  CFLAGS += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -
>> I${STAGING_DIR_HOST}${libdir}/klibc/include/bits32"
>>  CFLAGS_x86-64 += "-I${STAGING_DIR_HOST}${libdir}/klibc/include -
>> I${STAGING_DIR_HOST}${libdir}/klibc/include/bits64"
>>
>> +do_compile_prepend() {
>> +# Remove the prepackaged config.h from the source tree as it overrides
>> +# the same file generated by configure and placed in the build tree
>> +rm -f ${S}/include/config.h
>> +
>> +# Remove the '*.d' file to make sure the recompile is OK
>> +for dep in `find ${B} -type f -name '*.d'`; do
>> +dep_no_d="`echo $dep | sed 's#.d$##'`"
>> +# Remove file.d when there is a file.o
>> +if [ -f "$dep_no_d.o" ]; then
>> +rm -f $dep
>> +fi
>> +done
>> +}
>> +
>>  PACKAGES =+ "kexec-klibc kdump-klibc"
>>
>>  FILES_kexec-klibc = "${sbindir}/kexec"
>>  FILES_kdump-klibc = "${sbindir}/kdump"
>> +
>> +INSANE_SKIP_${PN} = "arch"
>> +
>> +COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*|powerpc.*|mips.*)-
>> (linux|freebsd.*)'
>> --
>> 2.7.4
>>
>> --
>> ___
>> Openembedded-devel mailing list
>> Openembedded-devel@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> --
> ___
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Thanks for fixing the parsing error!
There is now the open issue " configure: error: unsupported
architecture aarch64 ".

I could not yet work on meta-initramfs fixes but I hope to be able to
update both failing recipes soon (kexec-tools-klibc and
ubi-utils-klibc).
Otherwise I'll have to mask out aarch64 (or even restrict both recipes
to arm only because apparently these are only used by armv4/v5 by
devices in meta-handheld).).

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


Re: [oe] State of bitbake world, Failed tasks 2017-12-17

2017-12-20 Thread Andrea Adami
On Tue, Dec 19, 2017 at 8:49 PM, akuster808  wrote:
> This build included some meta-python changes that had v2 after the build
> started.
>
>
> == Failed tasks 2017-12-17 ==
>
> INFO: jenkins-job.sh-1.8.43 Complete log available at 
> http://logs.nslu2-linux.org/buildlogs/oe/world/sumo/log.report.20171219_092527.log
>
> === common (7) ===
> * 
> meta-openembedded/meta-gnome/recipes-gnome/eds/evolution-data-server_git.bb:do_compile
> * 
> meta-openembedded/meta-gnome/recipes-gnome/libgnome/libgnome_2.32.1.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-daemons/keepalived/keepalived_1.3.5.bb:do_configure
> * 
> meta-openembedded/meta-networking/recipes-daemons/postfix/postfix_3.2.2.bb:do_install
> * 
> meta-openembedded/meta-networking/recipes-support/ntop/ntop_5.0.1.bb:do_configure
> * 
> meta-openembedded/meta-networking/recipes-support/tinyproxy/tinyproxy_1.8.4.bb:do_prepare_recipe_sysroot
> * 
> meta-openembedded/meta-xfce/recipes-xfce/gtk-xfce-engine/gtk-xfce-engine_3.2.0.bb:do_compile
>
> === common-x86 (0) ===
>
> === qemuarm (2) ===
> * 
> meta-openembedded/meta-oe/recipes-devtools/android-tools/android-tools_5.1.1.r37.bb:do_compile
> * meta-qt5/recipes-qt/qt5/qtimageformats_git.bb:do_package_qa
>
> === qemuarm64 (4) ===
> * 
> meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.5.2.bb:do_install
> * 
> meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb:do_configure
> * 
> meta-openembedded/meta-oe/recipes-devtools/luajit/luajit_2.0.5.bb:do_compile
> * 
> openembedded-core/meta/recipes-kernel/kexec/kexec-tools_2.0.15.bb:do_compile
>

Hello,

I had no time before but I plan to fix/mask the 2 failing -klibc
recipes for aarch64 very soon.
Cheers
Andrea


> === qemux86 (29) ===
> * 
> meta-browser/recipes-browser/chromium/chromium-ozone-wayland_64.0.3274.0.r517731.igalia.1.bb:do_compile
> * 
> meta-browser/recipes-browser/chromium/chromium-x11_62.0.3202.94.bb:do_compile
> * meta-browser/recipes-browser/firefox/firefox_45.9.0esr.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb:do_package
> * 
> meta-openembedded/meta-networking/recipes-connectivity/samba/samba_4.7.0.bb:do_patch
> * 
> meta-openembedded/meta-networking/recipes-daemons/iscsi-initiator-utils/iscsi-initiator-utils_2.0.874.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-daemons/opensaf/opensaf_5.17.07.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-daemons/vsftpd/vsftpd_3.0.3.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-netkit/netkit-rsh/netkit-rsh_0.17.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-netkit/netkit-rusers/netkit-rusers_0.17.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-netkit/netkit-telnet/netkit-telnet_0.17.bb:do_configure
> * 
> meta-openembedded/meta-networking/recipes-protocols/mdns/mdns_765.50.9.bb:do_compile
> * 
> meta-openembedded/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-benchmark/libhugetlbfs/libhugetlbfs_git.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-connectivity/umip/umip_1.0.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvdial_1.61.bb:do_compile
> * meta-openembedded/meta-oe/recipes-devtools/pm-qa/pm-qa_git.bb:do_compile
> * meta-openembedded/meta-oe/recipes-extended/mraa/mraa_git.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-extended/tiptop/tiptop_2.3.bb:do_compile
> * meta-openembedded/meta-oe/recipes-kernel/crash/crash_7.1.9.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-kernel/minicoredumper/minicoredumper_2.0.0.bb:do_compile
> * 
> meta-openembedded/meta-oe/recipes-multimedia/alsa/alsa-oss_1.0.17.bb:do_compile
> * 
> meta-openembedded/meta-python/recipes-devtools/python/python3-systemd_234.bb:do_compile
> * 
> meta-openembedded/meta-python/recipes-devtools/python/python-systemd_234.bb:do_compile
> * meta-qt5/recipes-qt/qt5/qtlocation_git.bb:do_compile
> * 
> openembedded-core/meta/recipes-devtools/systemd-bootchart/systemd-bootchart_231.bb:do_compile
> * 
> openembedded-core/meta/recipes-graphics/cogl/cogl-1.0_1.22.2.bb:do_compile
> * 
> openembedded-core/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.12.3.bb:do_compile
> * openembedded-core/meta/recipes-multimedia/x264/x264_git.bb:do_package_qa
>
> === qemux86_64 (1) ===
> * 
> meta-browser/recipes-browser/chromium/chromium-ozone-wayland_64.0.3274.0.r517731.igalia.1.bb:do_configure
>
> === Number of failed tasks (64) ===
> {| class=wikitable
> |-
> || qemuarm  || 9 || 
> http://logs.nslu2-linux.org/buildlogs/oe/world/sumo/log.world.qemuarm.20171217_061219.log/
>  || http://errors.yoctoproject.org/Errors/Build/49645/
> |-
> || 

  1   2   3   4   5   6   7   8   9   >