[OE-core] [PATCH] linux-firmware: fix typo

2018-02-26 Thread Nicolas Dechesne
Signed-off-by: Nicolas Dechesne 
---
 meta/recipes-kernel/linux-firmware/linux-firmware_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb 
b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
index cc97c91fd3..816c7a0d78 100644
--- a/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
+++ b/meta/recipes-kernel/linux-firmware/linux-firmware_git.bb
@@ -729,7 +729,7 @@ FILES_${PN}-qcom-venus-4.2 = 
"${nonarch_base_libdir}/firmware/qcom/venus-4.2/*"
 FILES_${PN}-qcom-adreno-a3xx = "${nonarch_base_libdir}/firmware/qcom/a300_*.fw 
${nonarch_base_libdir}/firmware/a300_*.fw"
 FILES_${PN}-qcom-adreno-a530 = "${nonarch_base_libdir}/firmware/qcom/a530*.*"
 RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
-RDEPENDS_${PN}-qcom-venus-1.8 = "${PN}-qcom-license"
+RDEPENDS_${PN}-qcom-venus-4.2 = "${PN}-qcom-license"
 RDEPENDS_${PN}-qcom-adreno-a3xx = "${PN}-qcom-license"
 RDEPENDS_${PN}-qcom-adreno-a530 = "${PN}-qcom-license"
 
-- 
2.14.2

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


[OE-core] ✗ patchtest: failure for "icecc.bbclass: Ignore more ice..." and 1 more (rev3)

2018-02-26 Thread Patchwork
== Series Details ==

Series: "icecc.bbclass: Ignore more ice..." and 1 more (rev3)
Revision: 3
URL   : https://patchwork.openembedded.org/series/11106/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Series does not apply on top of target branch 
[test_series_merge_on_head] 
  Suggested fixRebase your series on top of targeted branch
  Targeted branch  master (currently at b30153a157)

* Patch[2/2] Ignore icecc-create-env in task signature
 Issue Shortlog does not follow expected format 
[test_shortlog_format] 
  Suggested fixCommit shortlog (first line of commit message) should follow 
the format ": "



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] ✗ patchtest: failure for "icecc.bbclass: Ignore more ice..." and 1 more (rev2)

2018-02-26 Thread Patchwork
== Series Details ==

Series: "icecc.bbclass: Ignore more ice..." and 1 more (rev2)
Revision: 2
URL   : https://patchwork.openembedded.org/series/11106/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[2/2] Ignore icecc-create-env in task signature
 Issue Shortlog does not follow expected format 
[test_shortlog_format] 
  Suggested fixCommit shortlog (first line of commit message) should follow 
the format ": "



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH v2 2/2] sstatesig: Ignore icecc-create-env in task sigs

2018-02-26 Thread Joshua Watt
Changes to the icecc-create-env recipe should not cause all recipes to
rebuild just because the have inherited icecc.

Signed-off-by: Joshua Watt 
---
 meta/lib/oe/sstatesig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 3a8778eae01..6be9d32133a 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -29,7 +29,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, 
depname, dataCache):
 return True
 
 # Quilt (patch application) changing isn't likely to affect anything
-excludelist = ['quilt-native', 'subversion-native', 'git-native', 
'ccache-native']
+excludelist = ['quilt-native', 'subversion-native', 'git-native', 
'ccache-native', 'icecc-create-env-native']
 if depname in excludelist and recipename != depname:
 return False
 
-- 
2.14.3

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


[OE-core] [PATCH v2 1/2] icecc.bbclass: Ignore more icecream vars in hashes

2018-02-26 Thread Joshua Watt
Changing ICECC_ENV_VERSION or ICECC_SCHEDULER_HOST should not cause
recipes to rebuild

Signed-off-by: Joshua Watt 
---
 meta/classes/icecc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 36dcfbe6048..6e35e3be486 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -30,7 +30,7 @@
 
 BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED 
ICECC_USER_PACKAGE_BL \
 ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL ICECC_PATH ICECC_ENV_EXEC \
-ICECC_CARET_WORKAROUND ICECC_CFLAGS"
+ICECC_CARET_WORKAROUND ICECC_CFLAGS ICECC_ENV_VERSION ICECC_SCHEDULER_HOST"
 
 ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env"
 
-- 
2.14.3

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


[OE-core] [krogoth][PATCH] logrotate: replace fedorahosted.org SRC_URI with github.com source

2018-02-26 Thread Andre McCurdy
From: Choong YinThong 

fedorahosted.org was retired on March 1st, 2017. This is to
update the SRC_URI to point to github.com.
Update the ${PN} to ${BPN} in order to pass the autobuilder
mulitlib enable configuration.

[YOCTO #11226]

Signed-off-by: Choong YinThong 
Signed-off-by: Richard Purdie 
Signed-off-by: Armin Kuster 
(cherry picked from commit b935c1e9dd17afa85a9ffe213d5f94051f585529)
Signed-off-by: Andre McCurdy 
---
 meta/recipes-extended/logrotate/logrotate_3.9.1.bb | 17 +
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-extended/logrotate/logrotate_3.9.1.bb 
b/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
index 5f1a601..5bd3381 100644
--- a/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
+++ b/meta/recipes-extended/logrotate/logrotate_3.9.1.bb
@@ -1,6 +1,6 @@
 SUMMARY = "Rotates, compresses, removes and mails system log files"
 SECTION = "console/utils"
-HOMEPAGE = "https://fedorahosted.org/logrotate/;
+HOMEPAGE = "https://github.com/logrotate/logrotate/issues;
 LICENSE = "GPLv2"
 
 # TODO: logrotate 3.8.8 adds autotools/automake support, update recipe to use 
it.
@@ -10,14 +10,23 @@ DEPENDS="coreutils popt"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
 
-SRC_URI = 
"https://fedorahosted.org/releases/l/o/logrotate/logrotate-${PV}.tar.gz \
+# When updating logrotate to latest upstream, SRC_URI should point to
+# a proper release tarball from https://github.com/logrotate/logrotate/releases
+# and we have to take the snapshot for now because there is no such
+# tarball available for 3.9.1.
+
+S = "${WORKDIR}/${BPN}-r3-9-1"
+
+UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases;
+
+SRC_URI = "https://github.com/${BPN}/${BPN}/archive/r3-9-1.tar.gz \
file://act-as-mv-when-rotate.patch \
file://update-the-manual.patch \
file://disable-check-different-filesystems.patch \
 "
 
-SRC_URI[md5sum] = "4492b145b6d542e4a2f41e77fa199ab0"
-SRC_URI[sha256sum] = 
"022769e3288c80981559a8421703c88e8438b447235e36dd3c8e97cd94c52545"
+SRC_URI[md5sum] = "8572b7c2cf9ade09a8a8e10098500fb3"
+SRC_URI[sha256sum] = 
"5bf8e478c428e7744fefa465118f8296e7e771c981fb6dffb7527856a0ea3617"
 
 PACKAGECONFIG ?= "\
 ${@bb.utils.contains('DISTRO_FEATURES', 'acl', 'acl', '', d)} \
-- 
1.9.1

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


[OE-core] ✗ patchtest: failure for "icecc.bbclass: Ignore more ice..." and 1 more

2018-02-26 Thread Patchwork
== Series Details ==

Series: "icecc.bbclass: Ignore more ice..." and 1 more
Revision: 1
URL   : https://patchwork.openembedded.org/series/11106/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Patch[2/2] Ignore icecc-create-env in task signature
 Issue Shortlog does not follow expected format 
[test_shortlog_format] 
  Suggested fixCommit shortlog (first line of commit message) should follow 
the format ": "



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH 2/2] Ignore icecc-create-env in task signature

2018-02-26 Thread Joshua Watt
Changes to the icecc-create-env recipe should not cause all recipes to
rebuild just because the have inherited icecc.

Signed-off-by: Joshua Watt 
---
 meta/lib/oe/sstatesig.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/sstatesig.py b/meta/lib/oe/sstatesig.py
index 3a8778eae01..6be9d32133a 100644
--- a/meta/lib/oe/sstatesig.py
+++ b/meta/lib/oe/sstatesig.py
@@ -29,7 +29,7 @@ def sstate_rundepfilter(siggen, fn, recipename, task, dep, 
depname, dataCache):
 return True
 
 # Quilt (patch application) changing isn't likely to affect anything
-excludelist = ['quilt-native', 'subversion-native', 'git-native', 
'ccache-native']
+excludelist = ['quilt-native', 'subversion-native', 'git-native', 
'ccache-native', 'icecc-create-env-native']
 if depname in excludelist and recipename != depname:
 return False
 
-- 
2.14.3

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


[OE-core] [PATCH 1/2] icecc.bbclass: Ignore more icecream vars in hashes

2018-02-26 Thread Joshua Watt
Changing ICECC_ENV_VERSION or ICECC_SCHEDULER_HOST should not cause
recipes to rebuild

Signed-off-by: Joshua Watt 
---
 meta/classes/icecc.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 36dcfbe6048..6e35e3be486 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -30,7 +30,7 @@
 
 BB_HASHBASE_WHITELIST += "ICECC_PARALLEL_MAKE ICECC_DISABLED 
ICECC_USER_PACKAGE_BL \
 ICECC_USER_CLASS_BL ICECC_USER_PACKAGE_WL ICECC_PATH ICECC_ENV_EXEC \
-ICECC_CARET_WORKAROUND ICECC_CFLAGS"
+ICECC_CARET_WORKAROUND ICECC_CFLAGS ICECC_ENV_VERSION ICECC_SCHEDULER_HOST"
 
 ICECC_ENV_EXEC ?= "${STAGING_BINDIR_NATIVE}/icecc-create-env"
 
-- 
2.14.3

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


Re: [OE-core] [PATCH] core-image-minimal-initramfs: use initramfs-framework for initialization

2018-02-26 Thread Cal Sullivan

Hi Ross,

Somehow dropped you from CC on my last reply. Can we give this another 
shot? The error we saw should be unrelated to this patch, as the wic 
image being tested here does not use core-image-minimal-initramfs at all.


Thanks,
Cal

On 02/06/2018 11:03 AM, Cal Sullivan wrote:
Shortly after leaving work last night I realized that this error 
should have nothing to do with the initrd/initramfs, as this wic image 
is not using one.


Also, in 300 runs of this test the error didn't occur once, so it 
appears to be very rare.


---
Cal

On 02/05/2018 05:52 PM, Cal Sullivan wrote:



On 02/05/2018 04:47 PM, Khem Raj wrote:


On Mon, Feb 5, 2018 at 4:15 PM Cal Sullivan 
> wrote:


Looking at the test and the output, its expecting /dev/sda3 to
be mounted as /media and /dev/sda4 to be mounted as /mnt. With
this test result, there is no /media, and instead /dev/sda3 is
mounted to /mnt.

That seems odd to me unless that partition either wasn't created
or went entirely undetected.

I'll take a closer look, I think there's more going on here.


Udev trigger sometimes get ignored have seem that in past
Thanks for the info Khem! I think its an intermittent issue unrelated 
to this patch.


I ran the following with my patch applied on top of master and only 
SANITY_TESTED_DISTROS changed in local.conf:


MACHINE=qemux86-64 oe-selftest -r wic.Wic.test_qemu

And it didn't fail.

I'm going to run this test a few hundred times overnight without my 
patch and see if I can hit it.


Thanks,
Cal




---
Cal

On 02/05/2018 03:34 PM, Burton, Ross wrote:

This is causing the qemu boot wic test to fail in oe-selftest:

2018-02-05 15:08:41,786 - oe-selftest - INFO - FAIL [64.639s]:
test_qemu (wic.Wic)
2018-02-05 15:08:41,786 - oe-selftest - INFO -
--
2018-02-05 15:08:41,786 - oe-selftest - INFO - Traceback (most
recent call last):
  File

"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/core/decorator/__init__.py",
line 32, in wrapped_f
    return func(*args, **kwargs)
  File

"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py",
line 58, in wrapped_f
    return func(*args, **kwargs)
  File

"/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-oe-selftest/build/meta/lib/oeqa/selftest/cases/wic.py",
line 637, in test_qemu
    self.assertEqual(output, '/dev/root /\r\n/dev/sda1
/boot\r\n/dev/sda3 /mnt')
AssertionError: '/dev/root /\r\n/dev/sda1 /boot\r\n/dev/sda3
/media\r\n/dev/sda4 /mnt' != '/dev/root /\r\n/dev/sda1
/boot\r\n/dev/sda3 /mnt'
  /dev/root /
  /dev/sda1 /boot
- /dev/sda3 /media
- /dev/sda4 /mnt?         ^
+ /dev/sda3 /mnt?         ^

Presumably this is the initramfs mounting more stuff
automatically?  I don't have an opinion right now as to whether
this is a problem with the initramfs or the test case being too
strict...

Ross


On 1 February 2018 at 14:03, Burton, Ross
> wrote:

Sorry, missed this.  I'll pull it into MUT and throw it at
the autobuilder...

Ross

On 31 January 2018 at 22:53, Cal Sullivan
> wrote:

Ping.

---
Cal


On 01/09/2018 05:00 PM, Cal Sullivan wrote:

Anything wrong with this? Haven't seen it hit any
mut branches.

Thanks,
Cal

On 12/19/2017 02:12 PM, California Sullivan wrote:

initramfs-framework is more modular and
expandable. This change was
proposed in commit
28fc6ba761ed4a47efa7c43e7f7dff5e2fe72b5e
"core-image-minimal-initramfs: use
initramfs-framework by default" but
reverted due to the selftests
runqemu.RunqemuTests.test_boot_machine_iso
and
runqemu.RunqemuTests.test_boot_deploy_hddimg
failing. Since then,
the kinks have been worked out, and missing
functionality that had been
missed (non-EFI installation module) has been
added.

Since the PACKAGE_INSTALL variable was getting
so long with all these
individual modules getting added, I also
introduced a new
INITRAMFS_SCRIPTS variable to the
core-image-minimal-initramfs recipe.
This variable 

[OE-core] ✗ patchtest: failure for EFI image enhancements

2018-02-26 Thread Patchwork
== Series Details ==

Series: EFI image enhancements
Revision: 1
URL   : https://patchwork.openembedded.org/series/11104/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue SUMMARY is missing in newly added recipe 
[test_summary_presence] 
  Suggested fixSpecify the variable SUMMARY in systemd-bootconf



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH 16/16] init-install.sh: support multiple kernels and don't assume vmlinuz

2018-02-26 Thread California Sullivan
Since kernels will not necessarily be installed as vmlinuz anymore,
don't assume that's its name for either the bootloader config or the
copy of the kernel.

Also, allow installing multiple kernels by searching for common kernel
names.

Signed-off-by: California Sullivan 
---
 .../initrdscripts/files/init-install.sh| 37 --
 1 file changed, 34 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh 
b/meta/recipes-core/initrdscripts/files/init-install.sh
index dade059c8f1..713a83092bf 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -256,9 +256,34 @@ fi
 umount /tgt_root
 umount /src_root
 
+echo "Looking for kernels to use as boot target.."
+# Find kernel to boot to
+# Give user options if multiple are found
+kernels="$(find /run/media/$1/ -type f  \
+   -name bzImage* -o -name zImage* \
+   -o -name vmlinux* -o -name vmlinuz* \
+   -o -name fitImage* \
+   | sed s:.*/::)"
+if [ -n "$(echo $kernels)" ]; then
+# only one kernel entry if no space
+if [ -z "$(echo $kernels | grep " ")" ]; then
+kernel=$kernels
+echo "$kernel will be used as the boot target"
+else
+echo "Which kernel do we want to boot by default? The following 
kernels were found:"
+echo $kernels
+read answer
+kernel=$answer
+fi
+else
+echo "No kernels found, exiting..."
+exit 1
+fi
+
 # Handling of the target boot partition
 mount $bootfs /boot
 echo "Preparing boot partition..."
+
 if [ -f /etc/grub.d/00_header -a $grub_version -ne 0 ] ; then
 echo "Preparing custom grub2 menu..."
 root_part_uuid=$(blkid -o value -s PARTUUID ${rootfs})
@@ -268,7 +293,7 @@ if [ -f /etc/grub.d/00_header -a $grub_version -ne 0 ] ; 
then
 cat >$GRUBCFG <<_EOF
 menuentry "Linux" {
 search --no-floppy --fs-uuid $boot_uuid --set root
-linux /vmlinuz root=PARTUUID=$root_part_uuid $rootwait rw $5 $3 $4 quiet
+linux /$kernel root=PARTUUID=$root_part_uuid $rootwait rw $5 $3 $4 quiet
 }
 _EOF
 chmod 0444 $GRUBCFG
@@ -282,10 +307,16 @@ if [ $grub_version -eq 0 ] ; then
 echo "timeout 30" >> /boot/grub/menu.lst
 echo "title Live Boot/Install-Image" >> /boot/grub/menu.lst
 echo "root  (hd0,0)" >> /boot/grub/menu.lst
-echo "kernel /vmlinuz root=$rootfs rw $3 $4 quiet" >> /boot/grub/menu.lst
+echo "kernel /$kernel root=$rootfs rw $3 $4 quiet" >> /boot/grub/menu.lst
 fi
 
-cp /run/media/$1/vmlinuz /boot/
+# Copy kernel artifacts. To add more artifacts just add to types
+# For now just support kernel types already being used by something in OE-core
+for types in bzImage zImage vmlinux vmlinuz fitImage; do
+for kernel in `find /run/media/$1/ -name $types*`; do
+cp $kernel /boot
+done
+done
 
 umount /boot
 
-- 
2.14.3

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


[OE-core] [PATCH 14/16] systemd-boot: add package that installs to boot

2018-02-26 Thread California Sullivan
If the EFI_PROVIDER is systemd-boot, install as boot(x64|ia32) as per
convention. If its not the EFI_PROVIDER, install as
systemd-boot(x64|ia32), as to not collide with other possible
bootloaders.

Signed-off-by: California Sullivan 
---
 meta/recipes-core/systemd/systemd-boot_234.bb  | 28 +++---
 meta/recipes-core/systemd/systemd-bootconf_1.00.bb |  7 +++---
 2 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-boot_234.bb 
b/meta/recipes-core/systemd/systemd-boot_234.bb
index 88a14ac61ec..2d29df8be7c 100644
--- a/meta/recipes-core/systemd/systemd-boot_234.bb
+++ b/meta/recipes-core/systemd/systemd-boot_234.bb
@@ -18,6 +18,26 @@ EXTRA_OECONF = " --enable-gnuefi \
  EFI_CC='${EFI_CC}' \
"
 
+# install to the image as boot*.efi if its the EFI_PROVIDER,
+# otherwise install as the full name.
+# This allows multiple bootloaders to coexist in a single image.
+python __anonymous () {
+import re
+target = d.getVar('TARGET_ARCH')
+prefix = "" if d.getVar('EFI_PROVIDER', True) == "systemd-boot" else 
"systemd-"
+if target == "x86_64":
+systemdimage = prefix + "bootx64.efi"
+else:
+systemdimage = prefix + "bootia32.efi"
+d.setVar("SYSTEMD_BOOT_IMAGE", systemdimage)
+prefix = "systemd-" if prefix == "" else ""
+d.setVar("SYSTEMD_BOOT_IMAGE_PREFIX", prefix)
+}
+
+FILES_${PN} = "/boot/EFI/BOOT/${SYSTEMD_BOOT_IMAGE}"
+
+RDEPENDS_${PN} += "virtual/systemd-bootconf"
+
 # Imported from the old gummiboot recipe
 TUNE_CCARGS_remove = "-mfpmath=sse"
 COMPATIBLE_HOST = "(x86_64.*|i.86.*)-linux"
@@ -29,12 +49,14 @@ do_compile() {
SYSTEMD_BOOT_EFI_ARCH="x64"
fi
 
-   oe_runmake systemd-boot${SYSTEMD_BOOT_EFI_ARCH}.efi
+   oe_runmake ${SYSTEMD_BOOT_IMAGE_PREFIX}${SYSTEMD_BOOT_IMAGE}
 }
 
 do_install() {
-   # Bypass systemd installation with a NOP
-   :
+   install -d ${D}/boot
+   install -d ${D}/boot/EFI
+   install -d ${D}/boot/EFI/BOOT
+   install ${B}/systemd-boot*.efi ${D}/boot/EFI/BOOT/${SYSTEMD_BOOT_IMAGE}
 }
 
 do_deploy () {
diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb 
b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
index bd291e65115..77a731e1174 100644
--- a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
+++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
@@ -9,7 +9,8 @@ S = "${WORKDIR}"
 
 LABELS = "boot"
 
-APPEND_append = " root=/dev/sda2"
+ROOT = "root=/dev/sda2"
+APPEND_append = " ${ROOT}"
 
 python do_configure() {
 bb.build.exec_func('build_efi_cfg', d)
@@ -21,9 +22,9 @@ do_install() {
install -d ${D}/boot
install -d ${D}/boot/loader
install -d ${D}/boot/loader/entries
-   install -m 0744 loader.conf ${D}/boot/loader/
+   install loader.conf ${D}/boot/loader/
 rm loader.conf
-install -m 077 *.conf ${D}/boot/loader/entries/
+install *.conf ${D}/boot/loader/entries/
 }
 
 FILES_${PN} = "/boot/loader/* /boot/loader/entries/*"
-- 
2.14.3

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


[OE-core] [PATCH 15/16] packagegroup-core-boot: add kernel for EFI systems

2018-02-26 Thread California Sullivan
Previously this wasn't needed because the kernel was added at image
creation time to the boot partition. Now that the boot partition is
created from the /boot/ partition of the rootfs, it needs to be
installed there.

Signed-off-by: California Sullivan 
---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb 
b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
index 0fcb8ba9193..76cd7fc4ebf 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
@@ -37,7 +37,7 @@ RDEPENDS_${PN} = "\
 ${VIRTUAL-RUNTIME_base-utils} \
 ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", 
"", d)} \
 ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", 
"${VIRTUAL-RUNTIME_keymaps}", "", d)} \
-${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", "", d)} 
\
+${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER} kernel", 
"", d)} \
 netbase \
 ${VIRTUAL-RUNTIME_login_manager} \
 ${VIRTUAL-RUNTIME_init_manager} \
-- 
2.14.3

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


[OE-core] [PATCH 11/16] systemd-boot.bbclass: break out configuration creation

2018-02-26 Thread California Sullivan
This class is useful on its own and can be used to create configuration
recipes.

Signed-off-by: California Sullivan 
---
 ...stemd-boot.bbclass => systemd-boot-cfg.bbclass} | 57 --
 meta/classes/systemd-boot.bbclass  | 70 +-
 2 files changed, 1 insertion(+), 126 deletions(-)
 copy meta/classes/{systemd-boot.bbclass => systemd-boot-cfg.bbclass} (50%)

diff --git a/meta/classes/systemd-boot.bbclass 
b/meta/classes/systemd-boot-cfg.bbclass
similarity index 50%
copy from meta/classes/systemd-boot.bbclass
copy to meta/classes/systemd-boot-cfg.bbclass
index 937307076f7..46eeae126ae 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot-cfg.bbclass
@@ -1,18 +1,3 @@
-# Copyright (C) 2016 Intel Corporation
-#
-# Released under the MIT license (see COPYING.MIT)
-
-# systemd-boot.bbclass - The "systemd-boot" is essentially the gummiboot 
merged into systemd.
-#The original standalone gummiboot project is dead 
without any more
-#maintenance.
-#
-# Set EFI_PROVIDER = "systemd-boot" to use systemd-boot on your live images 
instead of grub-efi
-# (images built by image-live.bbclass)
-
-do_bootimg[depends] += "${MLPREFIX}systemd-boot:do_deploy"
-
-EFIDIR = "/EFI/BOOT"
-
 SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
 SYSTEMD_BOOT_ENTRIES ?= ""
 SYSTEMD_BOOT_TIMEOUT ?= "10"
@@ -20,48 +5,6 @@ SYSTEMD_BOOT_TIMEOUT ?= "10"
 # Need UUID utility code.
 inherit fs-uuid
 
-efi_populate() {
-DEST=$1
-
-EFI_IMAGE="systemd-bootia32.efi"
-DEST_EFI_IMAGE="bootia32.efi"
-if [ "${TARGET_ARCH}" = "x86_64" ]; then
-EFI_IMAGE="systemd-bootx64.efi"
-DEST_EFI_IMAGE="bootx64.efi"
-fi
-
-install -d ${DEST}${EFIDIR}
-# systemd-boot requires these paths for configuration files
-# they are not customizable so no point in new vars
-install -d ${DEST}/loader
-install -d ${DEST}/loader/entries
-install -m 0644 ${DEPLOY_DIR_IMAGE}/${EFI_IMAGE} 
${DEST}${EFIDIR}/${DEST_EFI_IMAGE}
-EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
-printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_EFI_IMAGE" >${DEST}/startup.nsh
-install -m 0644 ${SYSTEMD_BOOT_CFG} ${DEST}/loader/loader.conf
-for i in ${SYSTEMD_BOOT_ENTRIES}; do
-install -m 0644 ${i} ${DEST}/loader/entries
-done
-}
-
-efi_iso_populate() {
-iso_dir=$1
-efi_populate $iso_dir
-mkdir -p ${EFIIMGDIR}/${EFIDIR}
-cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
-cp -r $iso_dir/loader ${EFIIMGDIR}
-cp $iso_dir/vmlinuz ${EFIIMGDIR}
-EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
-echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh
-if [ -f "$iso_dir/initrd" ] ; then
-cp $iso_dir/initrd ${EFIIMGDIR}
-fi
-}
-
-efi_hddimg_populate() {
-efi_populate $1
-}
-
 python build_efi_cfg() {
 s = d.getVar("S")
 labels = d.getVar('LABELS')
diff --git a/meta/classes/systemd-boot.bbclass 
b/meta/classes/systemd-boot.bbclass
index 937307076f7..14538fe2d7a 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -12,11 +12,6 @@
 do_bootimg[depends] += "${MLPREFIX}systemd-boot:do_deploy"
 
 EFIDIR = "/EFI/BOOT"
-
-SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
-SYSTEMD_BOOT_ENTRIES ?= ""
-SYSTEMD_BOOT_TIMEOUT ?= "10"
-
 # Need UUID utility code.
 inherit fs-uuid
 
@@ -62,67 +57,4 @@ efi_hddimg_populate() {
 efi_populate $1
 }
 
-python build_efi_cfg() {
-s = d.getVar("S")
-labels = d.getVar('LABELS')
-if not labels:
-bb.debug(1, "LABELS not defined, nothing to do")
-return
-
-if labels == []:
-bb.debug(1, "No labels, nothing to do")
-return
-
-cfile = d.getVar('SYSTEMD_BOOT_CFG')
-cdir = os.path.dirname(cfile)
-if not os.path.exists(cdir):
-os.makedirs(cdir)
-try:
- cfgfile = open(cfile, 'w')
-except OSError:
-bb.fatal('Unable to open %s' % cfile)
-
-cfgfile.write('# Automatically created by OE\n')
-cfgfile.write('default %s\n' % (labels.split()[0]))
-timeout = d.getVar('SYSTEMD_BOOT_TIMEOUT')
-if timeout:
-cfgfile.write('timeout %s\n' % timeout)
-else:
-cfgfile.write('timeout 10\n')
-cfgfile.close()
-
-for label in labels.split():
-localdata = d.createCopy()
-
-overrides = localdata.getVar('OVERRIDES')
-if not overrides:
-bb.fatal('OVERRIDES not defined')
-
-entryfile = "%s/%s.conf" % (s, label)
-if not os.path.exists(s):
-os.makedirs(s)
-d.appendVar("SYSTEMD_BOOT_ENTRIES", " " + entryfile)
-try:
-entrycfg = open(entryfile, "w")
-except OSError:
-bb.fatal('Unable to open %s' % entryfile)
-localdata.setVar('OVERRIDES', label + ':' + 

[OE-core] [PATCH 12/16] systemd: add systemd-bootconf recipe

2018-02-26 Thread California Sullivan
Reuses our systemd-boot-cfg bbclass to generate systemd-boot
configuration files.

Signed-off-by: California Sullivan 
---
 meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 29 ++
 1 file changed, 29 insertions(+)
 create mode 100644 meta/recipes-core/systemd/systemd-bootconf_1.00.bb

diff --git a/meta/recipes-core/systemd/systemd-bootconf_1.00.bb 
b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
new file mode 100644
index 000..bd291e65115
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd-bootconf_1.00.bb
@@ -0,0 +1,29 @@
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+RPROVIDES_${PN} += "virtual/systemd-bootconf"
+
+inherit systemd-boot-cfg
+
+S = "${WORKDIR}"
+
+LABELS = "boot"
+
+APPEND_append = " root=/dev/sda2"
+
+python do_configure() {
+bb.build.exec_func('build_efi_cfg', d)
+}
+
+do_configure[vardeps] += "APPEND"
+
+do_install() {
+   install -d ${D}/boot
+   install -d ${D}/boot/loader
+   install -d ${D}/boot/loader/entries
+   install -m 0744 loader.conf ${D}/boot/loader/
+rm loader.conf
+install -m 077 *.conf ${D}/boot/loader/entries/
+}
+
+FILES_${PN} = "/boot/loader/* /boot/loader/entries/*"
-- 
2.14.3

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


[OE-core] [PATCH 13/16] systemd-boot*.bbclass: Don't use vmlinuz

2018-02-26 Thread California Sullivan
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead.

Signed-off-by: California Sullivan 
---
 meta/classes/systemd-boot-cfg.bbclass | 6 +-
 meta/classes/systemd-boot.bbclass | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/classes/systemd-boot-cfg.bbclass 
b/meta/classes/systemd-boot-cfg.bbclass
index 46eeae126ae..360c86cbd34 100644
--- a/meta/classes/systemd-boot-cfg.bbclass
+++ b/meta/classes/systemd-boot-cfg.bbclass
@@ -1,3 +1,5 @@
+KERNEL_IMAGETYPE ??= "bzImage"
+
 SYSTEMD_BOOT_CFG ?= "${S}/loader.conf"
 SYSTEMD_BOOT_ENTRIES ?= ""
 SYSTEMD_BOOT_TIMEOUT ?= "10"
@@ -52,7 +54,9 @@ python build_efi_cfg() {
 localdata.setVar('OVERRIDES', label + ':' + overrides)
 
 entrycfg.write('title %s\n' % label)
-entrycfg.write('linux /vmlinuz\n')
+
+kernel = localdata.getVar("KERNEL_IMAGETYPE")
+entrycfg.write('linux /%s\n' % kernel)
 
 append = localdata.getVar('APPEND')
 initrd = localdata.getVar('INITRD')
diff --git a/meta/classes/systemd-boot.bbclass 
b/meta/classes/systemd-boot.bbclass
index 14538fe2d7a..3cd6811a6ce 100644
--- a/meta/classes/systemd-boot.bbclass
+++ b/meta/classes/systemd-boot.bbclass
@@ -45,7 +45,7 @@ efi_iso_populate() {
 mkdir -p ${EFIIMGDIR}/${EFIDIR}
 cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
 cp -r $iso_dir/loader ${EFIIMGDIR}
-cp $iso_dir/vmlinuz ${EFIIMGDIR}
+cp $iso_dir/${KERNEL_IMAGETYPE} ${EFIIMGDIR}
 EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
 echo "fs0:${EFIPATH}\\${DEST_EFI_IMAGE}" > ${EFIIMGDIR}/startup.nsh
 if [ -f "$iso_dir/initrd" ] ; then
-- 
2.14.3

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


[OE-core] [PATCH 10/16] syslinux.bbclass: don't use vmlinuz

2018-02-26 Thread California Sullivan
We can't guarantee the kernel will be named vmlinuz anymore. Use
KERNEL_IMAGETYPE instead.

Signed-off-by: California Sullivan 
---
 meta/classes/syslinux.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass
index d6f882420e4..959aed4fb8f 100644
--- a/meta/classes/syslinux.bbclass
+++ b/meta/classes/syslinux.bbclass
@@ -21,6 +21,7 @@ do_bootimg[depends] += 
"${MLPREFIX}syslinux:do_populate_sysroot \
 syslinux-native:do_populate_sysroot"
 
 ISOLINUXDIR ?= "/isolinux"
+KERNEL_IMAGETYPE ??= "bzImage"
 SYSLINUXDIR = "/"
 # The kernel has an internal default console, which you can override with
 # a console=...some_tty...
@@ -173,8 +174,9 @@ python build_syslinux_cfg () {
 if not root:
 bb.fatal('SYSLINUX_ROOT not defined')
 
+kernel = localdata.getVar('KERNEL_IMAGETYPE')
 for btype in btypes:
-cfgfile.write('LABEL %s%s\nKERNEL /vmlinuz\n' % (btype[0], label))
+cfgfile.write('LABEL %s%s\nKERNEL /%s\n' % (btype[0], label, 
kernel))
 
 exargs = d.getVar('SYSLINUX_KERNEL_ARGS')
 if exargs:
-- 
2.14.3

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


[OE-core] [PATCH 09/16] init-install-efi.sh: Update to support installing multiple kernels

2018-02-26 Thread California Sullivan
We can no longer rely on the kernel having a static name of "vmlinuz".
This means we can't use it as a sentinel value in our sed commands, and
we can't just copy vmlinuz to the boot directory.

Instead, we'll use "root=" as the sentinel value for our sed commands,
and we'll search for common kernel names to copy into our boot
directory.

Signed-off-by: California Sullivan 
---
 meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 ++-
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh 
b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 706418fa9c5..f946d971d11 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -244,10 +244,9 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
 sed -i "/initrd /d" $GRUBCFG
 # Delete any LABEL= strings
 sed -i "s/ LABEL=[^ ]*/ /" $GRUBCFG
-# Delete any root= strings
-sed -i "s/ root=[^ ]*/ /g" $GRUBCFG
-# Add the root= and other standard boot options
-sed -i "s@linux /vmlinuz *@linux /vmlinuz root=PARTUUID=$root_part_uuid rw 
$rootwait quiet @" $GRUBCFG
+# Replace root= and add additional standard boot options
+# We use root as a sentinel value, as vmlinuz is no longer guaranteed
+sed -i "s/ root=[^ ]*/ root=PARTUUID=$root_part_uuid rw $rootwait quiet 
/g" $GRUBCFG
 fi
 
 if [ -d /run/media/$1/loader ]; then
@@ -269,7 +268,13 @@ fi
 
 umount /tgt_root
 
-cp /run/media/$1/vmlinuz /boot
+# Copy kernel artifacts. To add more artifacts just add to types
+# For now just support kernel types already being used by something in OE-core
+for types in bzImage zImage vmlinux vmlinuz fitImage; do
+for kernel in `find /run/media/$1/ -name $types*`; do
+cp $kernel /boot
+done
+done
 
 umount /boot
 
-- 
2.14.3

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


[OE-core] [PATCH 08/16] wic: add wks file to make use of exclude-path functionality

2018-02-26 Thread California Sullivan
Using --exclude-path and a wks.in file we can create an image that takes
the /boot/ directory for the boot partition, has an empty /boot/
directory in the rootfs partition. The boot partition gets mounted to
/boot/ after startup.

Signed-off-by: California Sullivan 
---
 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 scripts/lib/wic/canned-wks/efi-bootdisk.wks.in

diff --git a/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in 
b/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
new file mode 100644
index 000..7300e65e32d
--- /dev/null
+++ b/scripts/lib/wic/canned-wks/efi-bootdisk.wks.in
@@ -0,0 +1,3 @@
+bootloader --ptable gpt
+part /boot --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/boot --fstype=vfat 
--label boot --active --align 1024 --use-uuid --overhead-factor 1.0
+part / --source rootfs --fstype=ext4 --label root --align 1024 --exclude-path 
boot/
-- 
2.14.3

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


[OE-core] [PATCH 07/16] grub-efi*.bbclass: don't reference vmlinuz

2018-02-26 Thread California Sullivan
Rather than renaming the kernel to vmlinuz and assuming the name is
vmlinuz in the grub.cfg, copy to ${KERNEL_IMAGETYPE} and also use that
value in the grub.cfg file.

Signed-off-by: California Sullivan 
---
 meta/classes/grub-efi-cfg.bbclass | 4 +++-
 meta/classes/grub-efi.bbclass | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/meta/classes/grub-efi-cfg.bbclass 
b/meta/classes/grub-efi-cfg.bbclass
index 730323c72e6..85173c91fc3 100644
--- a/meta/classes/grub-efi-cfg.bbclass
+++ b/meta/classes/grub-efi-cfg.bbclass
@@ -22,6 +22,7 @@ GRUB_CFG_LIVE = "${S}/grub_live.cfg"
 GRUB_TIMEOUT ?= "10"
 #FIXME: build this from the machine config
 GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
+KERNEL_IMAGETYPE ??= "bzImage"
 
 EFIDIR = "/EFI/BOOT"
 GRUB_ROOT ?= "${ROOT}"
@@ -97,7 +98,8 @@ python build_efi_cfg() {
 lb = label
 if label == "install":
 lb = "install-efi"
-cfgfile.write('linux /vmlinuz LABEL=%s' % (lb))
+kernel = localdata.getVar('KERNEL_IMAGETYPE')
+cfgfile.write('linux /%s LABEL=%s' % (kernel, lb))
 
 cfgfile.write(' %s' % replace_rootfs_uuid(d, root))
 
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 4b5704c19cc..90badc03a0e 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -26,7 +26,7 @@ efi_iso_populate() {
# Build a EFI directory to create efi.img
mkdir -p ${EFIIMGDIR}/${EFIDIR}
cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
-   cp $iso_dir/vmlinuz ${EFIIMGDIR}
+   cp $iso_dir/${KERNEL_IMAGETYPE} ${EFIIMGDIR}
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
printf 'fs0:%s\%s\n' "$EFIPATH" "$GRUB_IMAGE" > ${EFIIMGDIR}/startup.nsh
if [ -f "$iso_dir/initrd" ] ; then
-- 
2.14.3

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


[OE-core] [PATCH 05/16] packagegroup-core-boot: add bootloader to EFI systems

2018-02-26 Thread California Sullivan
Since the bootloader is now installed instead of added at image creation
time, this is necessary for booting.

Also set the default to grub-efi. This is done because a default of
grub-efi is already used by live-vm-common.bbclass, and in the event
that EFI_PROVIDER isn't defined errors would occur.

Signed-off-by: California Sullivan 
---
 meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb 
b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
index 04bc0f2b693..0fcb8ba9193 100644
--- a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
+++ b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb
@@ -23,6 +23,8 @@ VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
 VIRTUAL-RUNTIME_initscripts ?= "initscripts"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
 
+EFI_PROVIDER ??= "grub-efi"
+
 SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 
'${VIRTUAL-RUNTIME_base-utils-hwclock}', '', d)} \
 modutils-initscripts \
 init-ifupdown \
@@ -35,6 +37,7 @@ RDEPENDS_${PN} = "\
 ${VIRTUAL-RUNTIME_base-utils} \
 ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", 
"", d)} \
 ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", 
"${VIRTUAL-RUNTIME_keymaps}", "", d)} \
+${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}", "", d)} 
\
 netbase \
 ${VIRTUAL-RUNTIME_login_manager} \
 ${VIRTUAL-RUNTIME_init_manager} \
-- 
2.14.3

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


[OE-core] [PATCH 06/16] live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL

2018-02-26 Thread California Sullivan
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be
statically installing the kernel as vmlinuz.

Signed-off-by: California Sullivan 
---
 meta/classes/live-vm-common.bbclass | 9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta/classes/live-vm-common.bbclass 
b/meta/classes/live-vm-common.bbclass
index e1d8b1843b6..714d6d4788c 100644
--- a/meta/classes/live-vm-common.bbclass
+++ b/meta/classes/live-vm-common.bbclass
@@ -33,18 +33,17 @@ inherit ${EFI_CLASS}
 inherit ${PCBIOS_CLASS}
 
 KERNEL_IMAGETYPE ??= "bzImage"
-VM_DEFAULT_KERNEL ??= "${KERNEL_IMAGETYPE}"
 
 populate_kernel() {
dest=$1
install -d $dest
 
# Install bzImage, initrd, and rootfs.img in DEST for all loaders to 
use.
-   bbnote "Trying to install ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} as 
$dest/vmlinuz"
-   if [ -e ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} ]; then
-   install -m 0644 ${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} 
$dest/vmlinuz
+   bbnote "Trying to install ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} as 
$dest/${KERNEL_IMAGETYPE}"
+   if [ -e ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ]; then
+   install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} 
$dest/${KERNEL_IMAGETYPE}
else
-   bbwarn "${DEPLOY_DIR_IMAGE}/${VM_DEFAULT_KERNEL} doesn't exist"
+   bbwarn "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} doesn't exist"
fi
 
# initrd is made of concatenation of multiple filesystem images
-- 
2.14.3

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


[OE-core] [PATCH 03/16] grub-efi: install to /boot/

2018-02-26 Thread California Sullivan
Since /boot/ will be recipe/package controlled now we can't just deploy.

Signed-off-by: California Sullivan 
---
 meta/recipes-bsp/grub/grub-bootconf_1.00.bb |  2 +-
 meta/recipes-bsp/grub/grub-efi_2.02.bb  | 34 +++--
 2 files changed, 28 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb 
b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
index 36a13311b91..63aa44e752b 100644
--- a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
+++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
@@ -23,7 +23,7 @@ do_install() {
install -d ${D}/boot
install -d ${D}/boot/EFI
install -d ${D}/boot/EFI/BOOT
-   install -m 0744 grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg
+   install grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg
 }
 
 FILES_${PN} = "/boot/EFI/BOOT/grub.cfg"
diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb 
b/meta/recipes-bsp/grub/grub-efi_2.02.bb
index d5aa64c75f7..c5a68f01cef 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.02.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.02.bb
@@ -3,7 +3,7 @@ require grub2.inc
 GRUBPLATFORM = "efi"
 
 DEPENDS_append_class-target = " grub-efi-native"
-RDEPENDS_${PN}_class-target = "diffutils freetype grub-common"
+RDEPENDS_${PN}_class-target = "diffutils freetype grub-common 
virtual/grub-bootconf"
 
 SRC_URI += " \
file://cfg \
@@ -36,6 +36,28 @@ EXTRA_OECONF += "--enable-efiemu=no"
 # and many other places in the grub code when compiled with some native gcc 
compilers (specifically, gentoo)
 CFLAGS_append_class-native = " -Wno-error=trampolines"
 
+do_mkimage() {
+   cd ${B}
+   # Search for the grub.cfg on the local boot media by using the
+   # built in cfg file provided via this recipe
+   grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \
+  -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
+  ${GRUB_BUILDIN}
+}
+
+addtask mkimage before do_install after do_compile
+
+do_mkimage_class-native() {
+   :
+}
+
+do_install_append_class-target() {
+   install -d ${D}/boot
+   install -d ${D}/boot/EFI
+   install -d ${D}/boot/EFI/BOOT
+   install -m 644 ${B}/${GRUB_IMAGE} ${D}/boot/EFI/BOOT/
+}
+
 do_install_class-native() {
install -d ${D}${bindir}
install -m 755 grub-mkimage ${D}${bindir}
@@ -57,11 +79,6 @@ GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos 
part_gpt normal \
  efi_gop iso9660 configfile search loadenv test"
 
 do_deploy() {
-   # Search for the grub.cfg on the local boot media by using the
-   # built in cfg file provided via this recipe
-   grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \
-  -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
-  ${GRUB_BUILDIN}
install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR}
 }
 
@@ -72,7 +89,10 @@ do_deploy_class-native() {
 addtask deploy after do_install before do_build
 
 FILES_${PN} = "${libdir}/grub/${GRUB_TARGET}-efi \
-"
+   ${datadir}/grub \
+   /boot/EFI/BOOT/${GRUB_IMAGE} \
+   "
+
 
 # 64-bit binaries are expected for the bootloader with an x32 userland
 INSANE_SKIP_${PN}_append_linux-gnux32 = " arch"
-- 
2.14.3

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


[OE-core] [PATCH 04/16] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2018-02-26 Thread California Sullivan
This way we could theoretically support multiple bootloaders, and we
keep the convention of boot(x64|ia32).

Signed-off-by: California Sullivan 
---
 meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 -
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb 
b/meta/recipes-bsp/grub/grub-efi_2.02.bb
index c5a68f01cef..ed27b90fdbc 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.02.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.02.bb
@@ -15,16 +15,19 @@ S = "${WORKDIR}/grub-${PV}"
 python __anonymous () {
 import re
 target = d.getVar('TARGET_ARCH')
+prefix = "" if d.getVar('EFI_PROVIDER') == "grub-efi" else "grub-efi-"
 if target == "x86_64":
 grubtarget = 'x86_64'
-grubimage = "grub-efi-bootx64.efi"
+grubimage = prefix + "bootx64.efi"
 elif re.match('i.86', target):
 grubtarget = 'i386'
-grubimage = "grub-efi-bootia32.efi"
+grubimage = prefix + "bootia32.efi"
 else:
 raise bb.parse.SkipRecipe("grub-efi is incompatible with target %s" % 
target)
 d.setVar("GRUB_TARGET", grubtarget)
 d.setVar("GRUB_IMAGE", grubimage)
+prefix = "grub-efi-" if prefix == "" else ""
+d.setVar("GRUB_IMAGE_PREFIX", prefix)
 }
 
 inherit deploy
@@ -41,7 +44,7 @@ do_mkimage() {
# Search for the grub.cfg on the local boot media by using the
# built in cfg file provided via this recipe
grub-mkimage -c ../cfg -p /EFI/BOOT -d ./grub-core/ \
-  -O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE} \
+  -O ${GRUB_TARGET}-efi -o 
./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \
   ${GRUB_BUILDIN}
 }
 
@@ -55,7 +58,7 @@ do_install_append_class-target() {
install -d ${D}/boot
install -d ${D}/boot/EFI
install -d ${D}/boot/EFI/BOOT
-   install -m 644 ${B}/${GRUB_IMAGE} ${D}/boot/EFI/BOOT/
+   install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} 
${D}/boot/EFI/BOOT/${GRUB_IMAGE}
 }
 
 do_install_class-native() {
@@ -79,7 +82,7 @@ GRUB_BUILDIN ?= "boot linux ext2 fat serial part_msdos 
part_gpt normal \
  efi_gop iso9660 configfile search loadenv test"
 
 do_deploy() {
-   install -m 644 ${B}/${GRUB_IMAGE} ${DEPLOYDIR}
+   install -m 644 ${B}/${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} ${DEPLOYDIR}
 }
 
 do_deploy_class-native() {
-- 
2.14.3

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


[OE-core] [PATCH 01/16] grub-efi.bbclass: split out configuration portion

2018-02-26 Thread California Sullivan
This part is useful on its own, whereas the whole class together is
specific for image-live.

Signed-off-by: California Sullivan 
---
 .../{grub-efi.bbclass => grub-efi-cfg.bbclass} |  40 ---
 meta/classes/grub-efi.bbclass  | 122 +
 2 files changed, 1 insertion(+), 161 deletions(-)
 copy meta/classes/{grub-efi.bbclass => grub-efi-cfg.bbclass} (76%)

diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi-cfg.bbclass
similarity index 76%
copy from meta/classes/grub-efi.bbclass
copy to meta/classes/grub-efi-cfg.bbclass
index 610479b85d1..730323c72e6 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi-cfg.bbclass
@@ -16,8 +16,6 @@
 # ${GRUB_TIMEOUT} - timeout before executing the deault label (optional)
 # ${GRUB_ROOT} - grub's root device.
 
-do_bootimg[depends] += "${MLPREFIX}grub-efi:do_deploy"
-
 GRUB_SERIAL ?= "console=ttyS0,115200"
 GRUB_CFG_VM = "${S}/grub_vm.cfg"
 GRUB_CFG_LIVE = "${S}/grub_live.cfg"
@@ -32,44 +30,6 @@ APPEND ?= ""
 # Need UUID utility code.
 inherit fs-uuid
 
-efi_populate() {
-   # DEST must be the root of the image so that EFIDIR is not
-   # nested under a top level directory.
-   DEST=$1
-
-   install -d ${DEST}${EFIDIR}
-
-   GRUB_IMAGE="grub-efi-bootia32.efi"
-   DEST_IMAGE="bootia32.efi"
-   if [ "${TARGET_ARCH}" = "x86_64" ]; then
-   GRUB_IMAGE="grub-efi-bootx64.efi"
-   DEST_IMAGE="bootx64.efi"
-   fi
-   install -m 0644 ${DEPLOY_DIR_IMAGE}/${GRUB_IMAGE} 
${DEST}${EFIDIR}/${DEST_IMAGE}
-   EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
-   printf 'fs0:%s\%s\n' "$EFIPATH" "$DEST_IMAGE" >${DEST}/startup.nsh
-
-   install -m 0644 ${GRUB_CFG} ${DEST}${EFIDIR}/grub.cfg
-}
-
-efi_iso_populate() {
-   iso_dir=$1
-   efi_populate $iso_dir
-   # Build a EFI directory to create efi.img
-   mkdir -p ${EFIIMGDIR}/${EFIDIR}
-   cp $iso_dir/${EFIDIR}/* ${EFIIMGDIR}${EFIDIR}
-   cp $iso_dir/vmlinuz ${EFIIMGDIR}
-   EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
-   printf 'fs0:%s\%s\n' "$EFIPATH" "$GRUB_IMAGE" > ${EFIIMGDIR}/startup.nsh
-   if [ -f "$iso_dir/initrd" ] ; then
-   cp $iso_dir/initrd ${EFIIMGDIR}
-   fi
-}
-
-efi_hddimg_populate() {
-   efi_populate $1
-}
-
 python build_efi_cfg() {
 import sys
 
diff --git a/meta/classes/grub-efi.bbclass b/meta/classes/grub-efi.bbclass
index 610479b85d1..4b5704c19cc 100644
--- a/meta/classes/grub-efi.bbclass
+++ b/meta/classes/grub-efi.bbclass
@@ -1,36 +1,4 @@
-# grub-efi.bbclass
-# Copyright (c) 2011, Intel Corporation.
-# All rights reserved.
-#
-# Released under the MIT license (see packages/COPYING)
-
-# Provide grub-efi specific functions for building bootable images.
-
-# External variables
-# ${INITRD} - indicates a list of filesystem images to concatenate and use as 
an initrd (optional)
-# ${ROOTFS} - indicates a filesystem image to include as the root filesystem 
(optional)
-# ${GRUB_GFXSERIAL} - set this to 1 to have graphics and serial in the boot 
menu
-# ${LABELS} - a list of targets for the automatic config
-# ${APPEND} - an override list of append strings for each label
-# ${GRUB_OPTS} - additional options to add to the config, ';' delimited # 
(optional)
-# ${GRUB_TIMEOUT} - timeout before executing the deault label (optional)
-# ${GRUB_ROOT} - grub's root device.
-
-do_bootimg[depends] += "${MLPREFIX}grub-efi:do_deploy"
-
-GRUB_SERIAL ?= "console=ttyS0,115200"
-GRUB_CFG_VM = "${S}/grub_vm.cfg"
-GRUB_CFG_LIVE = "${S}/grub_live.cfg"
-GRUB_TIMEOUT ?= "10"
-#FIXME: build this from the machine config
-GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
-
-EFIDIR = "/EFI/BOOT"
-GRUB_ROOT ?= "${ROOT}"
-APPEND ?= ""
-
-# Need UUID utility code.
-inherit fs-uuid
+inherit grub-efi-cfg
 
 efi_populate() {
# DEST must be the root of the image so that EFIDIR is not
@@ -69,91 +37,3 @@ efi_iso_populate() {
 efi_hddimg_populate() {
efi_populate $1
 }
-
-python build_efi_cfg() {
-import sys
-
-workdir = d.getVar('WORKDIR')
-if not workdir:
-bb.error("WORKDIR not defined, unable to package")
-return
-
-gfxserial = d.getVar('GRUB_GFXSERIAL') or ""
-
-labels = d.getVar('LABELS')
-if not labels:
-bb.debug(1, "LABELS not defined, nothing to do")
-return
-
-if labels == []:
-bb.debug(1, "No labels, nothing to do")
-return
-
-cfile = d.getVar('GRUB_CFG')
-if not cfile:
-bb.fatal('Unable to read GRUB_CFG')
-
-try:
- cfgfile = open(cfile, 'w')
-except OSError:
-bb.fatal('Unable to open %s' % cfile)
-
-cfgfile.write('# Automatically created by OE\n')
-
-opts = d.getVar('GRUB_OPTS')
-if opts:
-for opt in opts.split(';'):
-cfgfile.write('%s\n' % opt)
-
-cfgfile.write('default=%s\n' % (labels.split()[0]))
-
-timeout = 

[OE-core] [PATCH 02/16] grub: create recipe for configuration

2018-02-26 Thread California Sullivan
This makes use of the grub-efi-cfg bbclass that was split out to create
a grub.cfg file just like the old one.

Signed-off-by: California Sullivan 
---
 meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 29 +
 1 file changed, 29 insertions(+)
 create mode 100644 meta/recipes-bsp/grub/grub-bootconf_1.00.bb

diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb 
b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
new file mode 100644
index 000..36a13311b91
--- /dev/null
+++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
@@ -0,0 +1,29 @@
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+SUMMARY = "Basic grub.cfg for use in EFI systems"
+
+RPROVIDES_${PN} += "virtual/grub-bootconf"
+
+inherit grub-efi-cfg
+
+S = "${WORKDIR}"
+
+GRUB_CFG = "${S}/grub-bootconf"
+LABELS = "boot"
+
+ROOT = "root=/dev/sda2"
+
+python do_configure() {
+bb.build.exec_func('build_efi_cfg', d)
+}
+
+do_configure[vardeps] += "APPEND"
+
+do_install() {
+   install -d ${D}/boot
+   install -d ${D}/boot/EFI
+   install -d ${D}/boot/EFI/BOOT
+   install -m 0744 grub-bootconf ${D}/boot/EFI/BOOT/grub.cfg
+}
+
+FILES_${PN} = "/boot/EFI/BOOT/grub.cfg"
-- 
2.14.3

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


[OE-core] [PATCH 00/16] EFI image enhancements

2018-02-26 Thread California Sullivan
EFI images require a boot partition containing the bootloader, the
kernel, the bootloader configuration, and any other EFI binaries that
your platform needs. Currently, the boot partition is done at image
creation time rather than through packages, making it very difficult to
add to its contents. As an example, we currently have no way to make use
of the multiple kernel enhancement that was recently added.

We should instead be treating the boot partition like anything else and
be installing needed items via packages. This can be done by treating
the /boot/ directory as the boot partion, pointing wic at it via the
--rootfs-dir option for the EFI partition, and using the new
--exclude-path option to not include the contents of /boot/ in the main
rootfs. This is the kickstart file in patch 0008.

What's left is installing everything in the correct location, which is
what the majority of the remaining patches entails.

I reused the grub-efi and systemd-boot bbclasses to create the
configuration files, and one change that was required due to that is the
removal of the assumption that kernels are installed as "vmlinuz", which
was normal in the past. This change was needed in order to make use of
the new normal kernel install, where the default kernel is installed to
/boot/ as ${KERNEL_IMAGETYPE}.

This has some cascading effects and required changes in install scripts
as well, as they too assumed the kernel would be named vmlinuz. When
updating these I also added functionality allowing them to install
multiple kernels.

The image enhancements can be tested in qemu by adding the following to
your local.conf:
MACHINE="qemux86"
# or qemux86-64
WKS_FILE = "efi-bootdisk.wks.in"
MACHINE_FEATURES_append = " efi"
IMAGE_INSTALL_append = " grub-efi systemd-boot kernel-image-bzimage"
# kernel-image-bzimage is neccessary due to
# RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" in qemu.inc
IMAGE_FSTYPES_pn-core-image-minimal_append = " wic"

And then running the following:
bitbake core-image-minimal ovmf
runqemu wic ovmf

The image will contain two bootloaders in the boot partition, and will
boot successfully with either.

Please note that without setting the EFI_PROVIDER variable, neither
bootloader will be installed as the standard boot(x64|ia32), and will
have to be ran manually through the EFI shell.

There is still one unfortunate issue with this patchset - I wasn't able
to get random UUIDs working completely right before feature freeze, so
instead the bootconf recipes assume that the rootfs will be /dev/sda2.
This can be changed via the ROOT variable which originated from the
grub-efi.bbclass. For this reason, I'm not making the efi-bootdisk
kickstart file default for anything, only making it available for this
release.

The issue with random UUIDs is that both wic and the bootloader
configurations need the same random value, and wic needs it at parse
time in order to specify it in a kickstart file. This is doable, but a
little nasty, by writing a value to a file and adding helper functions
to assign that value to a variable. The issue here is package upgrades.
I know of no way to ensure that that file generated at parse time
persists between builds, and if someone tries to do a package upgrade on
thier configuration file that now has a different UUID, they would no
longer have the same UUID as their rootfs, causing boot failures.

One additional issue is that the kernel is installed to /boot/ in iso
and hddimgs, when the real kernel and bootloaders are in the separate
EFI partition. This can be fixed via the following patch and one
additional line of configuration for those image types:
http://lists.openembedded.org/pipermail/openembedded-core/2018-January/146828.html

Please review this patcheset and let me know of any issues you see or
encounter. Also, I have a contrib branch available to pull from here:
https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=clsulliv/image-creation-sda

A previous iteration including the UUID stuff that's not included here
is available at clsulliv/image-creation-exclude-path

Thanks,
Cal


California Sullivan (16):
  grub-efi.bbclass: split out configuration portion
  grub: create recipe for configuration
  grub-efi: install to /boot/
  grub-efi: if installed and EFI_PROVIDER, install as bootx64 or
bootia32
  packagegroup-core-boot: add bootloader to EFI systems
  live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL
  grub-efi*.bbclass: don't reference vmlinuz
  wic: add wks file to make use of exclude-path functionality
  init-install-efi.sh: Update to support installing multiple kernels
  syslinux.bbclass: don't use vmlinuz
  systemd-boot.bbclass: break out configuration creation
  systemd: add systemd-bootconf recipe
  systemd-boot*.bbclass: Don't use vmlinuz
  systemd-boot: add package that installs to boot
  packagegroup-core-boot: add kernel for EFI systems
  init-install.sh: support multiple kernels and don't assume vmlinuz

 .../{grub-efi.bbclass => 

[OE-core] ✗ patchtest: failure for go1.10 update and misc improvements

2018-02-26 Thread Patchwork
== Series Details ==

Series: go1.10 update and misc improvements
Revision: 1
URL   : https://patchwork.openembedded.org/series/11102/
State : failure

== Summary ==


Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:



* Issue Upstream-Status is Inappropriate, but no reason was 
provided [test_upstream_status_presence_format] 
  Suggested fixInclude a brief reason why 
0001-allow-CC-and-CXX-to-have-multiple-words.patch is inappropriate
  Current  Upstream-Status: inappropriate [OE specific]
  Standard format  Upstream-Status: Inappropriate [reason]



If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).

---
Guidelines: 
https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe

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


[OE-core] [PATCH V3] glibc: Upgrade to 2.27 release

2018-02-26 Thread Khem Raj
Signed-off-by: Khem Raj 
---

Changes since v2:

- Fix patch conflicts

 meta/conf/distro/include/tcmode-default.inc|  2 +-
 ...tive_2.26.bb => cross-localedef-native_2.27.bb} |  4 +-
 ...glibc-initial_2.26.bb => glibc-initial_2.27.bb} |  0
 .../{glibc-locale_2.26.bb => glibc-locale_2.27.bb} |  0
 .../{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} |  0
 ...glibc-scripts_2.26.bb => glibc-scripts_2.27.bb} |  0
 ...libc-Look-for-host-system-ld.so.cache-as-.patch | 12 +--
 ...libc-Fix-buffer-overrun-with-a-relocated-.patch | 10 +--
 ...libc-Raise-the-size-of-arrays-containing-.patch | 28 +++
 ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |  8 +-
 ...500-e5500-e6500-603e-fsqrt-implementation.patch |  6 +-
 ...-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch |  8 +-
 ...-Fix-undefined-reference-to-__sqrt_finite.patch |  6 +-
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...bug-1443-which-explains-what-the-patch-do.patch | 10 +--
 ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch | 10 +--
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...-configure.ac-handle-correctly-libc_cv_ro.patch |  8 +-
 .../glibc/glibc/0013-Add-unused-attribute.patch|  8 +-
 ...thin-the-path-sets-wrong-config-variables.patch | 10 +--
 ...-timezone-re-written-tzselect-as-posix-sh.patch |  8 +-
 ...move-bash-dependency-for-nscd-init-script.patch |  6 +-
 ...c-Cross-building-and-testing-instructions.patch |  6 +-
 ...018-eglibc-Help-bootstrap-cross-toolchain.patch |  8 +-
 .../0019-eglibc-Clear-cache-lines-on-ppc8xx.patch  | 10 +--
 ...0020-eglibc-Resolve-__fpscr_values-on-SH4.patch |  8 +-
 .../glibc/0021-eglibc-Install-PIC-archives.patch   | 20 ++---
 ...ward-port-cross-locale-generation-support.patch | 90 +++---
 ...0023-Define-DUMMY_LOCALE_T-if-not-defined.patch |  8 +-
 c-Make-_dl_build_local_scope-breadth-fir.patch | 10 +--
 ...-locale-fix-hard-coded-reference-to-gcc-E.patch |  6 +-
 ...6-reset-dl_load_write_lock-after-forking.patch} | 29 +++
 ...o-lock-before-switching-to-malloc_atfork.patch} | 27 +--
 .../glibc/{glibc_2.26.bb => glibc_2.27.bb} | 10 +--
 34 files changed, 200 insertions(+), 188 deletions(-)
 rename meta/recipes-core/glibc/{cross-localedef-native_2.26.bb => 
cross-localedef-native_2.27.bb} (93%)
 rename meta/recipes-core/glibc/{glibc-initial_2.26.bb => 
glibc-initial_2.27.bb} (100%)
 rename meta/recipes-core/glibc/{glibc-locale_2.26.bb => glibc-locale_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-scripts_2.26.bb => 
glibc-scripts_2.27.bb} (100%)
 rename 
meta/recipes-core/glibc/glibc/{0027-glibc-reset-dl-load-write-lock-after-forking.patch
 => 0026-reset-dl_load_write_lock-after-forking.patch} (63%)
 rename 
meta/recipes-core/glibc/glibc/{0028-Bug-4578-add-ld.so-lock-while-fork.patch => 
0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch} (76%)
 rename meta/recipes-core/glibc/{glibc_2.26.bb => glibc_2.27.bb} (92%)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 075d2c5b24..87a5920cad 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -26,7 +26,7 @@ GCCVERSION ?= "7.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
 BINUVERSION ?= "2.30%"
 GDBVERSION ?= "8.0%"
-GLIBCVERSION ?= "2.26%"
+GLIBCVERSION ?= "2.27%"
 LINUXLIBCVERSION ?= "4.15%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb 
b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
similarity index 93%
rename from meta/recipes-core/glibc/cross-localedef-native_2.26.bb
rename to meta/recipes-core/glibc/cross-localedef-native_2.27.bb
index af02a0ce1d..d633e9bc37 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
@@ -21,8 +21,8 @@ SRCBRANCH ?= "release/${PV}/master"
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)"
 
-SRCREV_glibc ?= "d300041c533a3d837c9f37a099bcc95466860e98"
-SRCREV_localedef ?= "dfb4afe551c6c6e94f9cc85417bd1f582168c843"
+SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
+SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \

git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef
 \
diff --git a/meta/recipes-core/glibc/glibc-initial_2.26.bb 
b/meta/recipes-core/glibc/glibc-initial_2.27.bb
similarity index 100%
rename from meta/recipes-core/glibc/glibc-initial_2.26.bb
rename to meta/recipes-core/glibc/glibc-initial_2.27.bb
diff --git a/meta/recipes-core/glibc/glibc-locale_2.26.bb 
b/meta/recipes-core/glibc/glibc-locale_2.27.bb
similarity index 100%
rename from meta/recipes-core/glibc/glibc-locale_2.26.bb

Re: [OE-core] [PATCH V2 1/2] glibc: Upgrade to 2.27 release

2018-02-26 Thread Khem Raj
On Mon, Feb 26, 2018 at 6:54 AM, Burton, Ross  wrote:
> I know you didn't test this:  :)
>
> On 26 February 2018 at 14:38, Khem Raj  wrote:
>>
>> @@ -40,8 +40,13 @@ SRC_URI =
>> "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
>> file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
>>
>> file://0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \
>> file://0025-locale-fix-hard-coded-reference-to-gcc-E.patch \
>> +<<< HEAD:meta/recipes-core/glibc/glibc_2.26.bb
>> file://0027-glibc-reset-dl-load-write-lock-after-forking.patch
>> \
>> file://0028-Bug-4578-add-ld.so-lock-while-fork.patch \
>> +===
>> +   file://0026-reset-dl_load_write_lock-after-forking.patch \
>> +
>> file://0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch \
>> +>>> 2ce2695790... glibc: Upgrade to 2.27
>> release:meta/recipes-core/glibc/glibc_2.27.bb
>>  "
>
>
> Locally I've got the previous 2.27 upgrade squashed into a revert of the
> 2.26 bump, presumably there are no other changes required?

yeah, should have looked at the local auto build. Please dont revert
the 2.26 bump
since some users might want to cherry-pick it into releases, makes it easier.

I will send a v3 soon.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH 8/8] go: move common settings to go-common.inc

2018-02-26 Thread Matt Madison
Eliminate some redundancy in the recipes by moving
some commonly-used variable settings to the common
include file.

Signed-off-by: Matt Madison 
---
 meta/recipes-devtools/go/go-common.inc | 4 
 meta/recipes-devtools/go/go-cross-canadian.inc | 5 -
 meta/recipes-devtools/go/go-cross.inc  | 3 ---
 meta/recipes-devtools/go/go-crosssdk.inc   | 4 
 meta/recipes-devtools/go/go-native.inc | 4 
 meta/recipes-devtools/go/go-runtime.inc| 5 +
 meta/recipes-devtools/go/go-target.inc | 4 
 7 files changed, 5 insertions(+), 24 deletions(-)

diff --git a/meta/recipes-devtools/go/go-common.inc 
b/meta/recipes-devtools/go/go-common.inc
index 611775b..11d55c4 100644
--- a/meta/recipes-devtools/go/go-common.inc
+++ b/meta/recipes-devtools/go/go-common.inc
@@ -23,6 +23,10 @@ INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 SSTATE_SCAN_CMD = "true"
 
 export GOROOT_OVERRIDE = "1"
+export GOTMPDIR ?= "${WORKDIR}/go-tmp"
+GOTMPDIR[vardepvalue] = ""
+export GOCACHE = "off"
+export CGO_ENABLED = "1"
 
 do_compile_prepend() {
BUILD_CC=${BUILD_CC}
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index 3b98ea4..7a39e45 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -10,11 +10,6 @@ export GOHOSTARCH = "${BUILD_GOARCH}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOTOOLDIR_BOOTSTRAP = 
"${STAGING_LIBDIR_NATIVE}/${HOST_SYS}/go/pkg/tool/${BUILD_GOTUPLE}"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
-#CC = "${HOST_PREFIX}gcc"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
 export GO_LDFLAGS = '-v -linkmode external -extld ${HOST_PREFIX}gcc 
-extldflags "--sysroot=${STAGING_DIR_HOST} ${HOST_CC_ARCH} ${LDFLAGS}"'
diff --git a/meta/recipes-devtools/go/go-cross.inc 
b/meta/recipes-devtools/go/go-cross.inc
index 289ae77..44f230b 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -15,9 +15,6 @@ export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
-export CGO_ENABLED = "1"
 CC = "${@d.getVar('BUILD_CC').strip()}"
 
 do_configure[noexec] = "1"
diff --git a/meta/recipes-devtools/go/go-crosssdk.inc 
b/meta/recipes-devtools/go/go-crosssdk.inc
index 05ca62e..4391b32 100644
--- a/meta/recipes-devtools/go/go-crosssdk.inc
+++ b/meta/recipes-devtools/go/go-crosssdk.inc
@@ -10,10 +10,6 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
 
 do_configure[noexec] = "1"
 
diff --git a/meta/recipes-devtools/go/go-native.inc 
b/meta/recipes-devtools/go/go-native.inc
index 31e899d..5fbb72b 100644
--- a/meta/recipes-devtools/go/go-native.inc
+++ b/meta/recipes-devtools/go/go-native.inc
@@ -10,12 +10,8 @@ SRC_URI[bootstrap.sha256sum] = 
"f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96
 
 export GOOS = "${BUILD_GOOS}"
 export GOARCH = "${BUILD_GOARCH}"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
 CC = "${@d.getVar('BUILD_CC').strip()}"
 
-export CGO_ENABLED = "1"
-
 do_configure() {
cd ${WORKDIR}/go1.4/go/src
CGO_ENABLED=0 GOROOT=${WORKDIR}/go1.4/go ./make.bash
diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index 0fe4566..a79295d 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -11,14 +11,11 @@ export GO386 = "${TARGET_GO386}"
 export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
 export CGO_CFLAGS = "${CFLAGS}"
 export CGO_CPPFLAGS = "${CPPFLAGS}"
 export CGO_CXXFLAGS = "${CXXFLAGS}"
 export CGO_LDFLAGS = "${LDFLAGS}"
-export GOCACHE = "off"
-export GOTMPDIR ?= "${WORKDIR}/go-tmp"
-GOTMPDIR[vardepvalue] = ""
+
 GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${LDFLAGS}"
 GO_LINKMODE ?= ""
 GO_LINKMODE_class-nativesdk = "--linkmode=external"
diff --git a/meta/recipes-devtools/go/go-target.inc 
b/meta/recipes-devtools/go/go-target.inc
index 141a456..aa15079 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -11,10 +11,6 @@ export GO386 = "${TARGET_GO386}"
 export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
-export CGO_ENABLED = "1"
-export GOCACHE = "off"
-export GOTMPDIR ?= 

[OE-core] [PATCH 6/8] go.bbclass: ptest cleanup and improvements

2018-02-26 Thread Matt Madison
* Don't enable verbose test output (-test.v)
  by default, as it generates too much noise
  for automated results parsing

* Override do_install_ptest_base in the bbclass,
  so recipes can provide their own modifications
  with do_install_ptest.

* Improve the generated run-ptest script to better
  handle large numbers of tests, and to generate
  'status: test name' output similar to Automake
  tests.

* Install all non-vendored 'testdata' directories
  from the source into the ptest package, as some
  packages share test data among multiple tests.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 87 +
 1 file changed, 51 insertions(+), 36 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 0e24bd9..70ddb21 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -26,7 +26,7 @@ GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} 
-extldflags '${GO_EXTLDFLAGS
 export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS}"
 export GOPATH_OMIT_IN_ACTIONID ?= "1"
 export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c"
-export GOPTESTFLAGS ?= "-test.v"
+export GOPTESTFLAGS ?= ""
 GOBUILDFLAGS_prepend_task-compile = "${GO_PARALLEL_BUILD} "
 
 export GO = "${HOST_PREFIX}go"
@@ -76,7 +76,7 @@ go_list_packages() {
 }
 
 go_list_package_tests() {
-${GO} list -f '{{.ImportPath}} {{.TestGoFiles}}' ${GOBUILDFLAGS} 
${GO_INSTALL} | \
+   ${GO} list -f '{{.ImportPath}} {{.TestGoFiles}}' ${GOBUILDFLAGS} 
${GO_INSTALL} | \
grep -v '\[\]$' | \
egrep -v '${GO_INSTALL_FILTEROUT}' | \
awk '{ print $1 }'
@@ -94,14 +94,15 @@ go_do_compile() {
 do_compile[dirs] =+ "${GOTMPDIR}"
 do_compile[cleandirs] = "${B}/bin ${B}/pkg"
 
-do_compile_ptest() {
-rm -f ${B}/.go_compiled_tests.list
+do_compile_ptest_base() {
+   rm -f ${B}/.go_compiled_tests.list
go_list_package_tests | while read pkg; do
cd ${B}/src/$pkg
${GO} test ${GOPTESTBUILDFLAGS} $pkg
find . -mindepth 1 -maxdepth 1 -type f -name '*.test' -exec 
echo $pkg/{} \; | \
sed -e's,/\./,/,'>> ${B}/.go_compiled_tests.list
done
+   do_compile_ptest
 }
 do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
@@ -117,40 +118,54 @@ go_do_install() {
fi
 }
 
-do_install_ptest_base() {
-test -f "${B}/.go_compiled_tests.list" || exit 0
-tests=""
-while read test; do
-tests="$tests${tests:+ }${test%.test}"
-testdir=`dirname $test`
-install -d ${D}${PTEST_PATH}/$testdir
-install -m 0755 ${B}/src/$test ${D}${PTEST_PATH}/$test
-if [ -d "${B}/src/$testdir/testdata" ]; then
-cp --preserve=mode,timestamps -R "${B}/src/$testdir/testdata" 
${D}${PTEST_PATH}/$testdir
-fi
-done < ${B}/.go_compiled_tests.list
-if [ -n "$tests" ]; then
-install -d ${D}${PTEST_PATH}
-cat >${D}${PTEST_PATH}/run-ptest <${D}${PTEST_PATH}/run-ptest <&1; then
-ANYFAILED=1
-fi
-done
-if [ \$ANYFAILED -ne 0 ]; then
-echo "FAIL: ${PN}"
-exit 1
-fi
-echo "PASS: ${PN}"
-exit 0
+RC=0
+run_test() (
+cd "\$1"
+./\$2 ${GOPTESTFLAGS}; echo \$? >&3) | sed -r 
-e"s,^(PASS|SKIP|FAIL)\$,\\1: \$1/\$2," >&4) 3>&1) | (read rc; exit \$rc)) 4>&1
+exit \$?)
 EOF
-chmod +x ${D}${PTEST_PATH}/run-ptest
-else
-rm -rf ${D}${PTEST_PATH}
-fi
+
+}
+
+go_stage_testdata() {
+   oldwd="$PWD"
+   cd ${S}/src
+   find ${GO_IMPORT} -depth -type d -name testdata | while read d; do
+   if echo "$d" | grep -q '/vendor/'; then
+   continue
+   fi
+   parent=`dirname $d`
+   install -d ${D}${PTEST_PATH}/$parent
+   cp --preserve=mode,timestamps -R $d ${D}${PTEST_PATH}/$parent/
+   done
+   cd "$oldwd"
+}
+
+do_install_ptest_base() {
+   test -f "${B}/.go_compiled_tests.list" || exit 0
+   install -d ${D}${PTEST_PATH}
+   go_stage_testdata
+   go_make_ptest_wrapper
+   havetests=""
+   while read test; do
+   testdir=`dirname $test`
+   testprog=`basename $test`
+   install -d ${D}${PTEST_PATH}/$testdir
+   install -m 0755 ${B}/src/$test ${D}${PTEST_PATH}/$test
+   echo "run_test $testdir $testprog || RC=1" >> 
${D}${PTEST_PATH}/run-ptest
+   havetests="yes"
+   done < ${B}/.go_compiled_tests.list
+   if [ -n "$havetests" ]; then
+   echo "exit \$RC" >> ${D}${PTEST_PATH}/run-ptest
+   chmod +x ${D}${PTEST_PATH}/run-ptest
+   else
+   rm -rf ${D}${PTEST_PATH}
+   fi
+   do_install_ptest
+   chown -R root:root ${D}${PTEST_PATH}
 }
 
 EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
-- 
2.7.4

-- 
___
Openembedded-core mailing list

[OE-core] [PATCH 7/8] goarch.bbclass: disable shared runtime for nativesdk builds

2018-02-26 Thread Matt Madison
While useful on embedded devices for saving disk space, use
of shared runtime in Go is not the usual practice, so disable
it for nativesdk builds.  We don't use it for native builds,
either, so this makes the SDK match the native environment
more closely.

Signed-off-by: Matt Madison 
---
 meta/classes/goarch.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 1021b94..5c8ed33 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -24,6 +24,7 @@ GO_DYNLINK_x86 = "1"
 GO_DYNLINK_x86-64 = "1"
 GO_DYNLINK_powerpc64 = "1"
 GO_DYNLINK_class-native = ""
+GO_DYNLINK_class-nativesdk = ""
 
 # define here because everybody inherits this class
 #
-- 
2.7.4

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


[OE-core] [PATCH 5/8] go.bbclass: don't stage test data with sources

2018-02-26 Thread Matt Madison
Any directory in a Go package's source tree called
'testdata' contains test data, and isn't necessary
for building.

Some packages include ELF files and other binaries
as test data, and staging them in the sysroot and
-dev package leads to unnecessary QA warnings.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 1f6a21c..0e24bd9 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -107,7 +107,7 @@ do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
install -d ${D}${libdir}/go/src/${GO_IMPORT}
-   tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' . | 
\
+   tar -C ${S}/src/${GO_IMPORT} -cf - --exclude-vcs --exclude '*.test' 
--exclude 'testdata' . | \
tar -C ${D}${libdir}/go/src/${GO_IMPORT} --no-same-owner -xf -
tar -C ${B} -cf - pkg | tar -C ${D}${libdir}/go --no-same-owner -xf -
 
-- 
2.7.4

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


[OE-core] [PATCH 4/8] go.bbclass: remove debug-related commands

2018-02-26 Thread Matt Madison
The 'go env' in the do_compile function and
the set -x/+x in the do_install_ptest function
were used for debugging the bbclass, and aren't
really needed.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index bd7760d..1f6a21c 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -87,7 +87,6 @@ go_do_configure() {
 }
 
 go_do_compile() {
-   ${GO} env
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} 
`go_list_packages`
fi
@@ -119,7 +118,6 @@ go_do_install() {
 }
 
 do_install_ptest_base() {
-set -x
 test -f "${B}/.go_compiled_tests.list" || exit 0
 tests=""
 while read test; do
@@ -153,7 +151,6 @@ EOF
 else
 rm -rf ${D}${PTEST_PATH}
 fi
-set +x
 }
 
 EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
-- 
2.7.4

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


[OE-core] [PATCH 3/8] go.bbclass: rename GO_TMPDIR -> GOTMPDIR

2018-02-26 Thread Matt Madison
and export it. Go 1.10 now supports using this
separate variable locating its temporary files,
so TMPDIR doesn't have to be modified.

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass | 10 --
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index 43a262d..bd7760d 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -49,8 +49,8 @@ GO_INSTALL_FILTEROUT ?= "${GO_IMPORT}/vendor/"
 B = "${WORKDIR}/build"
 export GOPATH = "${B}"
 export GOCACHE = "off"
-GO_TMPDIR ?= "${WORKDIR}/go-tmp"
-GO_TMPDIR[vardepvalue] = ""
+export GOTMPDIR ?= "${WORKDIR}/go-tmp"
+GOTMPDIR[vardepvalue] = ""
 
 python go_do_unpack() {
 src_uri = (d.getVar('SRC_URI') or "").split()
@@ -87,17 +87,15 @@ go_do_configure() {
 }
 
 go_do_compile() {
-   export TMPDIR="${GO_TMPDIR}"
${GO} env
if [ -n "${GO_INSTALL}" ]; then
${GO} install ${GO_LINKSHARED} ${GOBUILDFLAGS} 
`go_list_packages`
fi
 }
-do_compile[dirs] =+ "${GO_TMPDIR}"
+do_compile[dirs] =+ "${GOTMPDIR}"
 do_compile[cleandirs] = "${B}/bin ${B}/pkg"
 
 do_compile_ptest() {
-export TMPDIR="${GO_TMPDIR}"
 rm -f ${B}/.go_compiled_tests.list
go_list_package_tests | while read pkg; do
cd ${B}/src/$pkg
@@ -106,7 +104,7 @@ do_compile_ptest() {
sed -e's,/\./,/,'>> ${B}/.go_compiled_tests.list
done
 }
-do_compile_ptest_base[dirs] =+ "${GO_TMPDIR}"
+do_compile_ptest_base[dirs] =+ "${GOTMPDIR}"
 
 go_do_install() {
install -d ${D}${libdir}/go/src/${GO_IMPORT}
-- 
2.7.4

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


[OE-core] [PATCH 2/8] go: set GOMIPS envrionment variable

2018-02-26 Thread Matt Madison
Go 1.10 adds support for selecting hard/soft float
object code through the GOMIPS environment variable.

Signed-off-by: Matt Madison 
---
 meta/classes/goarch.bbclass| 11 +++
 meta/recipes-devtools/go/go-cross-canadian.inc |  1 +
 meta/recipes-devtools/go/go-cross.inc  |  2 ++
 meta/recipes-devtools/go/go-runtime.inc|  1 +
 meta/recipes-devtools/go/go-target.inc |  1 +
 5 files changed, 16 insertions(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 922c0cc..1021b94 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -5,11 +5,13 @@ HOST_GOOS = "${@go_map_os(d.getVar('HOST_OS'), d)}"
 HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}"
 HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), 
d)}"
 HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), 
d)}"
+HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
 TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
 TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
 TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
+TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), 
d.getVar('TUNE_FEATURES'), d)}"
 TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
 GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') 
== d.getVar('HOST_GOTUPLE')]}"
 
@@ -78,6 +80,15 @@ def go_map_386(a, f, d):
 return '387'
 return ''
 
+def go_map_mips(a, f, d):
+import re
+if a == 'mips' or a == 'mipsel':
+if 'fpu-hard' in f:
+return 'hardfloat'
+else:
+return 'softfloat'
+return ''
+
 def go_map_os(o, d):
 if o.startswith('linux'):
 return 'linux'
diff --git a/meta/recipes-devtools/go/go-cross-canadian.inc 
b/meta/recipes-devtools/go/go-cross-canadian.inc
index c84aa4c..3b98ea4 100644
--- a/meta/recipes-devtools/go/go-cross-canadian.inc
+++ b/meta/recipes-devtools/go/go-cross-canadian.inc
@@ -42,6 +42,7 @@ export GOARCH="${TARGET_GOARCH}"
 export GOOS="${TARGET_GOOS}"
 test -n "\$GOARM" || export GOARM="${TARGET_GOARM}"
 test -n "\$GO386" || export GO386="${TARGET_GO386}"
+test -n "\$GOMIPS" || export GOMIPS="${TARGET_GOMIPS}"
 export GOTOOLDIR="\$native_goroot/pkg/tool/${HOST_GOTUPLE}"
 test -n "\$GOROOT" || export 
GOROOT="\$OECORE_TARGET_SYSROOT/${target_libdir}/go"
 \$here/../../lib/${TARGET_SYS}/go/bin/$1 "\$@"
diff --git a/meta/recipes-devtools/go/go-cross.inc 
b/meta/recipes-devtools/go/go-cross.inc
index fe92651..289ae77 100644
--- a/meta/recipes-devtools/go/go-cross.inc
+++ b/meta/recipes-devtools/go/go-cross.inc
@@ -11,6 +11,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export GOCACHE = "off"
@@ -40,6 +41,7 @@ export GOARCH="${TARGET_GOARCH}"
 export GOOS="${TARGET_GOOS}"
 export GOARM="\${GOARM:-${TARGET_GOARM}}"
 export GO386="\${GO386:-${TARGET_GO386}}"
+export GOMIPS="\${GOMIPS:-${TARGET_GOMIPS}}"
 \$here/../../lib/${CROSS_TARGET_SYS_DIR}/go/bin/$1 "\$@"
 END
chmod +x ${D}${bindir}/$2
diff --git a/meta/recipes-devtools/go/go-runtime.inc 
b/meta/recipes-devtools/go/go-runtime.inc
index 7a3b415..0fe4566 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
diff --git a/meta/recipes-devtools/go/go-target.inc 
b/meta/recipes-devtools/go/go-target.inc
index a53a314..141a456 100644
--- a/meta/recipes-devtools/go/go-target.inc
+++ b/meta/recipes-devtools/go/go-target.inc
@@ -8,6 +8,7 @@ export GOOS = "${TARGET_GOOS}"
 export GOARCH = "${TARGET_GOARCH}"
 export GOARM = "${TARGET_GOARM}"
 export GO386 = "${TARGET_GO386}"
+export GOMIPS = "${TARGET_GOMIPS}"
 export GOROOT_BOOTSTRAP = "${STAGING_LIBDIR_NATIVE}/go"
 export GOROOT_FINAL = "${libdir}/go"
 export CGO_ENABLED = "1"
-- 
2.7.4

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


[OE-core] [PATCH 1/8] go: update go 1.9 -> go 1.10

2018-02-26 Thread Matt Madison
* Patches and recipes reworked for go 1.10's significant
  changes to its bootstrap and build steps

* Update go1.4 source tarball used for go-native
  bootstrapping to the version recommended
  in the current go documentation

* Remove test data from installed sources to eliminate
  some packaging QA warnings

* Set GOCACHE to 'off' to disable 1.10's build caching
  in the go recipes and bbclass

Signed-off-by: Matt Madison 
---
 meta/classes/go.bbclass|   2 +
 meta/recipes-devtools/go/go-1.10.inc   |  21 ++
 ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  49 
 ...-content-based-hash-generation-less-pedan.patch | 220 
 ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
 .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
 ...-cmd-dist-separate-host-and-target-builds.patch | 277 +
 ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
 ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
 meta/recipes-devtools/go/go-1.9.inc|  26 --
 .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
 ...CC-and-CXX-environment-variable-construct.patch |  67 -
 ...sh-better-separate-host-and-target-builds.patch |  92 ---
 ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
 ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
 ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
 .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
 ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
 ...dmode-pie-forces-external-linking-mode-on.patch |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  43 
 .../go/go-1.9/set-external-linker.patch| 111 -
 meta/recipes-devtools/go/go-common.inc |   2 +
 meta/recipes-devtools/go/go-cross-canadian.inc |  28 +--
 meta/recipes-devtools/go/go-cross-canadian_1.10.bb |   2 +
 meta/recipes-devtools/go/go-cross-canadian_1.9.bb  |   2 -
 meta/recipes-devtools/go/go-cross.inc  |  55 ++--
 meta/recipes-devtools/go/go-cross_1.10.bb  |   2 +
 meta/recipes-devtools/go/go-cross_1.9.bb   |   2 -
 meta/recipes-devtools/go/go-crosssdk.inc   |  16 +-
 meta/recipes-devtools/go/go-crosssdk_1.10.bb   |   2 +
 meta/recipes-devtools/go/go-crosssdk_1.9.bb|   2 -
 meta/recipes-devtools/go/go-native.inc |  25 +-
 meta/recipes-devtools/go/go-native_1.10.bb |   2 +
 meta/recipes-devtools/go/go-native_1.9.bb  |   2 -
 meta/recipes-devtools/go/go-runtime.inc|  58 +++--
 meta/recipes-devtools/go/go-runtime_1.10.bb|   2 +
 meta/recipes-devtools/go/go-runtime_1.9.bb |   2 -
 meta/recipes-devtools/go/go-target.inc |  21 +-
 meta/recipes-devtools/go/go_1.10.bb|   2 +
 meta/recipes-devtools/go/go_1.9.bb |   2 -
 41 files changed, 1060 insertions(+), 758 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.10.inc
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0006-cmd-dist-separate-host-and-target-builds.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0008-ld-replace-glibc-dynamic-linker-with-musl.patch
 delete mode 100644 meta/recipes-devtools/go/go-1.9.inc
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0001-make.bash-quote-CC_FOR_TARGET.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0002-cmd-go-fix-CC-and-CXX-environment-variable-construct.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0003-make.bash-better-separate-host-and-target-builds.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0004-cmd-go-allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0005-cmd-go-make-GOROOT-precious-by-default.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0006-make.bash-add-GOTOOLDIR_BOOTSTRAP-environment-variab.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0007-ld-add-soname-to-shareable-objects.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0008-make.bash-add-GOHOSTxx-indirection-for-cross-canadia.patch
 delete mode 100644 

[OE-core] [PATCH 0/8] go1.10 update and misc improvements

2018-02-26 Thread Matt Madison
Updates to the go recipes and bbclasses for go1.10, which
moves the bulk of the toolchain bootstrap and build out
of the 'make.bash' script and to the 'dist' tool.  This
required a rework of the patches.

go1.10 introduces significant changes to the go build
tool as well, requiring some further patches to make
it work for OE builds.

See https://golang.org/doc/go1.10 for a complete list
of new features and changes.

Following the update are some cleanup/improvement
patches.

Matt Madison (8):
  go: update go 1.9 -> go 1.10
  go: set GOMIPS envrionment variable
  go.bbclass: rename GO_TMPDIR -> GOTMPDIR
  go.bbclass: remove debug-related commands
  go.bbclass: don't stage test data with sources
  go.bbclass: ptest cleanup and improvements
  goarch.bbclass: disable shared runtime for nativesdk builds
  go: move common settings to go-common.inc

 meta/classes/go.bbclass| 104 
 meta/classes/goarch.bbclass|  12 +
 meta/recipes-devtools/go/go-1.10.inc   |  21 ++
 ...1-allow-CC-and-CXX-to-have-multiple-words.patch |  49 
 ...-content-based-hash-generation-less-pedan.patch | 220 
 ...OLDIR-to-be-overridden-in-the-environment.patch |  64 +
 .../0004-ld-add-soname-to-shareable-objects.patch  |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  40 +++
 ...-cmd-dist-separate-host-and-target-builds.patch | 277 +
 ...07-cmd-go-make-GOROOT-precious-by-default.patch |  97 
 ...ld-replace-glibc-dynamic-linker-with-musl.patch | 130 ++
 meta/recipes-devtools/go/go-1.9.inc|  26 --
 .../0001-make.bash-quote-CC_FOR_TARGET.patch   |  32 ---
 ...CC-and-CXX-environment-variable-construct.patch |  67 -
 ...sh-better-separate-host-and-target-builds.patch |  92 ---
 ...w-GOTOOLDIR-to-be-overridden-in-the-envir.patch |  68 -
 ...05-cmd-go-make-GOROOT-precious-by-default.patch |  41 ---
 ...dd-GOTOOLDIR_BOOTSTRAP-environment-variab.patch |  36 ---
 .../0007-ld-add-soname-to-shareable-objects.patch  |  46 
 ...dd-GOHOSTxx-indirection-for-cross-canadia.patch |  33 ---
 ...dmode-pie-forces-external-linking-mode-on.patch |  47 
 ...verride-CC-when-building-dist-and-go_boot.patch |  43 
 .../go/go-1.9/set-external-linker.patch| 111 -
 meta/recipes-devtools/go/go-common.inc |   6 +
 meta/recipes-devtools/go/go-cross-canadian.inc |  26 +-
 meta/recipes-devtools/go/go-cross-canadian_1.10.bb |   2 +
 meta/recipes-devtools/go/go-cross-canadian_1.9.bb  |   2 -
 meta/recipes-devtools/go/go-cross.inc  |  56 ++---
 meta/recipes-devtools/go/go-cross_1.10.bb  |   2 +
 meta/recipes-devtools/go/go-cross_1.9.bb   |   2 -
 meta/recipes-devtools/go/go-crosssdk.inc   |  14 +-
 meta/recipes-devtools/go/go-crosssdk_1.10.bb   |   2 +
 meta/recipes-devtools/go/go-crosssdk_1.9.bb|   2 -
 meta/recipes-devtools/go/go-native.inc |  25 +-
 meta/recipes-devtools/go/go-native_1.10.bb |   2 +
 meta/recipes-devtools/go/go-native_1.9.bb  |   2 -
 meta/recipes-devtools/go/go-runtime.inc|  58 ++---
 meta/recipes-devtools/go/go-runtime_1.10.bb|   2 +
 meta/recipes-devtools/go/go-runtime_1.9.bb |   2 -
 meta/recipes-devtools/go/go-target.inc |  20 +-
 meta/recipes-devtools/go/go_1.10.bb|   2 +
 meta/recipes-devtools/go/go_1.9.bb |   2 -
 42 files changed, 1121 insertions(+), 811 deletions(-)
 create mode 100644 meta/recipes-devtools/go/go-1.10.inc
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0001-allow-CC-and-CXX-to-have-multiple-words.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0002-cmd-go-make-content-based-hash-generation-less-pedan.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0003-allow-GOTOOLDIR-to-be-overridden-in-the-environment.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0004-ld-add-soname-to-shareable-objects.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0005-make.bash-override-CC-when-building-dist-and-go_boot.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0006-cmd-dist-separate-host-and-target-builds.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0007-cmd-go-make-GOROOT-precious-by-default.patch
 create mode 100644 
meta/recipes-devtools/go/go-1.10/0008-ld-replace-glibc-dynamic-linker-with-musl.patch
 delete mode 100644 meta/recipes-devtools/go/go-1.9.inc
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0001-make.bash-quote-CC_FOR_TARGET.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0002-cmd-go-fix-CC-and-CXX-environment-variable-construct.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0003-make.bash-better-separate-host-and-target-builds.patch
 delete mode 100644 
meta/recipes-devtools/go/go-1.9/0004-cmd-go-allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch
 delete mode 

Re: [OE-core] [PATCH 01/27] pkgconf: upgrade to version 1.4.2

2018-02-26 Thread Khem Raj
On Mon, Feb 26, 2018 at 3:34 AM, Burton, Ross  wrote:
> Whoops, I thought the upgrade was safe without the rest of the series.
>
> Khem, are you using pkgconf instead of pkg-config then?
>

yes I am trying to and so far it has held up.

> Ross
>
> On 26 February 2018 at 07:54, Maxin B. John  wrote:
>>
>> Hi Khem,
>>
>> On Sun, Feb 25, 2018 at 11:18:58PM -0800, Khem Raj wrote:
>> > This is regressing kmod builds
>> >
>> > ERROR: kmod-25+gitAUTOINC+aca4eca103-r0 do_package: QA Issue: kmod:
>> > Files/directories were installed but not shipped in any pack
>> > age:
>> >
>> >
>> > /mnt/a/oe-build/build/tmp/work/aarch64-bec-linux/kmod/25+gitAUTOINC+aca4eca103-r0/recipe-sysroot/usr/share/bash-completion/completions/kmod
>> >
>> > as you can see its stll carrying the sysroot prefix into DESTDIR
>> >
>> > and this is how kmod is asserting for bash-completion dir
>> >
>> > with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir
>> > bash-completion)
>> >
>> > it was working fine with 1.4.0
>>
>> Good catch. This patch has removed the work-around that we had to make
>> pkgconf build compatible with freedesktop.org's pkg-conf in wrappers like:
>>
>> > > -unset PKG_CONFIG_SYSROOT_DIR
>>
>> Without the associated kmod fix, this will fail as above. I will revert
>> those wrapper changes till we decide to go with pkgconf or not.
>>
>> > On Mon, Feb 19, 2018 at 12:36 AM, Maxin B. John 
>> > wrote:
>> > > pkgconf improved compatibility with freedesktop.org pkg-config.
>> > > So, we don't need to unset PKG_CONFIG_SYSROOT_DIR in wrappers.
>> > >
>> > > Signed-off-by: Maxin B. John 
>> > > ---
>> > >  meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | 4
>> > > +---
>> > > -unset PKG_CONFIG_SYSROOT_DIR
>>
>> Best Regards,
>> Maxin
>> --
>> ___
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] maintainers: Change icecc-create-env maintainer

2018-02-26 Thread Joshua Watt
Signed-off-by: Joshua Watt 
---
 meta/conf/distro/include/maintainers.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 50392487903..16bd9fc6b0e 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -266,7 +266,7 @@ RECIPE_MAINTAINER_pn-help2man-native = "Hongxu Jia 
"
 RECIPE_MAINTAINER_pn-hicolor-icon-theme = "Maxin B. John 
"
 RECIPE_MAINTAINER_pn-hwlatdetect = "Alexander Kanavin 
"
 RECIPE_MAINTAINER_pn-i2c-tools = "Maxin B. John "
-RECIPE_MAINTAINER_pn-icecc-create-env = "Alexander Kanavin 
"
+RECIPE_MAINTAINER_pn-icecc-create-env = "Joshua Watt "
 RECIPE_MAINTAINER_pn-icon-naming-utils = "Alexander Kanavin 
"
 RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin "
 RECIPE_MAINTAINER_pn-ifupdown = "Maxin B. John "
-- 
2.14.3

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


Re: [OE-core] [yocto] Yocto Project Status WW09’18

2018-02-26 Thread akuster808


On 02/26/2018 08:13 AM, Jordan, Robin L wrote:
>
> Current Dev Position: YP 2.5 M3 development
>
> Next Deadline: YP 2.5 M3 cut off was 2/19/18
>
> *** FEATURE FREEZE for 2.5 has passed ***
>
>  
>
> SWAT team rotation: Stephano -> Maxin John on Feb. 23, 2018
>
> SWAT team rotation: Maxin -> Rebecca on March 2, 2018
>
> https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team
>
>  
>
> Key Status/Updates:
>
>   * YP 2.5 M2 is through QA and likely to be released early this week.
>   * YP 2.2.3 is through QA and likely to be released early this week.
>   * YP 2.4.2 rc2 was successfully built and is undergoing QA.
>   * YP 2.5 M3 is feature freeze. After discussions with various people
> we concluded that we need:
>   o the 2.27 glibc upgrade
>   o kernel-devsrc size changes
>   o to resolve some of the outstanding pseudo bugs
>   o to resolve the multilib SDK patch series
>   o the package feed filtering patch series (the multilib SDK
> series depends on it)
>   o image EFI configuration rework
>   * We plan to defer:
>   o pkg-conf vs. pkgconfig issues/discussion
>   o profile guided optimisation for python (patch series)
>   o oe-selftest parallelization
>   * We’re continuing to work on the autobuilder changes and for
> various reasons (inc. changes in people).  We would be in much
> better shape to switch to the new codebase before release, rather
> than waiting until early 2.6 to pick this work up again by which
> time we’d have lost people and context. If we are to switch, we
> need to build M3 with the new infrastructure. We’ll have to make a
> decision on whether we do this during this week.
>

I recommend updating to new code base on the old cluster for debug. We
can fallback to the .io and/or use them in parallel.

Will the new code base work on stable branches?

>  *
>
>  
>
> Planned upcoming dot releases:
>
> YP 2.4.2 (Rocko) is currently in QA 82% complete.   See:
> https://wiki.yoctoproject.org/wiki/2.4_QA_Status
>
stable/rocko-next: clean build last night

> YP 2.3.4 (Pyro) will be built when we figure out gcc backports.
>
stable/pyro-next: Mostly clean. GCC update pulled out for V2. V2 not
merged back.


> YP 2.2.3 (Morty) rc2 has passed QA and is being prepared for release
>
> YP 2.2.4 (Morty) will be built when we figure out gcc backports.
>
stable/morty-next: Getting cleaner. recommend updating to version in pyro.

- armin
>
>  
>
> Key YP 2.5 Dates are:
>
> YP 2.5 M2 has passed QA and is being prepared for release.
>
> YP 2.5 M3 is in feature freeze.  See status above.
>
> YP 2.5 M3 release of 3/2/18
>
> YP 2.5 M4 cut off of 4/2/18
>
> YP 2.5 M4 release of 4/27/18
>
>  
>
> Tracking Metrics:
>
>     WDD 2646 (last week   2648)
>
> (https://wiki.yoctoproject.org/charts/combo.html)
>
>  
>
> Key Status Links for YP:
>
> https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.5_Status
>
> https://wiki.yoctoproject.org/wiki/Yocto_2.5_Schedule
>
> https://wiki.yoctoproject.org/wiki/Yocto_2.5_Features
>
>  
>
> The Status reports are now stored on the wiki at:
> https://wiki.yoctoproject.org/wiki/Weekly_Status
>
>  
>
> [If anyone has suggestions for other information you’d like to see on
> this weekly status update, let us know!]
>
>  
>
> Robin Jordan
>
> Yocto Project Program Manager
>
>
>

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


Re: [OE-core] [PATCH] maintainers: update for change to icecc-create-env recipe name

2018-02-26 Thread Burton, Ross
I think Alex would be very happy with this.  Can you submit a patch?

Ross

On 26 February 2018 at 16:33, Joshua Watt  wrote:

> On Thu, 2018-02-22 at 10:51 +, Ross Burton wrote:
> > Signed-off-by: Ross Burton 
> > ---
> >  meta/conf/distro/include/maintainers.inc | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/conf/distro/include/maintainers.inc
> > b/meta/conf/distro/include/maintainers.inc
> > index 59906f8b6de..965fd34ca04 100644
> > --- a/meta/conf/distro/include/maintainers.inc
> > +++ b/meta/conf/distro/include/maintainers.inc
> > @@ -266,7 +266,7 @@ RECIPE_MAINTAINER_pn-help2man-native = "Hongxu
> > Jia "
> >  RECIPE_MAINTAINER_pn-hicolor-icon-theme = "Maxin B. John  > @intel.com>"
> >  RECIPE_MAINTAINER_pn-hwlatdetect = "Alexander Kanavin  > a...@intel.com>"
> >  RECIPE_MAINTAINER_pn-i2c-tools = "Maxin B. John  > m>"
> > -RECIPE_MAINTAINER_pn-icecc-create-env-native = "Alexander Kanavin  > lexander.kana...@intel.com>"
> > +RECIPE_MAINTAINER_pn-icecc-create-env = "Alexander Kanavin
> > "
>
> Since I basically re-wrote this in its entirety, I would be willing to
> take over ownership if Alexander doesn't want to any more.
>
> >  RECIPE_MAINTAINER_pn-icon-naming-utils = "Alexander Kanavin
> > "
> >  RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin  > el.com>"
> >  RECIPE_MAINTAINER_pn-ifupdown = "Maxin B. John  > >"
> > --
> > 2.11.0
> >
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] maintainers: update for change to icecc-create-env recipe name

2018-02-26 Thread Joshua Watt
On Thu, 2018-02-22 at 10:51 +, Ross Burton wrote:
> Signed-off-by: Ross Burton 
> ---
>  meta/conf/distro/include/maintainers.inc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/conf/distro/include/maintainers.inc
> b/meta/conf/distro/include/maintainers.inc
> index 59906f8b6de..965fd34ca04 100644
> --- a/meta/conf/distro/include/maintainers.inc
> +++ b/meta/conf/distro/include/maintainers.inc
> @@ -266,7 +266,7 @@ RECIPE_MAINTAINER_pn-help2man-native = "Hongxu
> Jia "
>  RECIPE_MAINTAINER_pn-hicolor-icon-theme = "Maxin B. John  @intel.com>"
>  RECIPE_MAINTAINER_pn-hwlatdetect = "Alexander Kanavin  a...@intel.com>"
>  RECIPE_MAINTAINER_pn-i2c-tools = "Maxin B. John  m>"
> -RECIPE_MAINTAINER_pn-icecc-create-env-native = "Alexander Kanavin  lexander.kana...@intel.com>"
> +RECIPE_MAINTAINER_pn-icecc-create-env = "Alexander Kanavin
> "

Since I basically re-wrote this in its entirety, I would be willing to
take over ownership if Alexander doesn't want to any more.

>  RECIPE_MAINTAINER_pn-icon-naming-utils = "Alexander Kanavin
> "
>  RECIPE_MAINTAINER_pn-icu = "Alexander Kanavin  el.com>"
>  RECIPE_MAINTAINER_pn-ifupdown = "Maxin B. John  >"
> -- 
> 2.11.0
> 
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Yocto Project Status WW09’18

2018-02-26 Thread Jordan, Robin L
Current Dev Position: YP 2.5 M3 development

Next Deadline: YP 2.5 M3 cut off was 2/19/18

*** FEATURE FREEZE for 2.5 has passed ***


SWAT team rotation: Stephano -> Maxin John on Feb. 23, 2018

SWAT team rotation: Maxin -> Rebecca on March 2, 2018

https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team


Key Status/Updates:

  *   YP 2.5 M2 is through QA and likely to be released early this week.
  *   YP 2.2.3 is through QA and likely to be released early this week.
  *   YP 2.4.2 rc2 was successfully built and is undergoing QA.
  *   YP 2.5 M3 is feature freeze. After discussions with various people we 
concluded that we need:
 *   the 2.27 glibc upgrade
 *   kernel-devsrc size changes
 *   to resolve some of the outstanding pseudo bugs
 *   to resolve the multilib SDK patch series
 *   the package feed filtering patch series (the multilib SDK series 
depends on it)
 *   image EFI configuration rework
  *   We plan to defer:
 *   pkg-conf vs. pkgconfig issues/discussion
 *   profile guided optimisation for python (patch series)
 *   oe-selftest parallelization
  *   We’re continuing to work on the autobuilder changes and for various 
reasons (inc. changes in people).  We would be in much better shape to switch 
to the new codebase before release, rather than waiting until early 2.6 to pick 
this work up again by which time we’d have lost people and context. If we are 
to switch, we need to build M3 with the new infrastructure. We’ll have to make 
a decision on whether we do this during this week.


Planned upcoming dot releases:

YP 2.4.2 (Rocko) is currently in QA 82% complete.   See: 
https://wiki.yoctoproject.org/wiki/2.4_QA_Status

YP 2.3.4 (Pyro) will be built when we figure out gcc backports.

YP 2.2.3 (Morty) rc2 has passed QA and is being prepared for release

YP 2.2.4 (Morty) will be built when we figure out gcc backports.


Key YP 2.5 Dates are:

YP 2.5 M2 has passed QA and is being prepared for release.

YP 2.5 M3 is in feature freeze.  See status above.

YP 2.5 M3 release of 3/2/18

YP 2.5 M4 cut off of 4/2/18

YP 2.5 M4 release of 4/27/18


Tracking Metrics:

WDD 2646 (last week   2648)

(https://wiki.yoctoproject.org/charts/combo.html)


Key Status Links for YP:

https://wiki.yoctoproject.org/wiki/Yocto_Project_v2.5_Status

https://wiki.yoctoproject.org/wiki/Yocto_2.5_Schedule

https://wiki.yoctoproject.org/wiki/Yocto_2.5_Features


The Status reports are now stored on the wiki at: 
https://wiki.yoctoproject.org/wiki/Weekly_Status


[If anyone has suggestions for other information you’d like to see on this 
weekly status update, let us know!]

Robin Jordan
Yocto Project Program Manager
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH V2 1/2] glibc: Upgrade to 2.27 release

2018-02-26 Thread Burton, Ross
I know you didn't test this:  :)

On 26 February 2018 at 14:38, Khem Raj  wrote:

> @@ -40,8 +40,13 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc
> \
> file://0023-Define-DUMMY_LOCALE_T-if-not-defined.patch \
> 
> file://0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch
> \
> file://0025-locale-fix-hard-coded-reference-to-gcc-E.patch \
> +<<< HEAD:meta/recipes-core/glibc/glibc_2.26.bb
> file://0027-glibc-reset-dl-load-write-lock-after-forking.patch
> \
> file://0028-Bug-4578-add-ld.so-lock-while-fork.patch \
> +===
> +   file://0026-reset-dl_load_write_lock-after-forking.patch \
> +   
> file://0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch
> \
> +>>> 2ce2695790... glibc: Upgrade to 2.27 release:meta/recipes-core/
> glibc/glibc_2.27.bb
>  "
>

Locally I've got the previous 2.27 upgrade squashed into a revert of the
2.26 bump, presumably there are no other changes required?
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Adding recipe to DEPENDS only if mesa provides virtual/opengl

2018-02-26 Thread Burton, Ross
You could look at the value of PREFERRED_PROVIDER_virtual/libgl but
considering I've seen GL implementations being almost-mesa and providing
gbm I suspect you should have a PACKAGECONFIG that you can set from your
machine/distro configuration.

Ross

On 25 February 2018 at 13:30, Carlos Rafael Giani 
wrote:

> A recipe here has support for Mesa 3D GBM based EGL contexts (which is
> needed for rendering directly to KMS framebuffers). However, this also
> needs libdrm.
> I'd like to detect that the provider is Mesa3D, and if so, add libdrm to
> DEPENDS.
> Perhaps it is possible to detect that libgbm is available, and I can use
> that to decide whether or not I need to add libdrm to DEPENDS?
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH V2 2/2] musl: Upgrade to 1.1.19 release point

2018-02-26 Thread Khem Raj
Changes from the current commit

https://git.musl-libc.org/cgit/musl/log/?qt=range=628cf979b249fa76a80962e2eefe05073216a4db..55df09bfccbfe21fc9dd7d8f94550c0ff25ace04

Summary of this release
http://www.openwall.com/lists/musl/2018/02/22/2

Author list has been enhanced no changes to license itself

https://git.musl-libc.org/cgit/musl/commit/?id=1366b3c5e6d89d5ba90dd41fe5bf0246c5299b84

Signed-off-by: Khem Raj 
---
Changes since v1:
- Fix license checksum errors

 meta/recipes-core/musl/musl.inc| 2 +-
 meta/recipes-core/musl/musl_git.bb | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/musl/musl.inc b/meta/recipes-core/musl/musl.inc
index 9af1172ae0..ba9b1a046c 100644
--- a/meta/recipes-core/musl/musl.inc
+++ b/meta/recipes-core/musl/musl.inc
@@ -9,7 +9,7 @@ standards-conformance and safety."
 HOMEPAGE = "http://www.musl-libc.org/;
 LICENSE = "MIT"
 SECTION = "libs"
-LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=7928b7ad32ceda04932478e330e52f7f"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2b9032093c4765e49ae85ddeba29afff"
 
 PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:"
 
diff --git a/meta/recipes-core/musl/musl_git.bb 
b/meta/recipes-core/musl/musl_git.bb
index 8b2cb4d49d..8906ac6beb 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -3,9 +3,9 @@
 
 require musl.inc
 
-SRCREV = "628cf979b249fa76a80962e2eefe05073216a4db"
+SRCREV = "55df09bfccbfe21fc9dd7d8f94550c0ff25ace04"
 
-PV = "1.1.18+git${SRCPV}"
+PV = "1.1.19+git${SRCPV}"
 
 # mirror is at git://github.com/kraj/musl.git
 
-- 
2.16.2

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


[OE-core] [PATCH V2 1/2] glibc: Upgrade to 2.27 release

2018-02-26 Thread Khem Raj
Signed-off-by: Khem Raj 
---
Changes since v1:
- Rebase on master

 meta/conf/distro/include/tcmode-default.inc|  2 +-
 ...tive_2.26.bb => cross-localedef-native_2.27.bb} |  4 +-
 ...glibc-initial_2.26.bb => glibc-initial_2.27.bb} |  0
 .../{glibc-locale_2.26.bb => glibc-locale_2.27.bb} |  0
 .../{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} |  0
 ...glibc-scripts_2.26.bb => glibc-scripts_2.27.bb} |  0
 ...libc-Look-for-host-system-ld.so.cache-as-.patch | 12 +--
 ...libc-Fix-buffer-overrun-with-a-relocated-.patch | 10 +--
 ...libc-Raise-the-size-of-arrays-containing-.patch | 28 +++
 ...ivesdk-glibc-Allow-64-bit-atomics-for-x86.patch |  8 +-
 ...500-e5500-e6500-603e-fsqrt-implementation.patch |  6 +-
 ...-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch |  8 +-
 ...-Fix-undefined-reference-to-__sqrt_finite.patch |  6 +-
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...bug-1443-which-explains-what-the-patch-do.patch | 10 +--
 ...n-libm-err-tab.pl-with-specific-dirs-in-S.patch | 10 +--
 ...qrt-f-are-now-inline-functions-and-call-o.patch |  6 +-
 ...-configure.ac-handle-correctly-libc_cv_ro.patch |  8 +-
 .../glibc/glibc/0013-Add-unused-attribute.patch|  8 +-
 ...thin-the-path-sets-wrong-config-variables.patch | 10 +--
 ...-timezone-re-written-tzselect-as-posix-sh.patch |  8 +-
 ...move-bash-dependency-for-nscd-init-script.patch |  6 +-
 ...c-Cross-building-and-testing-instructions.patch |  6 +-
 ...018-eglibc-Help-bootstrap-cross-toolchain.patch |  8 +-
 .../0019-eglibc-Clear-cache-lines-on-ppc8xx.patch  | 10 +--
 ...0020-eglibc-Resolve-__fpscr_values-on-SH4.patch |  8 +-
 .../glibc/0021-eglibc-Install-PIC-archives.patch   | 20 ++---
 ...ward-port-cross-locale-generation-support.patch | 90 +++---
 ...0023-Define-DUMMY_LOCALE_T-if-not-defined.patch |  8 +-
 c-Make-_dl_build_local_scope-breadth-fir.patch | 10 +--
 ...-locale-fix-hard-coded-reference-to-gcc-E.patch |  6 +-
 ...6-reset-dl_load_write_lock-after-forking.patch} | 29 +++
 ...o-lock-before-switching-to-malloc_atfork.patch} | 27 +--
 .../glibc/{glibc_2.26.bb => glibc_2.27.bb} | 11 +--
 34 files changed, 203 insertions(+), 186 deletions(-)
 rename meta/recipes-core/glibc/{cross-localedef-native_2.26.bb => 
cross-localedef-native_2.27.bb} (93%)
 rename meta/recipes-core/glibc/{glibc-initial_2.26.bb => 
glibc-initial_2.27.bb} (100%)
 rename meta/recipes-core/glibc/{glibc-locale_2.26.bb => glibc-locale_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-mtrace_2.26.bb => glibc-mtrace_2.27.bb} 
(100%)
 rename meta/recipes-core/glibc/{glibc-scripts_2.26.bb => 
glibc-scripts_2.27.bb} (100%)
 rename 
meta/recipes-core/glibc/glibc/{0027-glibc-reset-dl-load-write-lock-after-forking.patch
 => 0026-reset-dl_load_write_lock-after-forking.patch} (63%)
 rename 
meta/recipes-core/glibc/glibc/{0028-Bug-4578-add-ld.so-lock-while-fork.patch => 
0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch} (76%)
 rename meta/recipes-core/glibc/{glibc_2.26.bb => glibc_2.27.bb} (94%)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 075d2c5b24..87a5920cad 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -26,7 +26,7 @@ GCCVERSION ?= "7.%"
 SDKGCCVERSION ?= "${GCCVERSION}"
 BINUVERSION ?= "2.30%"
 GDBVERSION ?= "8.0%"
-GLIBCVERSION ?= "2.26%"
+GLIBCVERSION ?= "2.27%"
 LINUXLIBCVERSION ?= "4.15%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb 
b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
similarity index 93%
rename from meta/recipes-core/glibc/cross-localedef-native_2.26.bb
rename to meta/recipes-core/glibc/cross-localedef-native_2.27.bb
index af02a0ce1d..d633e9bc37 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.26.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.27.bb
@@ -21,8 +21,8 @@ SRCBRANCH ?= "release/${PV}/master"
 GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)"
 
-SRCREV_glibc ?= "d300041c533a3d837c9f37a099bcc95466860e98"
-SRCREV_localedef ?= "dfb4afe551c6c6e94f9cc85417bd1f582168c843"
+SRCREV_glibc ?= "23158b08a0908f381459f273a984c6fd328363cb"
+SRCREV_localedef ?= "de5bdbd5e76b5403a4151b9b9f958b6cca36b3e7"
 
 SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \

git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef
 \
diff --git a/meta/recipes-core/glibc/glibc-initial_2.26.bb 
b/meta/recipes-core/glibc/glibc-initial_2.27.bb
similarity index 100%
rename from meta/recipes-core/glibc/glibc-initial_2.26.bb
rename to meta/recipes-core/glibc/glibc-initial_2.27.bb
diff --git a/meta/recipes-core/glibc/glibc-locale_2.26.bb 
b/meta/recipes-core/glibc/glibc-locale_2.27.bb
similarity index 100%
rename from meta/recipes-core/glibc/glibc-locale_2.26.bb
rename to 

Re: [OE-core] [PATCH] musl: Upgrade to 1.1.19 release point

2018-02-26 Thread Burton, Ross
ERROR: musl-1.1.19+gitAUTOINC+55df09bfcc-r0 do_populate_lic: QA Issue:
musl: The LIC_FILES_CHKSUM does not match for
file://COPYRIGHT;md5=7928b7ad32ceda04932478e330e52f7f
musl: The new md5 checksum is 2b9032093c4765e49ae85ddeba29afff
musl: Here is the selected license text:
vv
musl as a whole is licensed under the following standard MIT license:

--
Copyright © 2005-2014 Rich Felker, et al.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
...
Szabolcs Nagy

all of whom have explicitly granted such permission.

This file previously contained text expressing a belief that most of
the files covered by the above exception were sufficiently trivial not
to be subject to copyright, resulting in confusion over whether it
negated the permissions granted in the license. In the spirit of
permissive licensing, and of not having licensing issues being an
obstacle to adoption, that text has been removed.
^^
musl: Check if the license information has changed in
/data/poky-tmp/master-musl/build/work/corei7-64-poky-linux-musl/musl/1.1.19+gitAUTOINC+55df09bfcc-r0/git/COPYRIGHT
to verify that the LICENSE value "MIT" remains valid [license-checksum]
ERROR: musl-1.1.19+gitAUTOINC+55df09bfcc-r0 do_populate_lic: Fatal QA
errors found, failing task.
ERROR: musl-1.1.19+gitAUTOINC+55df09bfcc-r0 do_populate_lic: Function
failed: populate_lic_qa_checksum
ERROR: Logfile of failure stored in:
/data/poky-tmp/master-musl/build/work/corei7-64-poky-linux-musl/musl/1.1.19+gitAUTOINC+55df09bfcc-r0/temp/log.do_populate_lic.27493
ERROR: Task 
(/home/ross/Yocto/poky/meta/recipes-core/musl/musl_git.bb:do_populate_lic)
failed with exit code '1'

On 23 February 2018 at 15:11, Khem Raj  wrote:

> Changes from the current commit
>
> https://git.musl-libc.org/cgit/musl/log/?qt=range=
> 628cf979b249fa76a80962e2eefe05073216a4db..55df09bfccbfe21fc9dd7d8f94550c
> 0ff25ace04
>
> Summary of this release
> http://www.openwall.com/lists/musl/2018/02/22/2
>
> Signed-off-by: Khem Raj 
> ---
>  meta/recipes-core/musl/musl_git.bb | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/
> musl_git.bb
> index 8b2cb4d49d..8906ac6beb 100644
> --- a/meta/recipes-core/musl/musl_git.bb
> +++ b/meta/recipes-core/musl/musl_git.bb
> @@ -3,9 +3,9 @@
>
>  require musl.inc
>
> -SRCREV = "628cf979b249fa76a80962e2eefe05073216a4db"
> +SRCREV = "55df09bfccbfe21fc9dd7d8f94550c0ff25ace04"
>
> -PV = "1.1.18+git${SRCPV}"
> +PV = "1.1.19+git${SRCPV}"
>
>  # mirror is at git://github.com/kraj/musl.git
>
> --
> 2.16.2
>
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH 01/27] pkgconf: upgrade to version 1.4.2

2018-02-26 Thread Burton, Ross
Whoops, I thought the upgrade was safe without the rest of the series.

Khem, are you using pkgconf instead of pkg-config then?

Ross

On 26 February 2018 at 07:54, Maxin B. John  wrote:

> Hi Khem,
>
> On Sun, Feb 25, 2018 at 11:18:58PM -0800, Khem Raj wrote:
> > This is regressing kmod builds
> >
> > ERROR: kmod-25+gitAUTOINC+aca4eca103-r0 do_package: QA Issue: kmod:
> > Files/directories were installed but not shipped in any pack
> > age:
> >
> > /mnt/a/oe-build/build/tmp/work/aarch64-bec-linux/kmod/
> 25+gitAUTOINC+aca4eca103-r0/recipe-sysroot/usr/share/bash-
> completion/completions/kmod
> >
> > as you can see its stll carrying the sysroot prefix into DESTDIR
> >
> > and this is how kmod is asserting for bash-completion dir
> >
> > with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir
> bash-completion)
> >
> > it was working fine with 1.4.0
>
> Good catch. This patch has removed the work-around that we had to make
> pkgconf build compatible with freedesktop.org's pkg-conf in wrappers like:
>
> > > -unset PKG_CONFIG_SYSROOT_DIR
>
> Without the associated kmod fix, this will fail as above. I will revert
> those wrapper changes till we decide to go with pkgconf or not.
>
> > On Mon, Feb 19, 2018 at 12:36 AM, Maxin B. John 
> wrote:
> > > pkgconf improved compatibility with freedesktop.org pkg-config.
> > > So, we don't need to unset PKG_CONFIG_SYSROOT_DIR in wrappers.
> > >
> > > Signed-off-by: Maxin B. John 
> > > ---
> > >  meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in | 4
> +---
> > > -unset PKG_CONFIG_SYSROOT_DIR
>
> Best Regards,
> Maxin
> --
> ___
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] pkgconf: revert changes to pkg-config-wrapper

2018-02-26 Thread Maxin B. John
To maintain the status quo, revert changes to pkgconf wrappers.
This helps to keep it compatible with freedesktop.org pkg-config.

Signed-off-by: Maxin B. John 
---
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in   | 4 +++-
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in | 1 +
 meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper   | 9 +
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
index d4ac71d..4fc9b0a 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-esdk.in
@@ -5,6 +5,7 @@
 if [ "pkg-config-native" = "`basename $0`" ] ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+   unset PKG_CONFIG_SYSROOT_DIR
 else
# in this case check if we are in the esdk
if [ "$OE_SKIP_SDK_CHECK" = "1" ] ; then
@@ -15,8 +16,9 @@ else
if ( echo $parentpid_info | grep -q check-lxdialog ) ; then
PKG_CONFIG_PATH="@PATH_NATIVE@"
PKG_CONFIG_LIBDIR="@LIBDIR_NATIVE@"
+   unset PKG_CONFIG_SYSROOT_DIR
fi
fi
 fi
 
-pkg-config "$@"
+pkg-config.real "$@"
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
index c2e86e5..9ed30a0 100644
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-native.in
@@ -1,5 +1,6 @@
 #! /bin/sh
 
 PKG_CONFIG_PATH="@PATH_NATIVE@"
+unset PKG_CONFIG_SYSROOT_DIR
 
 pkg-config "$@"
diff --git a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper 
b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
index fc9b488..695f349 100755
--- a/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
+++ b/meta/recipes-devtools/pkgconf/pkgconf/pkg-config-wrapper
@@ -4,4 +4,13 @@
 # Copyright (C) 2015 Christopher Larson 
 # License: MIT (see COPYING.MIT at the root of the repository for terms)
 
+for arg; do
+case "$arg" in
+--variable|--variable=*)
+# pkg-config doesn't sysroot-prefix user variables
+unset PKG_CONFIG_SYSROOT_DIR
+;;
+esac
+done
+
 exec pkgconf "$@"
-- 
2.4.0

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


Re: [OE-core] Linux firmware for iwlwifi 8000c disappeared in pyro

2018-02-26 Thread Palleti, Avinash Reddy
Gentle Reminder.

Thanks,
Avinash

From: Palleti, Avinash Reddy
Sent: Wednesday, February 21, 2018 10:22 AM
To: akuster808 ; Andrei Gherzan ; 
akus...@mvista.com
Cc: openembedded 
Subject: RE: [OE-core] Linux firmware for iwlwifi 8000c disappeared in pyro

It needs to be merged in both pyro and pyro-next.

Thanks,
Avinash

From: akuster808 [mailto:akuster...@gmail.com]
Sent: Wednesday, February 21, 2018 10:17 AM
To: Andrei Gherzan >; Palleti, 
Avinash Reddy 
>; 
akus...@mvista.com
Cc: openembedded 
>
Subject: Re: [OE-core] Linux firmware for iwlwifi 8000c disappeared in pyro


in stable/pyro-next

On 02/20/2018 04:50 AM, Andrei Gherzan wrote:
On Fri, Feb 16, 2018 at 2:08 PM, Andrei Gherzan 
> wrote:
On Fri, Feb 16, 2018 at 1:48 PM, Palleti, Avinash Reddy 
> wrote:
 I submitted a fix sometime back,
http://lists.openembedded.org/pipermail/openembedded-core/2018-February/147291.html


Great. We have the fix available and approved by Saul. Shall we merge?

Adding the pyro maintainer to this thread.

--
Andrei Gherzan


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