Re: [OE-core] [PATCH] arch-armv7a.inc: default to Thumb2 instruction set for armv7a and above
This variable was always meant to be used from DISTRO config, why not add it to: oe-core/meta/conf/distro/include/default-distrovars.inc or oe-core/meta/conf/distro/include/tcmode-default.inc ? On Sat, May 19, 2018 at 1:40 AM Khem Rajwrote: > > On Fri, May 18, 2018 at 3:50 PM Andre McCurdy wrote: > >> Although there may still be specific cases which can benefit from the >> ARM instruction set, the Thumb2 instruction set is generally a better >> default for armv7a class CPUs. Distros such as Debian and Fedora have >> been targeting Thumb2 by default for some time. >> >> Note that setting ARM_INSTRUCTION_SET has no effect unless >> TUNE_FEATURES contains "thumb" (which is controlled by the "t" suffix >> in DEFAULTTUNE, e.g. armv7vehf-neon -vs- armv7vethf-neon, etc) so out >> of tree machine configs may need to update their DEFAULTTUNE to take >> advantage of this change. > > > > I think this is a good change and we shoudl take it in thumb2 is default > ISA > for other major distros as well > > Oe based distros who ship feeds might be affected > >> >> >> Signed-off-by: Andre McCurdy >> --- >> meta/conf/machine/include/arm/arch-armv7a.inc | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/meta/conf/machine/include/arm/arch-armv7a.inc >> b/meta/conf/machine/include/arm/arch-armv7a.inc >> index bad1c27..a2663d8 100644 >> --- a/meta/conf/machine/include/arm/arch-armv7a.inc >> +++ b/meta/conf/machine/include/arm/arch-armv7a.inc >> @@ -1,4 +1,5 @@ >> DEFAULTTUNE ?= "armv7athf" >> +ARM_INSTRUCTION_SET ?= "thumb" >> >> TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" >> TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" >> -- >> 1.9.1 >> >> -- >> ___ >> 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 > -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 7/8] busybox: update to 1.28.3
On 05/19/2018 10:13 AM, Armin Kuster wrote: > SRC_URI = > "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ > - file://busybox-udhcpc-no_deconfig.patch \ > file://find-touchscreen.sh \ > file://busybox-cron \ > file://busybox-httpd \ > @@ -42,11 +41,9 @@ SRC_URI = > "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ > file://rcK \ > file://runlevel \ > file://makefile-libbb-race.patch \ > - file://CVE-2011-5325.patch \ > - file://CVE-2017-15873.patch \ > - file://busybox-CVE-2017-16544.patch \ > " > SRC_URI_append_libc-musl = " file://musl.cfg " > > -SRC_URI[tarball.md5sum] = "476186f4bab81781dab2369bfd42734e" > -SRC_URI[tarball.sha256sum] = > "9d4be516b61e6480f156b11eb42577a13529f75d3383850bb75c50c285de63df" > +#file://busybox-udhcpc-no_deconfig.patch Why has this been removed and commented out? Is this intentional? Thanks. -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 8/8] openssh: fix some ptest exec issues
From: Armin KusterSUDO needs to be empty to run some of the tests on the target. compile check-perm which is needed for some tests. skip "unit" tests in regress/Makefile Signed-off-by: Armin Kuster --- meta/recipes-connectivity/openssh/openssh/run-ptest | 2 +- meta/recipes-connectivity/openssh/openssh_7.7p1.bb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-connectivity/openssh/openssh/run-ptest b/meta/recipes-connectivity/openssh/openssh/run-ptest index 36a3d2a..39fb521 100755 --- a/meta/recipes-connectivity/openssh/openssh/run-ptest +++ b/meta/recipes-connectivity/openssh/openssh/run-ptest @@ -4,7 +4,7 @@ export TEST_SHELL=sh cd regress sed -i "/\t\tagent-ptrace /d" Makefile -make -k .OBJDIR=`pwd` .CURDIR=`pwd` SUDO="sudo" tests \ +make -k .OBJDIR=`pwd` .CURDIR=`pwd` SUDO="" tests \ | sed -e 's/^skipped/SKIP: /g' -e 's/^ok /PASS: /g' -e 's/^failed/FAIL: /g' SSHAGENT=`which ssh-agent` diff --git a/meta/recipes-connectivity/openssh/openssh_7.7p1.bb b/meta/recipes-connectivity/openssh/openssh_7.7p1.bb index 691dec6..40e0fb0 100644 --- a/meta/recipes-connectivity/openssh/openssh_7.7p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_7.7p1.bb @@ -84,7 +84,7 @@ do_configure_prepend () { do_compile_ptest() { # skip regress/unittests/ binaries: this will silently skip # unittests in run-ptests which is good because they are so slow. -oe_runmake regress/modpipe regress/setuid-allowed regress/netcat +oe_runmake regress/modpipe regress/setuid-allowed regress/netcat regress/check-perm } do_install_append () { @@ -132,6 +132,7 @@ do_install_append () { do_install_ptest () { sed -i -e "s|^SFTPSERVER=.*|SFTPSERVER=${libexecdir}/sftp-server|" regress/test-exec.sh + sed -i -e "s|EGRESS_TARGETS=./*unit|EGRESS_TARGETS=|" regress/Makefile cp -r regress ${D}${PTEST_PATH} } -- 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] kexec-tools: upgrade 2.0.16 -> 2.0.17
From: Armin KusterSigned-off-by: Armin Kuster --- ...rm64-Set-fno-PIC-along-with-mcmodel-large.patch | 33 -- ...kexec-tools_2.0.16.bb => kexec-tools_2.0.17.bb} | 9 ++ 2 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch rename meta/recipes-kernel/kexec/{kexec-tools_2.0.16.bb => kexec-tools_2.0.17.bb} (92%) diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch deleted file mode 100644 index 786fc0c..000 --- a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch +++ /dev/null @@ -1,33 +0,0 @@ -From a12dfe9be05f9dee96c7637a20c01e05711c563c Mon Sep 17 00:00:00 2001 -From: David Michael -Date: Sun, 7 Jan 11:26:57 2018 -0500 -Subject: [PATCH] arm64: Set -fno-PIC along with -mcmodel=large - -As seen in GCC's gcc/config/aarch64/aarch64.c, -fPIC with large -code model is unsupported. This fixes the "sorry, unimplemented" -errors when building with compilers defaulting to -fPIC. - -Upstream-Status: Backport - -Signed-off-by: Simon Horman -Signed-off-by: David Michael -Signed-off-by: Mingli Yu - purgatory/arch/arm64/Makefile | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile -index 636abea..80068ca 100644 a/purgatory/arch/arm64/Makefile -+++ b/purgatory/arch/arm64/Makefile -@@ -1,6 +1,7 @@ - - arm64_PURGATORY_EXTRA_CFLAGS = \ - -mcmodel=large \ -+ -fno-PIC \ - -fno-stack-protector \ - -fno-asynchronous-unwind-tables \ - -Wundef \ --- -2.7.4 - diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb similarity index 92% rename from meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb rename to meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb index bd87b37..f4ec586 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.17.bb @@ -9,8 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ea5bed2f60d357618ca161ad539f7c0a \ file://kexec/kexec.c;beginline=1;endline=20;md5=af10f6ae4a8715965e648aa687ad3e09" DEPENDS = "zlib xz" -PR = "r1" - SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz \ file://kdump \ file://kdump.conf \ @@ -20,11 +18,10 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz file://0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch \ file://kexec-x32.patch \ file://0001-Disable-PIE-during-link.patch \ - file://0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch \ - " + " -SRC_URI[md5sum] = "5198968de79b5ded96f97f3c2ea9637b" -SRC_URI[sha256sum] = "cf17fc99bf77c9b39f06ee88ac0e86d0349c4a0c3f8214a3cc78eece872f6f3a" +SRC_URI[md5sum] = "8e071ca473694a71e4ae60ed7ef6f377" +SRC_URI[sha256sum] = "450c87ba048641eb05f9717f5567aca57f063c266149ae663b58a34e5852deaf" inherit autotools update-rc.d systemd -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 7/8] busybox: update to 1.28.3
From: Armin Kusterremoved patches included in update: busybox/CVE-2011-5325.patch busybox/CVE-2017-15873.patch busybox/busybox-CVE-2017-16544.patch refactored busybox-udhcpc-no_deconfig.patch for this update Signed-off-by: Armin Kuster --- .../busybox/busybox/CVE-2011-5325.patch| 481 - .../busybox/busybox/CVE-2017-15873.patch | 95 .../busybox/busybox/busybox-CVE-2017-16544.patch | 43 -- .../busybox/busybox-udhcpc-no_deconfig.patch | 36 +- .../{busybox_1.27.2.bb => busybox_1.28.3.bb} | 9 +- 5 files changed, 21 insertions(+), 643 deletions(-) delete mode 100755 meta/recipes-core/busybox/busybox/CVE-2011-5325.patch delete mode 100644 meta/recipes-core/busybox/busybox/CVE-2017-15873.patch delete mode 100644 meta/recipes-core/busybox/busybox/busybox-CVE-2017-16544.patch rename meta/recipes-core/busybox/{busybox_1.27.2.bb => busybox_1.28.3.bb} (83%) diff --git a/meta/recipes-core/busybox/busybox/CVE-2011-5325.patch b/meta/recipes-core/busybox/busybox/CVE-2011-5325.patch deleted file mode 100755 index 0926107..000 --- a/meta/recipes-core/busybox/busybox/CVE-2011-5325.patch +++ /dev/null @@ -1,481 +0,0 @@ -busybox-1.27.2: Fix CVE-2011-5325 - -[No upstream tracking] -- https://bugs.busybox.net/show_bug.cgi?id=8411 - -libarchive: do not extract unsafe symlinks - -Prevent unsafe links extracting unless env variable $EXTRACT_UNSAFE_SYMLINKS=1 -is not set. Untarring file with -C DESTDIR parameter could be extracted with -unwanted symlinks. This doesn't feel right, and IIRC GNU tar doesn't do that. -Include necessary changes from previous commits. - -Upstream-Status: Backport [https://git.busybox.net/busybox/commit/?id=bc9bbeb2b81001e8731cd2ae501c8fccc8d87cc7] -CVE: CVE-2011-5325 -bug: 8411 -Signed-off-by: Radovan Scasny -Signed-off-by: Andrej Valek - -diff --git a/archival/libarchive/Kbuild.src b/archival/libarchive/Kbuild.src -index 942e755..e1a8a75 100644 a/archival/libarchive/Kbuild.src -+++ b/archival/libarchive/Kbuild.src -@@ -12,6 +12,8 @@ COMMON_FILES:= \ - data_extract_all.o \ - data_extract_to_stdout.o \ - \ -+ unsafe_symlink_target.o \ -+\ - filter_accept_all.o \ - filter_accept_list.o \ - filter_accept_reject_list.o \ -diff --git a/archival/libarchive/data_extract_all.c b/archival/libarchive/data_extract_all.c -index 1830ffb..b828b65 100644 a/archival/libarchive/data_extract_all.c -+++ b/archival/libarchive/data_extract_all.c -@@ -128,10 +128,9 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle) - res = link(hard_link, dst_name); - if (res != 0 && !(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET)) { - /* shared message */ -- bb_perror_msg("can't create %slink " -- "%s to %s", "hard", -- dst_name, -- hard_link); -+ bb_perror_msg("can't create %slink '%s' to '%s'", -+ "hard", dst_name, hard_link -+ ); - } - /* Hardlinks have no separate mode/ownership, skip chown/chmod */ - goto ret; -@@ -178,15 +177,17 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle) - case S_IFLNK: - /* Symlink */ - //TODO: what if file_header->link_target == NULL (say, corrupted tarball?) -- res = symlink(file_header->link_target, dst_name); -- if (res != 0 -- && !(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET) -- ) { -- /* shared message */ -- bb_perror_msg("can't create %slink " -- "%s to %s", "sym", -- dst_name, -- file_header->link_target); -+ if (!unsafe_symlink_target(file_header->link_target)) { -+ res = symlink(file_header->link_target, dst_name); -+ if (res != 0 -+ && !(archive_handle->ah_flags & ARCHIVE_EXTRACT_QUIET) -+ ) { -+ /* shared message */ -+ bb_perror_msg("can't create %slink '%s' to '%s'", -+ "sym", -+ dst_name, file_header->link_target -+ ); -+ } - } - break; - case S_IFSOCK: -diff --git a/archival/libarchive/unsafe_symlink_target.c b/archival/libarchive/unsafe_symlink_target.c -new file mode 100644 -index 000..ee46e28 /dev/null -+++
[OE-core] [PATCH 3/8] libdmx: upgrade 1.1.3 -> 1.1.4
From: Armin KusterSigned-off-by: Armin Kuster --- meta/recipes-graphics/xorg-lib/{libdmx_1.1.3.bb => libdmx_1.1.4.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-graphics/xorg-lib/{libdmx_1.1.3.bb => libdmx_1.1.4.bb} (79%) diff --git a/meta/recipes-graphics/xorg-lib/libdmx_1.1.3.bb b/meta/recipes-graphics/xorg-lib/libdmx_1.1.4.bb similarity index 79% rename from meta/recipes-graphics/xorg-lib/libdmx_1.1.3.bb rename to meta/recipes-graphics/xorg-lib/libdmx_1.1.4.bb index c74b706..66172cb 100644 --- a/meta/recipes-graphics/xorg-lib/libdmx_1.1.3.bb +++ b/meta/recipes-graphics/xorg-lib/libdmx_1.1.4.bb @@ -15,6 +15,6 @@ DEPENDS += "libxext xorgproto" PE = "1" -SRC_URI[md5sum] = "ba983eba5a9f05d152a0725b8e863151" -SRC_URI[sha256sum] = "c97da36d2e56a2d7b6e4f896241785acc95e97eb9557465fd66ba2a155a7b201" +SRC_URI[md5sum] = "d2f1f0ec68ac3932dd7f1d9aa0a7a11c" +SRC_URI[sha256sum] = "253f90005d134fa7a209fbcbc5a3024335367c930adf0f3203e754cf32747243" -- 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] nss: update to 3.36.1
From: Armin Kusterremoved patches included in update: 0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch nss-build-hacl-poly1305-aarch64.patch Signed-off-by: Armin Kuster --- ...1437734-Use-snprintf-in-sign.c-r-ttaubert.patch | 119 - .../nss/nss/nss-build-hacl-poly1305-aarch64.patch | 30 -- .../nss/{nss_3.35.bb => nss_3.36.1.bb} | 6 +- 3 files changed, 2 insertions(+), 153 deletions(-) delete mode 100644 meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch delete mode 100644 meta/recipes-support/nss/nss/nss-build-hacl-poly1305-aarch64.patch rename meta/recipes-support/nss/{nss_3.35.bb => nss_3.36.1.bb} (96%) diff --git a/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch b/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch deleted file mode 100644 index bc10f33..000 --- a/meta/recipes-support/nss/nss/0001-Bug-1437734-Use-snprintf-in-sign.c-r-ttaubert.patch +++ /dev/null @@ -1,119 +0,0 @@ -From 6f7d7be9997ba6727a5ad7c3800df9051160dc12 Mon Sep 17 00:00:00 2001 -From: Martin Thomson -Date: Tue, 13 Feb 2018 12:30:58 +1100 -Subject: [PATCH] Bug 1437734 - Use snprintf in sign.c, r=ttaubert - ---HG-- -extra : rebase_source : 97921ece71ff86b18d32b891591608290eed4d83 -Signed-off-by: Khem Raj -Upstream-Status: Backport [https://github.com/nss-dev/nss/commit/0a9078b3cde97add7c825c9d13467a8401ad0c88#diff-b42512151dc137537091f823f7701804.patch] - - nss/cmd/signtool/sign.c | 58 - - 1 file changed, 48 insertions(+), 10 deletions(-) - -diff --git a/nss/cmd/signtool/sign.c b/nss/cmd/signtool/sign.c -index 6e776069a..6f8e43946 100644 a/nss/cmd/signtool/sign.c -+++ b/nss/cmd/signtool/sign.c -@@ -43,6 +43,7 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, - int status; - char tempfn[FNSIZE], fullfn[FNSIZE]; - int keyType = rsaKey; -+int count; - - metafile = meta_file; - optimize = _optimize; -@@ -81,9 +82,18 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, - } - - /* rsa/dsa to zip */ --sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" -- : "rsa")); --sprintf(fullfn, "%s/%s", tree, tempfn); -+count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" : "rsa")); -+if (count >= sizeof(tempfn)) { -+PR_fprintf(errorFD, "unable to write key metadata\n"); -+errorCount++; -+exit(ERRX); -+} -+count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); -+if (count >= sizeof(fullfn)) { -+PR_fprintf(errorFD, "unable to write key metadata\n"); -+errorCount++; -+exit(ERRX); -+} - JzipAdd(fullfn, tempfn, zipfile, compression_level); - - /* Loop through all files & subdirectories, add to archive */ -@@ -93,20 +103,44 @@ SignArchive(char *tree, char *keyName, char *zip_file, int javascript, - } - /* mf to zip */ - strcpy(tempfn, "META-INF/manifest.mf"); --sprintf(fullfn, "%s/%s", tree, tempfn); -+count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); -+if (count >= sizeof(fullfn)) { -+PR_fprintf(errorFD, "unable to write manifest\n"); -+errorCount++; -+exit(ERRX); -+} - JzipAdd(fullfn, tempfn, zipfile, compression_level); - - /* sf to zip */ --sprintf(tempfn, "META-INF/%s.sf", base); --sprintf(fullfn, "%s/%s", tree, tempfn); -+count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.sf", base); -+if (count >= sizeof(tempfn)) { -+PR_fprintf(errorFD, "unable to write sf metadata\n"); -+errorCount++; -+exit(ERRX); -+} -+count = snprintf(fullfn, sizeof(fullfn), "%s/%s", tree, tempfn); -+if (count >= sizeof(fullfn)) { -+PR_fprintf(errorFD, "unable to write sf metadata\n"); -+errorCount++; -+exit(ERRX); -+} - JzipAdd(fullfn, tempfn, zipfile, compression_level); - - /* Add the rsa/dsa file to the zip archive normally */ - if (!xpi_arc) { - /* rsa/dsa to zip */ --sprintf(tempfn, "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" -- : "rsa")); --sprintf(fullfn, "%s/%s", tree, tempfn); -+count = snprintf(tempfn, sizeof(tempfn), "META-INF/%s.%s", base, (keyType == dsaKey ? "dsa" : "rsa")); -+if (count >= sizeof(tempfn)) { -+PR_fprintf(errorFD, "unable to write key metadata\n"); -+errorCount++; -+exit(ERRX); -+} -+count = snprintf(fullfn, sizeof(fullfn),
[OE-core] [PATCH 4/8] xf86-input-libinput: upgrade 0.26.0 -> 0.27.1
From: Armin KusterSigned-off-by: Armin Kuster --- .../{xf86-input-libinput_0.26.0.bb => xf86-input-libinput_0.27.1.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-graphics/xorg-driver/{xf86-input-libinput_0.26.0.bb => xf86-input-libinput_0.27.1.bb} (63%) diff --git a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.27.1.bb similarity index 63% rename from meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb rename to meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.27.1.bb index 54c33d7..d31a911 100644 --- a/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.26.0.bb +++ b/meta/recipes-graphics/xorg-driver/xf86-input-libinput_0.27.1.bb @@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5e6b20ea2ef94a998145f0ea3f788ee0" DEPENDS += "libinput" -SRC_URI[md5sum] = "da47ef62eab1d0e922a8fa929ff81758" -SRC_URI[sha256sum] = "abca558fc2226f295691f1cf3412d4c0edeaa439f677ca25b5c9fab310d2387b" +SRC_URI[md5sum] = "bdad198a7a9f2ce2c1f90d5e6760462b" +SRC_URI[sha256sum] = "d4ad8dc5ad6f962a3f15f61ba9e9f8e37fa0b57eee9f484e2bd721d60ca72ee6" FILES_${PN} += "${datadir}/X11/xorg.conf.d" -- 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] openssh: upgrade 7.6p1 -> 7.7p1
From: Armin KusterSigned-off-by: Armin Kuster --- .../openssh/{openssh_7.6p1.bb => openssh_7.7p1.bb}| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta/recipes-connectivity/openssh/{openssh_7.6p1.bb => openssh_7.7p1.bb} (98%) diff --git a/meta/recipes-connectivity/openssh/openssh_7.6p1.bb b/meta/recipes-connectivity/openssh/openssh_7.7p1.bb similarity index 98% rename from meta/recipes-connectivity/openssh/openssh_7.6p1.bb rename to meta/recipes-connectivity/openssh/openssh_7.7p1.bb index e11e8d7..691dec6 100644 --- a/meta/recipes-connectivity/openssh/openssh_7.6p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_7.7p1.bb @@ -30,8 +30,8 @@ SRC_URI = "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar PAM_SRC_URI = "file://sshd" -SRC_URI[md5sum] = "06a88699018e5fef13d4655abfed1f63" -SRC_URI[sha256sum] = "a323caeeddfe145baaa0db16e98d784b1fbc7dd436a6bf1f479dfd5cd1d21723" +SRC_URI[md5sum] = "68ba883aff6958297432e5877e9a0fe2" +SRC_URI[sha256sum] = "d73be7e684e99efcd024be15a30bffcbe41b012b2f7b3c9084aed621775e6b8f" inherit useradd update-rc.d update-alternatives systemd -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 6/8] xserver-xorg: upgrade 1.19.6 -> 1.20.0
From: Armin KusterSigned-off-by: Armin Kuster --- ...1-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch | 19 +-- ...{xserver-xorg_1.19.6.bb => xserver-xorg_1.20.0.bb} | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) rename meta/recipes-graphics/xorg-xserver/{xserver-xorg_1.19.6.bb => xserver-xorg_1.20.0.bb} (89%) diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch index 16ec3ed..020a1cf 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-configure.ac-Fix-check-for-CLOCK_MONOTONIC.patch @@ -1,12 +1,13 @@ -Discover monotonic clock using compile-time check +From 8a91316c4a38f20e7866289f3d779a037d27a129 Mon Sep 17 00:00:00 2001 +From: Jussi Kukkonen +Date: Mon, 12 Dec 2016 12:11:39 +0200 +Subject: [PATCH] Discover monotonic clock using compile-time check monotonic clock check does not work when cross-compiling. Upstream-Status: Denied [Does not work on OpenBSD] Signed-off-by: Jussi Kukkonen - - Original patch follows: When xorg-xserver is being cross-compiled, there is currently no way @@ -21,15 +22,16 @@ monotonic clock is available. This check can run just fine when we are cross-compiling. Signed-off-by: David James + --- configure.ac | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/configure.ac b/configure.ac -index f7ab48c..26e85cd 100644 +index 2b21667..786e002 100644 --- a/configure.ac +++ b/configure.ac -@@ -1048,19 +1048,16 @@ if ! test "x$have_clock_gettime" = xno; then +@@ -984,19 +984,16 @@ if ! test "x$have_clock_gettime" = xno; then CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L" fi @@ -54,8 +56,5 @@ index f7ab48c..26e85cd 100644 - [MONOTONIC_CLOCK="cross compiling"]) +]])],[MONOTONIC_CLOCK=yes], [MONOTONIC_CLOCK=no]) - LIBS="$LIBS_SAVE" - CPPFLAGS="$CPPFLAGS_SAVE" --- -2.1.4 - + if test "$MONOTONIC_CLOCK" = "cross compiling"; then + AC_CHECK_DECL([CLOCK_MONOTONIC],[MONOTONIC_CLOCK="guessing yes"],[MONOTONIC_CLOCK=no],[#include ]) diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.0.bb similarity index 89% rename from meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb rename to meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.0.bb index c680cf9..620eb7b 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.19.6.bb +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_1.20.0.bb @@ -6,8 +6,8 @@ SRC_URI += "file://musl-arm-inb-outb.patch \ file://0003-Remove-check-for-useSIGIO-option.patch \ file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \ " -SRC_URI[md5sum] = "3e4ff034a331aed2322b078694a8" -SRC_URI[sha256sum] = "a732502f1db000cf36a376cd0c010ffdbf32ecdd7f1fa08ba7f5bdf9601cc197" +SRC_URI[md5sum] = "c1ca1ea0a905ea788da03c77cc38b06e" +SRC_URI[sha256sum] = "9d967d185f05709274ee0c4f861a4672463986e550ca05725ce27974f550d3e6" # These extensions are now integrated into the server, so declare the migration # path for in-place upgrades. -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] curl: update 7.59.0 -> 7.60.0
https://curl.haxx.se/changes.html#7_60_0 Also refresh 0001-replace-krb5-config-with-pkg-config.patch and drop configure_ac.patch, which we've apparently been dragging along unnecessarily for the past 5 years: https://github.com/curl/curl/commit/c277bd6ce7069819484eb3dc30b5858735fde377 Signed-off-by: Andre McCurdy--- .../curl/0001-replace-krb5-config-with-pkg-config.patch | 17 + meta/recipes-support/curl/curl/configure_ac.patch | 13 - .../curl/{curl_7.59.0.bb => curl_7.60.0.bb} | 15 --- 3 files changed, 13 insertions(+), 32 deletions(-) delete mode 100644 meta/recipes-support/curl/curl/configure_ac.patch rename meta/recipes-support/curl/{curl_7.59.0.bb => curl_7.60.0.bb} (91%) diff --git a/meta/recipes-support/curl/curl/0001-replace-krb5-config-with-pkg-config.patch b/meta/recipes-support/curl/curl/0001-replace-krb5-config-with-pkg-config.patch index 74e5d99..a7db1b3 100644 --- a/meta/recipes-support/curl/curl/0001-replace-krb5-config-with-pkg-config.patch +++ b/meta/recipes-support/curl/curl/0001-replace-krb5-config-with-pkg-config.patch @@ -1,17 +1,21 @@ -[PATCH] replace krb5-config with pkg-config +From ed70f0623708b8a6c1f58a5d243d87c5ff45b24d Mon Sep 17 00:00:00 2001 +From: Roy Li +Date: Tue, 26 Apr 2016 13:13:01 +0800 +Subject: [PATCH] replace krb5-config with pkg-config Upstream-Status: Pending Signed-off-by: Roy Li + --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac -index e99b303..dc93f39 100644 +index 5569a26..56b0380 100755 --- a/configure.ac +++ b/configure.ac -@@ -1196,7 +1196,7 @@ AC_ARG_WITH(gssapi, +@@ -1290,7 +1290,7 @@ AC_ARG_WITH(gssapi, fi ]) @@ -20,7 +24,7 @@ index e99b303..dc93f39 100644 save_CPPFLAGS="$CPPFLAGS" AC_MSG_CHECKING([if GSS-API support is requested]) -@@ -1207,7 +1207,7 @@ if test x"$want_gss" = xyes; then +@@ -1301,7 +1301,7 @@ if test x"$want_gss" = xyes; then if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi` elif test -f "$KRB5CONFIG"; then @@ -29,7 +33,7 @@ index e99b303..dc93f39 100644 elif test "$GSSAPI_ROOT" != "yes"; then GSSAPI_INCS="-I$GSSAPI_ROOT/include" fi -@@ -1300,7 +1300,7 @@ if test x"$want_gss" = xyes; then +@@ -1394,7 +1394,7 @@ if test x"$want_gss" = xyes; then elif test -f "$KRB5CONFIG"; then dnl krb5-config doesn't have --libs-only-L or similar, put everything dnl into LIBS @@ -38,6 +42,3 @@ index e99b303..dc93f39 100644 LIBS="$gss_libs $LIBS" else case $host in --- -1.9.1 - diff --git a/meta/recipes-support/curl/curl/configure_ac.patch b/meta/recipes-support/curl/curl/configure_ac.patch deleted file mode 100644 index b8bd304..000 --- a/meta/recipes-support/curl/curl/configure_ac.patch +++ /dev/null @@ -1,13 +0,0 @@ -Upstream-Status: Pending - a/configure.ac -+++ b/configure.ac -@@ -281,7 +281,7 @@ dnl - - CURL_CHECK_COMPILER - CURL_SET_COMPILER_BASIC_OPTS --CURL_SET_COMPILER_DEBUG_OPTS -+dnl CURL_SET_COMPILER_DEBUG_OPTS - CURL_SET_COMPILER_OPTIMIZE_OPTS - CURL_SET_COMPILER_WARNING_OPTS - diff --git a/meta/recipes-support/curl/curl_7.59.0.bb b/meta/recipes-support/curl/curl_7.60.0.bb similarity index 91% rename from meta/recipes-support/curl/curl_7.59.0.bb rename to meta/recipes-support/curl/curl_7.60.0.bb index c244c60..fe04fa6 100644 --- a/meta/recipes-support/curl/curl_7.59.0.bb +++ b/meta/recipes-support/curl/curl_7.60.0.bb @@ -9,14 +9,8 @@ SRC_URI = "http://curl.haxx.se/download/curl-${PV}.tar.bz2 \ file://0001-replace-krb5-config-with-pkg-config.patch \ " - -# curl likes to set -g0 in CFLAGS, so we stop it -# from mucking around with debug options -# -SRC_URI += " file://configure_ac.patch" - -SRC_URI[md5sum] = "a2192804f7c2636a09320416afcf888e" -SRC_URI[sha256sum] = "b5920ffd6a8c95585fb95070e0ced38322790cb335c39d0dab852d12e157b5a0" +SRC_URI[md5sum] = "bd2aabf78ded6a9aec8a54532fd6b5d7" +SRC_URI[sha256sum] = "897dfb2204bd99be328279f88f55b7c61592216b0542fcbe995c60aa92871e9b" CVE_PRODUCT = "libcurl" inherit autotools pkgconfig binconfig multilib_header @@ -32,10 +26,12 @@ PACKAGECONFIG[gnutls] = "--with-gnutls,--without-gnutls,gnutls" PACKAGECONFIG[gopher] = "--enable-gopher,--disable-gopher," PACKAGECONFIG[imap] = "--enable-imap,--disable-imap," PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," +PACKAGECONFIG[krb5] = "--with-gssapi,--without-gssapi,krb5" PACKAGECONFIG[ldap] = "--enable-ldap,--disable-ldap," PACKAGECONFIG[ldaps] = "--enable-ldaps,--disable-ldaps," PACKAGECONFIG[libidn] = "--with-libidn2,--without-libidn2,libidn2" PACKAGECONFIG[libssh2] = "--with-libssh2,--without-libssh2,libssh2"
Re: [OE-core] [PATCH] arch-armv7a.inc: default to Thumb2 instruction set for armv7a and above
On Fri, May 18, 2018 at 3:50 PM Andre McCurdywrote: > Although there may still be specific cases which can benefit from the > ARM instruction set, the Thumb2 instruction set is generally a better > default for armv7a class CPUs. Distros such as Debian and Fedora have > been targeting Thumb2 by default for some time. > > Note that setting ARM_INSTRUCTION_SET has no effect unless > TUNE_FEATURES contains "thumb" (which is controlled by the "t" suffix > in DEFAULTTUNE, e.g. armv7vehf-neon -vs- armv7vethf-neon, etc) so out > of tree machine configs may need to update their DEFAULTTUNE to take > advantage of this change. I think this is a good change and we shoudl take it in thumb2 is default ISA for other major distros as well Oe based distros who ship feeds might be affected > > > Signed-off-by: Andre McCurdy > --- > meta/conf/machine/include/arm/arch-armv7a.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/conf/machine/include/arm/arch-armv7a.inc > b/meta/conf/machine/include/arm/arch-armv7a.inc > index bad1c27..a2663d8 100644 > --- a/meta/conf/machine/include/arm/arch-armv7a.inc > +++ b/meta/conf/machine/include/arm/arch-armv7a.inc > @@ -1,4 +1,5 @@ > DEFAULTTUNE ?= "armv7athf" > +ARM_INSTRUCTION_SET ?= "thumb" > > TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" > TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" > -- > 1.9.1 > > -- > ___ > 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] arch-armv7a.inc: default to Thumb2 instruction set for armv7a and above
Although there may still be specific cases which can benefit from the ARM instruction set, the Thumb2 instruction set is generally a better default for armv7a class CPUs. Distros such as Debian and Fedora have been targeting Thumb2 by default for some time. Note that setting ARM_INSTRUCTION_SET has no effect unless TUNE_FEATURES contains "thumb" (which is controlled by the "t" suffix in DEFAULTTUNE, e.g. armv7vehf-neon -vs- armv7vethf-neon, etc) so out of tree machine configs may need to update their DEFAULTTUNE to take advantage of this change. Signed-off-by: Andre McCurdy--- meta/conf/machine/include/arm/arch-armv7a.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/conf/machine/include/arm/arch-armv7a.inc b/meta/conf/machine/include/arm/arch-armv7a.inc index bad1c27..a2663d8 100644 --- a/meta/conf/machine/include/arm/arch-armv7a.inc +++ b/meta/conf/machine/include/arm/arch-armv7a.inc @@ -1,4 +1,5 @@ DEFAULTTUNE ?= "armv7athf" +ARM_INSTRUCTION_SET ?= "thumb" TUNEVALID[armv7a] = "Enable instructions for ARMv7-a" TUNECONFLICTS[armv7a] = "armv4 armv5 armv6 armv7" -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/3] qemu: upgrade to 2.12.0
This is causing the AB to hang when built for qemux86 with musl whilst building webkitgtk during the gobject-introspection qemu-i386 calls, qemu enters an infinite loop. I've not yet reproduced locally to try and get a log out of qemu, but it has happened on the autobuilder repeatedly. Ross On 2 May 2018 at 15:37, Martin Jansawrote: > Signed-off-by: Martin Jansa > --- > meta/conf/distro/include/tcmode-default.inc | 2 +- > ...4-treat-DISAS_UPDATE-as-variant-of-D.patch | 67 --- > ...-connect-socket-to-a-spawned-command.patch | 52 +++--- > .../qemu/qemu/disable-grabs.patch | 43 ++-- > meta/recipes-devtools/qemu/qemu/memfd.patch | 57 > .../qemu/qemu/qemu-2.5.0-cflags.patch | 15 - > .../qemu/{qemu_2.11.1.bb => qemu_2.12.0.bb} | 6 +- > 7 files changed, 65 insertions(+), 177 deletions(-) > delete mode 100644 > meta/recipes-devtools/qemu/qemu/0001-arm-translate-a64-treat-DISAS_UPDATE-as-variant-of-D.patch > delete mode 100644 meta/recipes-devtools/qemu/qemu/memfd.patch > rename meta/recipes-devtools/qemu/{qemu_2.11.1.bb => qemu_2.12.0.bb} (87%) > > diff --git a/meta/conf/distro/include/tcmode-default.inc > b/meta/conf/distro/include/tcmode-default.inc > index 00399ae820..8b5214ed96 100644 > --- a/meta/conf/distro/include/tcmode-default.inc > +++ b/meta/conf/distro/include/tcmode-default.inc > @@ -28,7 +28,7 @@ BINUVERSION ?= "2.30%" > GDBVERSION ?= "8.0%" > GLIBCVERSION ?= "2.27%" > LINUXLIBCVERSION ?= "4.15%" > -QEMUVERSION ?= "2.11%" > +QEMUVERSION ?= "2.12%" > > PREFERRED_VERSION_gcc ?= "${GCCVERSION}" > PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}" > diff --git > a/meta/recipes-devtools/qemu/qemu/0001-arm-translate-a64-treat-DISAS_UPDATE-as-variant-of-D.patch > > b/meta/recipes-devtools/qemu/qemu/0001-arm-translate-a64-treat-DISAS_UPDATE-as-variant-of-D.patch > deleted file mode 100644 > index f90cae694c..00 > --- > a/meta/recipes-devtools/qemu/qemu/0001-arm-translate-a64-treat-DISAS_UPDATE-as-variant-of-D.patch > +++ /dev/null > @@ -1,67 +0,0 @@ > -From a75a52d62418dafe462be4fe30485501d1010bb9 Mon Sep 17 00:00:00 2001 > -From: Victor Kamensky > -Date: Fri, 23 Mar 2018 18:26:45 + > -Subject: [PATCH] arm/translate-a64: treat DISAS_UPDATE as variant of > - DISAS_EXIT > -MIME-Version: 1.0 > -Content-Type: text/plain; charset=UTF-8 > -Content-Transfer-Encoding: 8bit > - > -In OE project 4.15 linux kernel boot hang was observed under > -single cpu aarch64 qemu. Kernel code was in a loop waiting for > -vtimer arrival, spinning in TC generated blocks, while interrupt > -was pending unprocessed. This happened because when qemu tried to > -handle vtimer interrupt target had interrupts disabled, as > -result flag indicating TCG exit, cpu->icount_decr.u16.high, > -was cleared but arm_cpu_exec_interrupt function did not call > -arm_cpu_do_interrupt to process interrupt. Later when target > -reenabled interrupts, it happened without exit into main loop, so > -following code that waited for result of interrupt execution > -run in infinite loop. > - > -To solve the problem instructions that operate on CPU sys state > -(i.e enable/disable interrupt), and marked as DISAS_UPDATE, > -should be considered as DISAS_EXIT variant, and should be > -forced to exit back to main loop so qemu will have a chance > -processing pending CPU state updates, including pending > -interrupts. > - > -This change brings consistency with how DISAS_UPDATE is treated > -in aarch32 case. > - > -CC: Peter Maydell > -CC: Alex Bennée > -CC: qemu-sta...@nongnu.org > -Suggested-by: Peter Maydell > -Signed-off-by: Victor Kamensky > -Reviewed-by: Richard Henderson > -Message-id: 1521526368-1996-1-git-send-email-kamen...@cisco.com > -Signed-off-by: Peter Maydell > -Upstream-Status: Backport > > - target/arm/translate-a64.c | 6 +++--- > - 1 file changed, 3 insertions(+), 3 deletions(-) > - > -diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c > -index 31ff047..327513e 100644 > a/target/arm/translate-a64.c > -+++ b/target/arm/translate-a64.c > -@@ -13378,12 +13378,12 @@ static void aarch64_tr_tb_stop(DisasContextBase > *dcbase, CPUState *cpu) > - case DISAS_UPDATE: > - gen_a64_set_pc_im(dc->pc); > - /* fall through */ > --case DISAS_JUMP: > --tcg_gen_lookup_and_goto_ptr(); > --break; > - case DISAS_EXIT: > - tcg_gen_exit_tb(0); > - break; > -+case DISAS_JUMP: > -+tcg_gen_lookup_and_goto_ptr(); > -+break; > - case DISAS_NORETURN: > - case DISAS_SWI: > - break; > --- > -2.7.4 > - > diff --git >
[OE-core] [PATCH] base.bbclass: update obsolete comment about rpm do_unpack dependencies
The previous comment was made obsolete by: http://git.openembedded.org/openembedded-core/commit/?id=2f31f1795bc0c85b1646bc7d9596bbe778cb84e5 Signed-off-by: Andre McCurdy--- meta/classes/base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 7c42cf9..1a359a0 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -621,7 +621,7 @@ python () { elif path.endswith('.zip') or path.endswith('.jar'): d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot') -# file is needed by rpm2cpio.sh +# Some rpm files may be compressed internally using xz (for example, rpms from Fedora) elif path.endswith('.rpm'): d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot') -- 1.9.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/2] base-files: profile: Do not assume that the 'command' command exists
Awesome, thanks! On Fri, May 18, 2018 at 6:51 PM Peter Kjellerstedt < peter.kjellerst...@axis.com> wrote: > > -Original Message- > > From: Martin Jansa [mailto:martin.ja...@gmail.com] > > Sent: den 18 maj 2018 12:29 > > To: ChenQi> > Cc: Mike Looijmans ; openembedded- > > c...@lists.openembedded.org; Peter Kjellerstedt > > ; Burton, Ross > > Subject: Re: [OE-core] [PATCH 1/2] base-files: profile: Do not assume > > that the 'command' command exists > > > > On Fri, Oct 13, 2017 at 06:07:16PM +0800, ChenQi wrote: > > > On 10/13/2017 05:53 PM, ChenQi wrote: > > > > On 09/18/2017 09:56 PM, Mike Looijmans wrote: > > > >> On 18-09-17 15:24, Mike Looijmans wrote: > > > >>> On 18-09-17 15:08, Burton, Ross wrote: > > > On 18 September 2017 at 12:31, Mike Looijmans > > > > > > wrote: > > > > > > This is basically the same change as I first sent a > > patch > > > for in > > > April, and > > > last pinged this Friday... The only real difference is > > that > > > this one > > > misses > > > passing error output from resize to /dev/null (which it > > > should do to > > > handle > > > the case where tty exists, but resize does not). > > > > > > > > > Yeah, indeed. > > > > > > > > > Apologies for missing that patch! > > > > > > Other problem is that "resize" outputs shell script on > > stdout > > > to be > > > executed, so the proper "total" invokation would be: > > > > > > /dev/tty[A-z]*) eval `resize 2>/dev/null` ;; > > > > > > The "eval" part is missing in your version... > > > > > > > > > Who is going to submit the One True patch with all the fixes in? > > I > > > promise to merge it. > > > >>> > > > >>> I'll send the one ring, eh, patch, in a few minutes. I'll merge > > the > > > >>> two into a single as well. > > > >> > > > >> On second thought, just use Peter's patch "as is". > > > >> > > > >> I've been experimenting with the "eval" part and it doesn't behave > > > >> well. Tends to confuse minicom, create garbage, and in particular > > > >> when run from "profile", it seems to result in counterproductive > > > >> COLUMNS=0 and LINES=0. > > > >> > > > >> I'm actually wondering why the call to "resize" is being done at > > all. > > > >> Just calling "resize" has no effect, since it outputs the results > > on > > > >> stdout as shell script, and that is being discarded. Looking at > > the > > > >> commit that introduced it: > > > >> > > > > > > > > Looking at the codes in busybox (console-tools/resize.c), I can see > > > > that tcsetattr is actually called. > > > > The output is due to: > > > > > > > > if (ENABLE_FEATURE_RESIZE_PRINT) > > > > printf("COLUMNS=%d;LINES=%d;export COLUMNS LINES;\n", > > > > w.ws_col, w.ws_row); > > > > > > > > I can confirm that calling 'resize' is needed. Otherwise, you might > > > > get input wrapping on the same line when typing long commands. > > > > > > > > I just tried busybox init based system and I also met '-sh: > > command: > > > > not found' error message. > > > > > > Sorry for the noise. Just noticed that oe-core has enabled 'command' > > for > > > busybox by default. It's my own busybox defconfig that hasn't enabled > > it. > > > > I was just hit by the same. resize and tty work fine, but command > > applet is missing in my images. > > > > Is enabling command applet in busybox now hard requirement for all the > > builds or is anyone still planing to send follow-up on this? > > > > At least to show some more meaningful error when it's not available? > > > > "you probably need to fix your busybox defconfig, because some old > > thread on oe-core ML says so" > > > > Cheers, > > Wow, here's an old discussion I had forgotten all about. I actually > do have an updated version of the patch that solves the problem by > running resize twice, once with stderr piped to /dev/null to > determine if the resize command exists, and once without stderr > piped to /dev/null to actually do the resize (since resize uses > stderr to determine the size of the tty). > > I'll send the updated patch in a minute. > > > > Best Regards, > > > Chen Qi > > > > > > > I think Peter's patch ([OE-core] [PATCHv2 1/1] base-files: profile: > > > > Avoid using "command" to determine if programs exist) is correct. > > > > > > > > Best Regards, > > > > Chen Qi > > > > > > > >> cc6360f4c4d9 (base-files: set dynamic COLUMNS via resize command) > > > >> > > > >> that already has no effect whatsoever. See the man page for > > resize: > > > >> https://linux.die.net/man/1/resize > > > >> > > > >> I also would consider running some program's output as shell > > script a > > > >> bit spooky, it looks
[OE-core] [PATCHv4 1/1] base-files: profile: Avoid using "command" to determine if programs exist
Since the existence of "command" in itself is not guaranteed, using it to determine if other executables exist is moot. Instead just run the executables and let the shell determine if they exist. By piping stderr to /dev/null we avoid unnecessary warnings in case they do not exist. Signed-off-by: Peter Kjellerstedt--- meta/recipes-core/base-files/base-files/profile | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index a062028226..e14cb2d878 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -20,14 +20,16 @@ if [ -d /etc/profile.d ]; then unset i fi -if command -v resize >/dev/null && command -v tty >/dev/null; then - # Make sure we are on a serial console (i.e. the device used starts with - # /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which - # tries do use ssh - case $(tty) in - /dev/tty[A-z]*) resize >/dev/null;; - esac -fi +# Make sure we are on a serial console (i.e. the device used starts with +# /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which tries do +# use ssh +case $(tty 2>/dev/null) in + # The first invocation of resize verifies that it exists, the second + # does the actual resizing. This is due to that resize uses stderr to + # determine the size of the tty, which does not work if it is redirected + # to /dev/null. + /dev/tty[A-z]*) resize >/dev/null 2>&1 && resize >/dev/null;; +esac export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM -- 2.12.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv4 0/1] Do not use command in profile
Since we apparently cannot rely on the command utility to always exist, it is better to avoid using it in the profile script. Rather than using command to detect if tty and resize exist (which obviously will not work if command itself does not exist), just call them directly while piping any output for stderr to /dev/null. This should actually be a little bit more efficient in the case that they do exist, and the same in the case that they do not exist. I leave to you to decide whether you want to revert commit e41c90b852 that enabled the command utility in busybox or not. PATCHv2: Correct a typo in the commit message. PATCHv3: Run resize twice, once to determine if it exists, and once to actually do the resize. PATCHv4: Correct the same typo in the commit message once more... //Peter The following changes since commit 13cc30cd7de4841990b600e83e1249c81a5171dd: local.conf.sample.extended: Drop obsolete rpc and libnsl (2018-05-15 11:07:50 +0100) are available in the git repository at: git://push.yoctoproject.org/poky-contrib pkj/profile_without_command Peter Kjellerstedt (1): base-files: profile: Avoid using "command" to determine if programs exist meta/recipes-core/base-files/base-files/profile | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.12.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv3 1/1] base-files: profile: Avoid using "command" to determine if programs exist
Since the existence of "command" in itself is not guaranteed, using it to determine if other executables exist is mote. Instead just run the executables and let the shell determine if they exist. By piping stderr to /dev/null we avoid unnecessary warnings in case they do not exist. Signed-off-by: Peter Kjellerstedt--- meta/recipes-core/base-files/base-files/profile | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile index a062028226..e14cb2d878 100644 --- a/meta/recipes-core/base-files/base-files/profile +++ b/meta/recipes-core/base-files/base-files/profile @@ -20,14 +20,16 @@ if [ -d /etc/profile.d ]; then unset i fi -if command -v resize >/dev/null && command -v tty >/dev/null; then - # Make sure we are on a serial console (i.e. the device used starts with - # /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which - # tries do use ssh - case $(tty) in - /dev/tty[A-z]*) resize >/dev/null;; - esac -fi +# Make sure we are on a serial console (i.e. the device used starts with +# /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which tries do +# use ssh +case $(tty 2>/dev/null) in + # The first invocation of resize verifies that it exists, the second + # does the actual resizing. This is due to that resize uses stderr to + # determine the size of the tty, which does not work if it is redirected + # to /dev/null. + /dev/tty[A-z]*) resize >/dev/null 2>&1 && resize >/dev/null;; +esac export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM -- 2.12.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCHv3 0/1] Do not use command in profile
Since we apparently cannot rely on the command utility to always exist, it is better to avoid using it in the profile script. Rather than using command to detect if tty and resize exist (which obviously will not work if command itself does not exist), just call them directly while piping any output for stderr to /dev/null. This should actually be a little bit more efficient in the case that they do exist, and the same in the case that they do not exist. I leave to you to decide whether you want to revert commit e41c90b852 that enabled the command utility in busybox or not. PATCHv2: Correct a typo in the commit message PATCHv3: Run resize twice, once to determine if it exists, and once to actually do the resize. //Peter The following changes since commit 13cc30cd7de4841990b600e83e1249c81a5171dd: local.conf.sample.extended: Drop obsolete rpc and libnsl (2018-05-15 11:07:50 +0100) are available in the git repository at: git://push.yoctoproject.org/poky-contrib pkj/profile_without_command Peter Kjellerstedt (1): base-files: profile: Avoid using "command" to determine if programs exist meta/recipes-core/base-files/base-files/profile | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) -- 2.12.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/2] base-files: profile: Do not assume that the 'command' command exists
> -Original Message- > From: Martin Jansa [mailto:martin.ja...@gmail.com] > Sent: den 18 maj 2018 12:29 > To: ChenQi> Cc: Mike Looijmans ; openembedded- > c...@lists.openembedded.org; Peter Kjellerstedt > ; Burton, Ross > Subject: Re: [OE-core] [PATCH 1/2] base-files: profile: Do not assume > that the 'command' command exists > > On Fri, Oct 13, 2017 at 06:07:16PM +0800, ChenQi wrote: > > On 10/13/2017 05:53 PM, ChenQi wrote: > > > On 09/18/2017 09:56 PM, Mike Looijmans wrote: > > >> On 18-09-17 15:24, Mike Looijmans wrote: > > >>> On 18-09-17 15:08, Burton, Ross wrote: > > On 18 September 2017 at 12:31, Mike Looijmans > > > > wrote: > > > > This is basically the same change as I first sent a > patch > > for in > > April, and > > last pinged this Friday... The only real difference is > that > > this one > > misses > > passing error output from resize to /dev/null (which it > > should do to > > handle > > the case where tty exists, but resize does not). > > > > > > Yeah, indeed. > > > > > > Apologies for missing that patch! > > > > Other problem is that "resize" outputs shell script on > stdout > > to be > > executed, so the proper "total" invokation would be: > > > > /dev/tty[A-z]*) eval `resize 2>/dev/null` ;; > > > > The "eval" part is missing in your version... > > > > > > Who is going to submit the One True patch with all the fixes in? > I > > promise to merge it. > > >>> > > >>> I'll send the one ring, eh, patch, in a few minutes. I'll merge > the > > >>> two into a single as well. > > >> > > >> On second thought, just use Peter's patch "as is". > > >> > > >> I've been experimenting with the "eval" part and it doesn't behave > > >> well. Tends to confuse minicom, create garbage, and in particular > > >> when run from "profile", it seems to result in counterproductive > > >> COLUMNS=0 and LINES=0. > > >> > > >> I'm actually wondering why the call to "resize" is being done at > all. > > >> Just calling "resize" has no effect, since it outputs the results > on > > >> stdout as shell script, and that is being discarded. Looking at > the > > >> commit that introduced it: > > >> > > > > > > Looking at the codes in busybox (console-tools/resize.c), I can see > > > that tcsetattr is actually called. > > > The output is due to: > > > > > > if (ENABLE_FEATURE_RESIZE_PRINT) > > > printf("COLUMNS=%d;LINES=%d;export COLUMNS LINES;\n", > > > w.ws_col, w.ws_row); > > > > > > I can confirm that calling 'resize' is needed. Otherwise, you might > > > get input wrapping on the same line when typing long commands. > > > > > > I just tried busybox init based system and I also met '-sh: > command: > > > not found' error message. > > > > Sorry for the noise. Just noticed that oe-core has enabled 'command' > for > > busybox by default. It's my own busybox defconfig that hasn't enabled > it. > > I was just hit by the same. resize and tty work fine, but command > applet is missing in my images. > > Is enabling command applet in busybox now hard requirement for all the > builds or is anyone still planing to send follow-up on this? > > At least to show some more meaningful error when it's not available? > > "you probably need to fix your busybox defconfig, because some old > thread on oe-core ML says so" > > Cheers, Wow, here's an old discussion I had forgotten all about. I actually do have an updated version of the patch that solves the problem by running resize twice, once with stderr piped to /dev/null to determine if the resize command exists, and once without stderr piped to /dev/null to actually do the resize (since resize uses stderr to determine the size of the tty). I'll send the updated patch in a minute. > > Best Regards, > > Chen Qi > > > > > I think Peter's patch ([OE-core] [PATCHv2 1/1] base-files: profile: > > > Avoid using "command" to determine if programs exist) is correct. > > > > > > Best Regards, > > > Chen Qi > > > > > >> cc6360f4c4d9 (base-files: set dynamic COLUMNS via resize command) > > >> > > >> that already has no effect whatsoever. See the man page for > resize: > > >> https://linux.die.net/man/1/resize > > >> > > >> I also would consider running some program's output as shell > script a > > >> bit spooky, it looks like a security hole waiting to be exploited. > > >> > > >> > > >> > > >> Kind regards, > > >> > > >> Mike Looijmans > > >> System Expert > > >> > > >> TOPIC Products > > >> Materiaalweg 4, NL-5681 RJ Best > > >> Postbus 440, NL-5680 AK Best > > >> Telefoon: +31 (0) 499 33 69 79 > > >> E-mail: mike.looijm...@topicproducts.com > > >> Website:
[OE-core] [PATCH 5/7] linux-yocto/4.15: update to v4.15.18
Updating v4.15 to the final korg -stable for the v4.15 series. It comprises the following commits: a8ec862fd39d Linux 4.15.18 c4f45cf301e6 ovl: set lower layer st_dev only if setting lower st_ino 9def916c750d rtl8187: Fix NULL pointer dereference in priv->conf_mutex 7a2a6d71eed4 Bluetooth: hci_bcm: Treat Interrupt ACPI resources as always being active-low 154b354f3171 Bluetooth: Fix connection if directed advertising and privacy is used 4eb2f39266ac getname_kernel() needs to make sure that ->name != ->iname in long case 84f086ee4e6a mm/gup_benchmark: handle gup failures 7e255357ef66 get_user_pages_fast(): return -EFAULT on access_ok failure 4d03a2e6b9b6 s390/compat: fix setup_frame32 e025da42c8e6 s390/ipl: ensure loadparm valid flag is set 0d4e77fe0659 s390/qdio: don't merge ERROR output buffers f3eae28761c3 s390/qdio: don't retry EQBS after CCQ 96 4f2217cbe648 nfit: fix region registration vs block-data-window ranges 3adc135469c8 block/loop: fix deadlock after loop_set_status 9d8a3dc99219 apparmor: fix resource audit messages when auditing peer 93d36bc65698 apparmor: fix display of .ns_name for containers 5f7dc7d33ed3 apparmor: fix logging of the existence test for signals b88779931388 scsi: qla2xxx: Fix small memory leak in qla2x00_probe_one on probe failure e4e64ce3fbc4 nfsd: fix incorrect umasks f6b213293ed9 hugetlbfs: fix bug in pgoff overflow checking 004f2df3ae48 xen: xenbus_dev_frontend: Fix XS_TRANSACTION_END handling ff37d99aebb3 ovl: fix lookup with middle layer opaque dir and absolute path redirects 645840a17612 blk-mq: don't keep offline CPUs mapped to hctx 0 01e12511b9e9 blk-mq: order getting budget and driver tag 3e0b25015e05 lib: fix stall in __bitmap_parselist() a8ce442c67ff nvme: Skip checking heads without namespaces c5f1f15ab5f1 block: Change a rcu_read_{lock,unlock}_sched() pair into rcu_read_{lock,unlock}() 54e869fce691 f2fs: fix heap mode to reset it back 418a68e55acb sunrpc: remove incorrect HMAC request initialization 1ff02d3465dc x86/apic: Fix signedness bug in APIC ID validity checks 84ad0b9e121f ath9k: Protect queue draining by rcu_read_lock() 70146f28e419 hwmon: (ina2xx) Fix access to uninitialized mutex 717b489baaf0 x86/mce/AMD: Get address from already initialized block ab0ed342375f perf/core: Fix use-after-free in uprobe_perf_close() aa9cf90591f8 KVM: PPC: Book3S HV: trace_tlbie must not be called in realmode 02c74a999d69 PCI: hv: Fix 2 hang issues in hv_compose_msi_msg() b5f7ba13889a PCI: hv: Serialize the present and eject work items 4d12fdda9978 Drivers: hv: vmbus: do not mark HV_PCIE as perf_device ed7308bce0a2 parisc: Fix HPMC handler by increasing size to multiple of 16 bytes 2cad1487248d parisc: Fix out of array access in match_pci_device() 351b3d90c18d ipmi: Fix some error cleanup issues 9bb8f59e6ba0 media: v4l: vsp1: Fix header display list status check in continuous mode 2276552990c4 media: v4l2-compat-ioctl32: don't oops on overlay 44f9357a588e lan78xx: Correctly indicate invalid OTP a6f8bdd9b583 vhost: Fix vhost_copy_to_user() 5c877c58589f ip_gre: clear feature flags when incompatible o_flags are set a818b1e8182e l2tp: fix race in duplicate tunnel detection 186fab54f609 l2tp: fix races in tunnel creation d6b25a259ef9 vhost: fix vhost_vq_access_ok() log check f76f647e536b slip: Check if rstate is initialized before uncompressing 89a99cd5 rds: MP-RDS may use an invalid c_path 14fb3c646653 cdc_ether: flag the Cinterion AHS8 modem by gemalto as WWAN 17da5b1d0a46 netfilter: ipset: Missing nfnl_lock()/nfnl_unlock() is added to ip_set_net_exit() 7b3f3fa2bdeb drm/i915/edp: Do not do link training fallback or prune modes on EDP b22a1fa1b34f Linux 4.15.17 9e6ee870ad5a net/mlx4_core: Fix memory leak while delete slave's resources 94f1b8485ce3 vhost_net: add missing lock nesting notation a17ab0a5c81c team: move dev_mc_sync after master_upper_dev_link in team_port_add 0f9e7b328bff route: check sysctl_fib_multipath_use_neigh earlier than hash 13ed54d5252e vhost: validate log when IOTLB is enabled 2030a5c0ab13 net/mlx5e: Fix traffic being dropped on VF representor 2b9260fb6f35 net/mlx4_en: Fix mixed PFC and Global pause user control requests e2b83b778065 strparser: Fix sign of err codes 73a697b3ef62 net/sched: fix NULL dereference on the error path of tcf_skbmod_init() 39eab2e79f81 net/sched: fix NULL dereference in the error path of tunnel_key_init() d6bda9865d4c net/mlx5e: Sync netdev vxlan ports at open 75744bdbce5f net/mlx5e: Don't override vport admin link state in switchdev mode 5dfa4fb5cd26 ipv6: sr: fix seg6 encap performances with TSO enabled d0f3ccf5293c nfp: use full 40 bits of the NSP buffer address 9d49e497222c net/sched: fix NULL dereference in the error path of tcf_sample_init() e95cdaee3d7d net/mlx5e: Fix memory usage issues in
[OE-core] [PATCH 7/7] linux-yocto/4.14/4.15: gcc8 fixes
Integrating Khem's gcc8 kernel patches so that 4.14 and 4.15 can build with the gcc8 compiler updates. 51273ff79f4a tools/lib/subcmd/pager.c: do not alias select() params b632c05a6263 objtool, perf: Fix GCC 8 -Wrestrict error 20bc5eb24ac1 mips64: Disable attribute-alias warning 975042cc72dd mips: Disable attribute-alias warnings 8632f470f02c powerpc/ptrace: Disable array-bounds warning with gcc8 59e401ffeda4 powerpc: Disable attribute-alias warnings from gcc8 Signed-off-by: Bruce Ashfield--- meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb | 4 ++-- meta/recipes-kernel/linux/linux-yocto_4.14.bb | 18 +- meta/recipes-kernel/linux/linux-yocto_4.15.bb | 18 +- 6 files changed, 26 insertions(+), 26 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb b/meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb index 5829fe00fd96..db7941abd178 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb @@ -11,8 +11,8 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "edcd1a1cbc535ff827e682fa8e78a11f60efc03f" -SRCREV_meta ?= "0a24859cef9c3352aa3bf153d202cece587caf24" +SRCREV_machine ?= "5518de2bf72df8f5274f7fd6a909db8bb09e9216" +SRCREV_meta ?= "d1e170692e978b08f4736375cafccd58e331feb1" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.14;destsuffix=${KMETA}" diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb b/meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb index 004f3b666f90..c440d2fa9f2e 100644 --- a/meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb @@ -11,8 +11,8 @@ python () { raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") } -SRCREV_machine ?= "260fd9356917fb3bd73abd36a6bdd7df402ef1a1" -SRCREV_meta ?= "125963a34eebf4ee3d2b62d97c8090d912c8eb03" +SRCREV_machine ?= "51273ff79f4ad930f4a788257f58e1266cb236e3" +SRCREV_meta ?= "9bbc5bd75e5322bd80769802c5062b2f3f0d6c7d" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.15;destsuffix=${KMETA}" diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb index a9196e3dc10a..ae459761f9cc 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb @@ -12,8 +12,8 @@ DEPENDS += "openssl-native util-linux-native" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine ?= "0cdc68d3404d2738d43e9e22b572814e238dae3f" -SRCREV_meta ?= "0a24859cef9c3352aa3bf153d202cece587caf24" +SRCREV_machine ?= "ebe519f7ad579fedcdff91c2e32c4eef976299a6" +SRCREV_meta ?= "d1e170692e978b08f4736375cafccd58e331feb1" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb index 575d3fe04648..e6da0935d0ae 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb @@ -9,8 +9,8 @@ LINUX_VERSION ?= "4.15.18" KMETA = "kernel-meta" KCONF_BSP_AUDIT_LEVEL = "2" -SRCREV_machine ?= "260fd9356917fb3bd73abd36a6bdd7df402ef1a1" -SRCREV_meta ?= "125963a34eebf4ee3d2b62d97c8090d912c8eb03" +SRCREV_machine ?= "51273ff79f4ad930f4a788257f58e1266cb236e3" +SRCREV_meta ?= "9bbc5bd75e5322bd80769802c5062b2f3f0d6c7d" PV = "${LINUX_VERSION}+git${SRCPV}" diff --git a/meta/recipes-kernel/linux/linux-yocto_4.14.bb b/meta/recipes-kernel/linux/linux-yocto_4.14.bb index 28812484dda2..c8f31a6ebcd3 100644 --- a/meta/recipes-kernel/linux/linux-yocto_4.14.bb +++ b/meta/recipes-kernel/linux/linux-yocto_4.14.bb @@ -11,15 +11,15 @@ KBRANCH_qemux86 ?= "v4.14/standard/base" KBRANCH_qemux86-64 ?= "v4.14/standard/base" KBRANCH_qemumips64 ?= "v4.14/standard/mti-malta64" -SRCREV_machine_qemuarm ?= "0270dc3fc64e8df96067a5cc0d3cdcc7da448967" -SRCREV_machine_qemuarm64 ?= "cc01b6df5e42a636339020123f9e36e76feb217a" -SRCREV_machine_qemumips ?= "7100705d087727cec0f353b430910dbd56c0b14f" -SRCREV_machine_qemuppc ?= "9e2c25e06bd9b9c799c0c7103566d587fdd16858" -SRCREV_machine_qemux86 ?= "3a3979936c8a3b70488af80a7dcadd41e2480603" -SRCREV_machine_qemux86-64 ?= "3a3979936c8a3b70488af80a7dcadd41e2480603" -SRCREV_machine_qemumips64 ?= "149f8eee22d52a287994c1d0c54d4d37631629ef" -SRCREV_machine ?=
[OE-core] [PATCH 3/7] linux-yocto-dev: update to v4.17+
Updating the -dev kernel to v4.17+. We also tweak the License checksum in the -dev kernel since SPDX headers have been inserted upstream and that has changed the hash value. Signed-off-by: Bruce Ashfield--- meta/recipes-kernel/linux/linux-yocto-dev.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto.inc| 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb index 4201faf672bb..1f2d0e9d7c5e 100644 --- a/meta/recipes-kernel/linux/linux-yocto-dev.bb +++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb @@ -28,10 +28,12 @@ SRC_URI = "git://git.yoctoproject.org/linux-yocto-dev.git;branch=${KBRANCH};name SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-yocto-dev", "${AUTOREV}", "29594404d7fe73cd80eaa4ee8c43dcc53970c60e", d)}' -LINUX_VERSION ?= "4.16-rc+" +LINUX_VERSION ?= "4.17-rc+" LINUX_VERSION_EXTENSION ?= "-yoctodev-${LINUX_KERNEL_TYPE}" PV = "${LINUX_VERSION}+git${SRCPV}" +LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" + DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" DEPENDS += "openssl-native util-linux-native" diff --git a/meta/recipes-kernel/linux/linux-yocto.inc b/meta/recipes-kernel/linux/linux-yocto.inc index 3bb872a32a3e..95ec2a2b4189 100644 --- a/meta/recipes-kernel/linux/linux-yocto.inc +++ b/meta/recipes-kernel/linux/linux-yocto.inc @@ -2,7 +2,7 @@ SUMMARY = "Linux kernel" SECTION = "kernel" LICENSE = "GPLv2" -LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" +LIC_FILES_CHKSUM ?= "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" UPSTREAM_CHECK_GITTAGREGEX = "(?P\d+\.\d+(\.\d+)*)" -- 2.5.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 2/7] linux-yocto/4.12: update to v4.12.23
Integrating the -stable updates from Paul Gortmake that comprise the following commits: 6e83f40c507e Linux 4.12.23 55e376304f1b e1000e: fix buffer overrun while the I219 is processing DMA transactions 3882bb678dd8 e1000e: Fix return value test 167170375055 e1000e: Fix error path in link detection 47722947f954 ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone 1dbaaa42b464 media: v4l2-ctrl: Fix flags field on Control events c7c9d8c465d7 [media] cx231xx-cards: fix NULL-deref on missing association descriptor 6ee1ead888a3 media: rc: check for integer overflow 6f70063599b3 media: Don't do DMA on stack for firmware upload in the AS102 driver ef4c54828c1d powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary d308f45eb9e7 powerpc/64s/hash: Fix fork() with 512TB process address space 61c9dab21d03 powerpc/64s/hash: Fix 128TB-512TB virtual address boundary case allocation 40744bdf965e powerpc/64s/hash: Fix 512T hint detection to use >= 128T c5866bd94f03 powerpc/64s/radix: Fix 128TB-512TB virtual address boundary case allocation 49e9f537eb43 powerpc/signal: Properly handle return value from uprobe_deny_signal() fb991189ca1f parisc: Fix validity check of pointer size argument in new CAS implementation ae519d5e90b9 ixgbe: Fix skb list corruption on Power systems 2a827971bc99 fm10k: Use smp_rmb rather than read_barrier_depends b1222f423f70 i40evf: Use smp_rmb rather than read_barrier_depends 61d3820d1146 ixgbevf: Use smp_rmb rather than read_barrier_depends 8c40cc266d42 igbvf: Use smp_rmb rather than read_barrier_depends d05a14e4483e igb: Use smp_rmb rather than read_barrier_depends 9062b3d8fadd i40e: Use smp_rmb rather than read_barrier_depends bb0ddf274e82 spi-nor: intel-spi: Fix broken software sequencing codes 11604df811a9 IB/srp: Avoid that a cable pull can trigger a kernel crash 7a2f561b9470 IB/hfi1: Fix incorrect available receive user context count 305382ae2297 IB/cm: Fix memory corruption in handling CM request 9792edc692f1 IB/CM: Create appropriate path records when handling CM request 0624d71dcd6f IB/srpt: Do not accept invalid initiator port names ff4035fcfb4d svcrdma: Preserve CB send buffer across retransmits f18fd397f0c1 libnvdimm, namespace: make 'resource' attribute only readable by root 91d9aa084602 libnvdimm, region : make 'resource' attribute only readable by root ea9427658840 libnvdimm, namespace: fix label initialization to use valid seq numbers c0bcae085da8 libnvdimm, pfn: make 'resource' attribute only readable by root aa91e16e2756 libnvdimm, dimm: clear 'locked' status on successful DIMM enable eca24c2a944d clk: ti: dra7-atl-clock: fix child-node lookups 104ab8491706 SUNRPC: Fix tracepoint storage issues with svc_recv and svc_rqst_status a6579fafe2b9 dax: fix general protection fault in dax_alloc_inode b4f77dd3db27 dax: fix PMD faults on zero-length files 12b2a43aa1b0 lockd: double unregister of inetaddr notifiers f2fa2903113c irqchip/gic-v3: Fix ppi-partitions lookup c08ddb437ddb genirq: Track whether the trigger type has been set fc12863e2ba3 raid1: prevent freeze_array/wait_all_barriers deadlock 3c56a460c8bf block: Fix a race between blk_cleanup_queue() and timeout handling 1e28e345115e p54: don't unregister leds when they are not initialized 937209dd49f8 mailbox: bcm-flexrm-mailbox: Fix FlexRM ring flush sequence 73d36ccc25ad mtd: nand: mtk: fix infinite ECC decode IRQ issue 886c51dad821 mtd: nand: Fix writing mtdoops to nand flash. 684797376fd0 mtd: nand: omap2: Fix subpage write b58d7cba2730 target: Avoid early CMD_T_PRE_EXECUTE failures during ABORT_TASK 8412e7db941c target: Fix quiese during transport_write_pending_qf endless loop 7c302f595f4b target: Fix caw_sem leak in transport_generic_request_failure cc36f84ff1f0 target: Fix QUEUE_FULL + SCSI task attribute handling 41411af9e8ad target: fix null pointer regression in core_tmr_drain_tmr_list 8734ebeb8106 iscsi-target: Fix non-immediate TMR reference leak 2e2bc1186a08 iscsi-target: Make TASK_REASSIGN use proper se_cmd->cmd_kref 6de2abbd4c31 scsi: lpfc: Fix oops if nvmet_fc_register_targetport fails 2000b870234f scsi: lpfc: Fix FCP hba_wqidx assignment 01f0e334995a scsi: lpfc: Fix crash receiving ELS while detaching driver 020ccb98ef75 scsi: lpfc: fix pci hot plug crash in list_add call 9b58a782f5a4 scsi: lpfc: fix pci hot plug crash in timer management routines e316d92e10ac scsi: sd_zbc: Fix sd_zbc_read_zoned_characteristics() f98e27e575f1 net/9p: Switch to wait_event_killable() 8be417a79efc fs/9p: Compare qid.path in v9fs_test_inode 2e349fe9c2bb fix a page leak in vhost_scsi_iov_to_sgl() error recovery c0697b079ae5 mfd: lpc_ich: Avoton/Rangeley uses SPI_BYT method 2ace5971b1c1 ASoC: sun8i-codec: Set the BCLK divider c7316d6679de ASoC: sun8i-codec: Fix left and right channels
[OE-core] [PATCH 4/7] linux-yocto/4.14: update to v4.14.30
Integrating the korg -stable releases for 4.14, which comprise the following commits: fc72a4171174 Linux 4.14.40 27f29dbceb3c tracing: Fix bad use of igrab in trace_uprobe.c d86aaca9cea2 irqchip/qcom: Fix check for spurious interrupts bd2088d1d77a platform/x86: asus-wireless: Fix NULL pointer dereference 87fa7da673b4 usb: musb: trace: fix NULL pointer dereference in musb_g_tx() 303e99bde8dc usb: musb: host: fix potential NULL pointer dereference ec6de93fab50 USB: serial: option: adding support for ublox R410M 3f0c247910d0 USB: serial: option: reimplement interface masking 0e548f5abae9 USB: Accept bulk endpoints with 1024-byte maxpacket 425a02545d5e usb: dwc3: gadget: Fix list_del corruption in dwc3_ep_dequeue 0cc49bb627ad USB: serial: visor: handle potential invalid device configuration 0799a0ea96e4 errseq: Always report a writeback error once b4f6e858433e test_firmware: fix setting old custom fw path back on exit, second try 43b3ba6ece54 drm/bridge: vga-dac: Fix edid memory leak df9703e7e72a drm/vmwgfx: Fix a buffer object leak 758f3340b803 iw_cxgb4: Atomically flush per QP HW CQEs d7683a5c8c94 IB/hfi1: Fix NULL pointer dereference when invalid num_vls is used 79181a45aa9a IB/hfi1: Fix loss of BECN with AHG 7f185bc79bb9 IB/hfi1: Fix handling of FECN marked multicast packet b5ebbbc72671 IB/mlx5: Use unlimited rate when static rate is not supported a27293f2f6e1 NET: usb: qmi_wwan: add support for ublox R410M PID 0x90b2 14ad51557092 RDMA/mlx5: Protect from shift operand overflow be855252ebce RDMA/mlx5: Fix multiple NULL-ptr deref errors in rereg_mr flow 3ae1bf368135 RDMA/ucma: Allow resolving address w/o specifying source address 38a65e753503 RDMA/cxgb4: release hw resources on device removal bd9ca962eeb0 xfs: prevent creating negative-sized file via INSERT_RANGE b68c7af0b2e7 rtlwifi: cleanup 8723be ant_sel definition fcd835be6c17 rtlwifi: btcoex: Add power_on_setting routine 10579ed39e20 Input: atmel_mxt_ts - add touchpad button mapping for Samsung Chromebook Pro 894937021946 Input: leds - fix out of bound access 2c698f7b169a scsi: target: Fix fortify_panic kernel exception f4438b15755e tracepoint: Do not warn on ENOMEM bd0e2aec5686 ALSA: aloop: Add missing cable lock to ctl API callbacks 4e3460ae33c6 ALSA: aloop: Mark paused device as inactive 9581fff37b1a ALSA: dice: fix kernel NULL pointer dereference due to invalid calculation for array index dfe7f043bcfc ALSA: seq: Fix races at MIDI encoding in snd_virmidi_output_trigger() e5e9a770cec2 ALSA: pcm: Check PCM state at xfern compat ioctl 5f6e6d063ac1 ALSA: hda - Fix incorrect usage of IS_REACHABLE() c1e76c30079d USB: serial: option: Add support for Quectel EP06 c8a622ed9e53 ACPI / button: make module loadable when booted in non-ACPI mode 63d9df9eb7a5 crypto: talitos - fix IPsec cipher in length e9caf1e1d5d4 percpu: include linux/sched.h for cond_resched() 6a3c946b205f net: don't call update_pmtu unconditionally 3a928a262c1c geneve: update skb dst pmtu on tx path 7d6240f0fb85 Linux 4.14.39 7fddff51f245 powerpc/eeh: Fix race with driver un/bind e5a290c4ff77 arm/arm64: KVM: Add PSCI version selection API a2066aa76a7a tick/sched: Do not mess with an enqueued hrtimer 922e5129eb01 x86/microcode: Do not exit early from __reload_late() 7c6bcaac737f x86/microcode/intel: Save microcode patch unconditionally b319531024d9 x86/smpboot: Don't use mwait_play_dead() on AMD systems ce911a5b1fea x86/ipc: Fix x32 version of shmid64_ds and msqid64_ds 8e99c881e497 tools/lib/subcmd/pager.c: do not alias select() params d1f1f7771a6a objtool, perf: Fix GCC 8 -Wrestrict error bf1d7023c901 drm/i915: Enable display WA#1183 from its correct spot 559121f5a165 drm/amdgpu: set COMPUTE_PGM_RSRC1 for SGPR/VGPR clearing shaders 79340bda01ab rtc: opal: Fix OPAL RTC driver OPAL_BUSY loops 20b0f757da3b cpufreq: powernv: Fix hardlockup due to synchronous smp_call in timer interrupt 3a5465d0b61d earlycon: Use a pointer table to fix __earlycon_table stride 9922fd0c681f fpga-manager: altera-ps-spi: preserve nCONFIG state 7563d6f2be58 libceph: validate con->state at the top of try_write() c2bc3eb5599f libceph: reschedule a tick in finish_hunting() 76f7b52b5bf0 libceph: un-backoff on tick when we have a authenticated session b02bbcce8ea3 ASoC: fsl_esai: Fix divisor calculation failure at lower ratio 674d38ea1850 crypto: drbg - set freed buffers to NULL a32a944a60c8 powerpc/powernv/npu: Do a PID GPU TLB flush when invalidating a large address range f2acc8dc0644 powerpc/mm: Flush cache on memory hot(un)plug 5a5ea3401799 KVM: arm/arm64: Close VMID generation race 0ddb53a67cbd ARM: socfpga_defconfig: Remove QSPI Sector 4K size force f671ee8de31a ARM: amba: Don't read past the end of sysfs "driver_override" buffer 23abff7b984f ARM: amba: Fix race condition with driver_override
[OE-core] [PATCH 6/7] linux-yoct/4.12: update to v4.12.24
Updating to include Paul Gortmaker's latest round of stable updates, which comprise the following commits: dc2f71a08d7a Linux 4.12.24 4cab262afa69 iio: adc: ti-ads1015: add 10% to conversion wait time 89f573e6f136 tools include: Do not use poison with C++ d4f418739d68 kprobes/x86: Disable preemption in ftrace-based jprobes 28861253362b perf test attr: Fix ignored test case result 12c60baac963 staging: fsl-mc/dpio: Fix incorrect comparison 43e1cab01765 serial: imx: Update cached mctrl value when changing RTS 6122e955f082 usbip: tools: Install all headers needed for libusbip development c1fce3e6296c serial: sh-sci: suppress warning for ports without dma channels 444cfc461e20 sysrq : fix Show Regs call trace on ARM 0040e82b1a65 usb: xhci: Return error when host is dead in xhci_disable_slot() e1667a3749da staging: fsl-dpaa2/eth: Account for Rx FD buffers on error path 7e22cbc6bd55 usb: mtu3: fix error return code in ssusb_gadget_init() c528464afcea EDAC, sb_edac: Fix missing break in switch e207a0c6a285 clocksource/drivers/arm_arch_timer: Validate CNTFRQ after enabling frame c3c5783f9303 serial: 8250: Preserve DLD[7:4] for PORT_XR17V35X ca7b446eff2f PCI: dra7xx: Create functional dependency between PCIe and PHY 7897f75fc207 usb: phy: tahvo: fix error handling in tahvo_usb_probe() c240911c41c3 mmc: sdhci-msm: fix issue with power irq 97227123b5f0 mmc: tmio: check mmc_regulator_get_supply return value 05ce425fa841 spi: spi-axi: fix potential use-after-free after deregistration 42f90afc67e4 spi: sh-msiof: Fix DMA transfer size check c652d0d523bf staging: rtl8188eu: avoid a null dereference on pmlmepriv 3dc08560ab63 serial: 8250_fintek: Fix rs485 disablement on invalid ioctl() d57c00699295 m68k: fix ColdFire node shift size calculation df74b0c1e0b4 staging: greybus: loopback: Fix iteration count on async path 96be1d656724 x86/entry/64: Don't use IST entry for #BP stack (part #2) 8e3f9a001776 selftests/x86/ldt_get: Add a few additional tests for limits 0d0517d16bc5 s390/pci: do not require AIS facility 778bf06a0661 PM / Domains: Fix genpd to deal with drivers returning 1 from ->prepare() bd4084ce13d2 s390: vfio-ccw: Do not attempt to free no-op, test and tic cda. fd6fe520a496 ima: fix hash algorithm initialization 83cd72f27843 usb: host: fix incorrect updating of offset 4ab295bc9cdf USB: usbfs: Filter flags passed in from user space d8ce9fecf049 USB: Fix off by one in type-specific length check of BOS SSP capability dc9843bd9e72 USB: core: Add type-specific length check of BOS descriptors ab95f86f0fac usb: xhci: fix panic in xhci_free_virt_devices_depth_first c1b551b8718a xhci: Don't show incorrect WARN message about events for empty rings 8412154c096c USB: ulpi: fix bus-node lookup 10d2d61bff44 usb: hub: Cycle HUB power when initialization fails da44857edd20 powerpc/kprobes: Fix call trace due to incorrect preempt count 67482fcb1f0a powerpc/kprobes: Disable preemption before invoking probe handler for optprobes 6f745a984365 powerpc/jprobes: Disable preemption when triggered through ftrace 3fefceeaca8e USB: serial: usb_debug: add new USB device id 9c971e7d3a9f USB: serial: option: add Quectel BG96 id cc01c484eee9 serial: 8250_pci: Add Amazon PCI serial device ID d16393b7a9d8 usb: quirks: Add no-lpm quirk for KY-688 USB 3.1 Type-C Hub 7a0ac9cc347c uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices 52c2b20403f0 s390/runtime instrumentation: simplify task exit handling 04dd38b88979 drm/fsl-dcu: enable IRQ before drm_atomic_helper_resume() f363e7cdb4f6 drm/fsl-dcu: avoid disabling pixel clock twice on suspend 2845e7d136c8 drm/i915: Prevent zero length "index" write 79413d6f2f6f drm/i915: Don't try indexed reads to alternate slave addresses f5cc8d6842e6 drm/i915/gvt: Correct ADDR_4K/2M/1G_MASK definition 1fab446c5b5a drm/i915: Fix false-positive assert_rpm_wakelock_held in i915_pmic_bus_access_notifier v2 708262ebbebc md: forbid a RAID5 from having both a bitmap and a journal. 40219fc4a45b e1000e: fix the use of magic numbers for buffer overrun issue 9bbd7fc437e0 include/linux/compiler-clang.h: handle randomizable anonymous structs 13782a203fb8 drm/amd/pp: fix typecast error in powerplay. dd1ab1b7a09e drm/ttm: once more fix ttm_buffer_object_transfer 1e1df0b0eb71 drm/hisilicon: Ensure LDI regs are properly configured. e10ca648a294 drm/panel: simple: Add missing panel_simple_unprepare() calls 28fb6325953c drm/radeon: fix atombios on big endian 0f7ff143e866 drm/tilcdc: Precalculate total frametime in tilcdc_crtc_set_mode() 00debaff36fb drm/amdgpu: Remove check which is not valid for certain VBIOS 53543b5a5062 drm/amdgpu: Properly allocate VM invalidate eng v2 6095ee5e76ed drm/amdgpu: correct reference clock value on vega10 8544b664f20e Revert "drm/radeon: dont switch vt on suspend" 3b28b8cd6364
[OE-core] [PATCH 0/7] linux-yocto: consolidated pull request
Hi all, Here's the next round of -stable and -dev kernel updates. I've also included khem's gcc8 fixes in this round, so we should be good to go from the kernel point of view on that front. As usual, I built and booted this as much as possible, but there are a lot of combos to cover. If there are any issues, let me know and I'll take care of them. Cheers, Bruce The following changes since commit 13cc30cd7de4841990b600e83e1249c81a5171dd: local.conf.sample.extended: Drop obsolete rpc and libnsl (2018-05-15 11:07:50 +0100) are available in the git repository at: git://git.pokylinux.org/poky-contrib zedd/kernel http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=zedd/kernel Bruce Ashfield (7): linux-yocto/4.12: update to v4.12.22 linux-yocto/4.12: update to v4.12.23 linux-yocto-dev: update to v4.17+ linux-yocto/4.14: update to v4.14.30 linux-yocto/4.15: update to v4.15.18 linux-yoct/4.12: update to v4.12.24 linux-yocto/4.14/4.15: gcc8 fixes meta/recipes-kernel/linux/linux-yocto-dev.bb | 4 +++- meta/recipes-kernel/linux/linux-yocto-rt_4.12.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto-rt_4.14.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto-rt_4.15.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto-tiny_4.12.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto-tiny_4.14.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto-tiny_4.15.bb | 6 +++--- meta/recipes-kernel/linux/linux-yocto.inc | 2 +- meta/recipes-kernel/linux/linux-yocto_4.12.bb | 20 ++-- meta/recipes-kernel/linux/linux-yocto_4.14.bb | 20 ++-- meta/recipes-kernel/linux/linux-yocto_4.15.bb | 20 ++-- 11 files changed, 52 insertions(+), 50 deletions(-) -- 2.5.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/7] linux-yocto/4.12: update to v4.12.22
Paul Gortmaker released another 4.12-stable that comprises the following changes: 23dcfbfbca0a Linux 4.12.22 d4879ce5efb7 arm64: Kill PSCI_GET_VERSION as a variant-2 workaround 77915e1a7544 arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support b06fbedb6e14 arm/arm64: smccc: Implement SMCCC v1.1 inline primitive 1f400b388a20 arm/arm64: smccc: Make function identifiers an unsigned quantity f5d3afa3aecc firmware/psci: Expose SMCCC version through psci_ops 4c69d3a66e60 firmware/psci: Expose PSCI conduit cfec930a45f8 arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling 9e9697733818 arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support 2a8574eb6e3f arm/arm64: KVM: Turn kvm_psci_version into a static inline 2c79f828dfed arm64: KVM: Make PSCI_VERSION a fast path 042626a87234 arm/arm64: KVM: Advertise SMCCC v1.1 48a9e563e528 arm/arm64: KVM: Implement PSCI 1.0 support 28283de68052 arm/arm64: KVM: Add smccc accessors to PSCI code 33d47367626b arm/arm64: KVM: Add PSCI_VERSION helper 82ca1dcebf95 arm/arm64: KVM: Consolidate the PSCI include files efb7c6b5b7f9 arm64: KVM: Increment PC after handling an SMC trap b720b7837ed8 arm64: Branch predictor hardening for Cavium ThunderX2 6f2750c7a1c9 arm64: Implement branch predictor hardening for Falkor b56fa11959a7 arm64: Implement branch predictor hardening for affected Cortex-A CPUs 5eb80f970c49 arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75 cf45e77d8106 arm64: entry: Apply BP hardening for suspicious interrupts from EL0 e9c2f25bf62d arm64: entry: Apply BP hardening for high-priority synchronous exceptions b4f51ebd0fc3 arm64: KVM: Use per-CPU vector when BP hardening is enabled e8f7c5ba8c70 arm64: Move BP hardening to check_and_switch_context e2c124fa14e1 arm64: Add skeleton to harden the branch predictor against aliasing attacks ddd305f0fdf8 arm64: Move post_ttbr_update_workaround to C code 204d987e7143 drivers/firmware: Expose psci_get_version through psci_ops structure 8880e6380d91 arm64: cpufeature: Pass capability structure to ->enable callback 48017c15187b arm64: Run enable method for errata work arounds on late CPUs cf64258fb122 arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early 7d550f8cb119 arm64: futex: Mask __user pointers prior to dereference b9d01590df34 arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user 1b74ca827ed3 arm64: uaccess: Don't bother eliding access_ok checks in __{get, put}_user 41b08b7c365b arm64: uaccess: Prevent speculative use of the current addr_limit 1736debe11ef arm64: entry: Ensure branch through syscall table is bounded under speculation 84e4780beea5 arm64: Use pointer masking to limit uaccess speculation d77d4c9aa433 arm64: Make USER_DS an inclusive limit b96ab81a6468 arm64: Implement array_index_mask_nospec() 21eb21937d8e arm64: barrier: Add CSDB macros to control data-value prediction da1217a79997 arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives c20b48f5b7a3 arm64: entry: Reword comment about post_ttbr_update_workaround 15d4d37f7709 arm64: Force KPTI to be disabled on Cavium ThunderX 3489abd67e33 arm64: kpti: Add ->enable callback to remap swapper using nG mappings b154d9be8c6f arm64: mm: Permit transitioning from Global to Non-Global without BBM 1610bb019302 arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0() 250a3a64585f arm64: Turn on KPTI only on CPUs that need it 32da2aa26b97 arm64: cputype: Add MIDR values for Cavium ThunderX2 CPUs 93d290bbe8f1 arm64: kpti: Fix the interaction between ASID switching and software PAN 923618230c12 arm64: mm: Introduce TTBR_ASID_MASK for getting at the ASID in the TTBR 51218390beb6 arm64: capabilities: Handle duplicate entries for a capability 630cf7161fca arm64: Take into account ID_AA64PFR0_EL1.CSV3 4b7ebe5c3644 arm64: Kconfig: Reword UNMAP_KERNEL_AT_EL0 kconfig entry e09f32469091 arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0 8202169d678a arm64: use RET instruction for exiting the trampoline 414d9eabda3d arm64: kaslr: Put kernel vectors address in separate data page fce92f180168 arm64: entry: Add fake CPU feature for unmapping the kernel at EL0 83584a583bff arm64: tls: Avoid unconditional zeroing of tpidrro_el0 for native tasks 4732b98b6400 arm64: cpu_errata: Add Kryo to Falkor 1003 errata 85dacaa58475 arm64: erratum: Work around Falkor erratum #E1003 in trampoline code bb0fa2f9cece arm64: entry: Hook up entry trampoline to exception vectors df7f7308d5f0 arm64: entry: Explicitly pass exception level to kernel_ventry macro 14bcc912ca7e arm64: mm: Map entry trampoline into trampoline and kernel page tables c30f47afaa64 arm64: entry: Add exception trampoline page for exceptions from EL0 21b891bf770f arm64: mm: Invalidate both kernel and user ASIDs when performing TLBI
Re: [OE-core] [AUH] u-boot-mkimage: upgrading to 2018.05 FAILED
On 05/18/2018 12:20 AM, Marek Vasut wrote: Let's see how this works: https://patchwork.ozlabs.org/patch/915781/ Once this gets mainline, we should then be able to enable u-boot for qemux86/qemux86-64 . I have a patch ready for that too, but let's wait until the U-Boot patch discussion is over. Thanks :) Alex -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] add mets-security to Extensible SDK
Hi, Does anyone know how can I add meta-security layer (https://git.yoctoproject.org/cgit/cgit.cgi/meta-security/) to my Extensible SDK using devtool and build e.g. nmap? Thanks //Sona This message, including attachments, is CONFIDENTIAL. It may also be privileged or otherwise protected by law. If you received this email by mistake please let us know by reply and then delete it from your system; you should not copy it or disclose its contents to anyone. All messages sent to and from Enea may be monitored to ensure compliance with internal policies and to protect our business. Emails are not secure and cannot be guaranteed to be error free as they can be intercepted, a mended, lost or destroyed, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Anyone who communicates with us by email accepts these risks. -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] systemd: Add util-linux-umount to RDEPENDS
Fixing busybox is a better solution. yes. Ross On 18 May 2018 at 13:24, Fabio Bertonwrote: > Yes, I tested this patch seems to work. > > But bug report has: > > "Yeah, this appears to be a limitation of busybox, and needs to be fixed in > busybox. We focus on util-linux proper, which has supported this option > since generations" > > So, I add umount from util-linux because systemd focus on util-linux and > systemd recipe already has util-linux-mount. > > If add patch to busybox is a better solution I can do this and send to list. > > Fabio > > On Thu, May 17, 2018 at 4:53 PM, Andre McCurdy wrote: >> >> On Thu, May 17, 2018 at 12:15 PM, Fabio Berton >> wrote: >> > Images with systemd fails on reboot with error: >> > >> >[FAILED] Failed unmounting Temporary Directory (/tmp). >> > >> > This happens because busybox umount command doesn't has -c >> > option. Add util-linux-umount that has this option to fix >> > this issue. >> > >> > See details: https://github.com/systemd/systemd/issues/7786 >> >> That bug report mentions a fix to busybox. Since the fix is available >> in upstream busybox, maybe better to just backport the patch to our >> version of buysbox: >> >> >> https://git.busybox.net/busybox/commit/?id=426134128112738c97a665170b21153ef0764b7d >> >> > Signed-off-by: Fabio Berton >> > --- >> > meta/recipes-core/systemd/systemd_237.bb | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/meta/recipes-core/systemd/systemd_237.bb >> > b/meta/recipes-core/systemd/systemd_237.bb >> > index b7c2113255f..3b0f4580d49 100644 >> > --- a/meta/recipes-core/systemd/systemd_237.bb >> > +++ b/meta/recipes-core/systemd/systemd_237.bb >> > @@ -478,7 +478,7 @@ FILES_${PN} = " ${base_bindir}/* \ >> > >> > FILES_${PN}-dev += "${base_libdir}/security/*.la >> > ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd" >> > >> > -RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) >> > util-linux-agetty" >> > +RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= >> > ${EXTENDPKGV}) util-linux-agetty" >> > RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', >> > 'serial-getty-generator', '', 'systemd-serialgetty', d)}" >> > RDEPENDS_${PN} += "volatile-binds update-rc.d" >> > >> > -- >> > 2.14.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 > -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] wget: fix CVE-2018-0494
2018-05-18 12:33 GMT+03:00 Jibin Xu: > +Upstream-Status: Backport > +CVE: CVE-2018-0494 > + > +Signed-off-by: Jibin Xu Can you update wget to latest upstream release please? Yi Zhao should have received the patch from AUH. Alex -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] systemd: Add util-linux-umount to RDEPENDS
Yes, I tested this patch seems to work. But bug report has: "Yeah, this appears to be a limitation of busybox, and needs to be fixed in busybox. We focus on util-linux proper, which has supported this option since generations" So, I add umount from util-linux because systemd focus on util-linux and systemd recipe already has util-linux-mount. If add patch to busybox is a better solution I can do this and send to list. Fabio On Thu, May 17, 2018 at 4:53 PM, Andre McCurdywrote: > On Thu, May 17, 2018 at 12:15 PM, Fabio Berton > wrote: > > Images with systemd fails on reboot with error: > > > >[FAILED] Failed unmounting Temporary Directory (/tmp). > > > > This happens because busybox umount command doesn't has -c > > option. Add util-linux-umount that has this option to fix > > this issue. > > > > See details: https://github.com/systemd/systemd/issues/7786 > > That bug report mentions a fix to busybox. Since the fix is available > in upstream busybox, maybe better to just backport the patch to our > version of buysbox: > > https://git.busybox.net/busybox/commit/?id= > 426134128112738c97a665170b21153ef0764b7d > > > Signed-off-by: Fabio Berton > > --- > > meta/recipes-core/systemd/systemd_237.bb | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/recipes-core/systemd/systemd_237.bb > b/meta/recipes-core/systemd/systemd_237.bb > > index b7c2113255f..3b0f4580d49 100644 > > --- a/meta/recipes-core/systemd/systemd_237.bb > > +++ b/meta/recipes-core/systemd/systemd_237.bb > > @@ -478,7 +478,7 @@ FILES_${PN} = " ${base_bindir}/* \ > > > > FILES_${PN}-dev += "${base_libdir}/security/*.la > ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd" > > > > -RDEPENDS_${PN} += "kmod dbus util-linux-mount udev (= ${EXTENDPKGV}) > util-linux-agetty" > > +RDEPENDS_${PN} += "kmod dbus util-linux-mount util-linux-umount udev (= > ${EXTENDPKGV}) util-linux-agetty" > > RDEPENDS_${PN} += "${@bb.utils.contains('PACKAGECONFIG', > 'serial-getty-generator', '', 'systemd-serialgetty', d)}" > > RDEPENDS_${PN} += "volatile-binds update-rc.d" > > > > -- > > 2.14.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
[OE-core] [PATCH] libsdl2: remove redundant DEPENDS
These dependencies are in the x11 PACKAGECONFIG and will magically transform for nativesdk builds. Signed-off-by: Ross Burton--- meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb | 2 -- 1 file changed, 2 deletions(-) diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb index c37f6693218..6966dc5c348 100644 --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.8.bb @@ -12,8 +12,6 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=02ee26814dd044bd7838ae24e05b880f" PROVIDES = "virtual/libsdl2" -DEPENDS_class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/nativesdk-libx11 nativesdk-libxrandr nativesdk-libxrender nativesdk-libxext', '', d)}" - SRC_URI = " \ http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ " -- 2.11.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/2] base-files: profile: Do not assume that the 'command' command exists
On Fri, Oct 13, 2017 at 06:07:16PM +0800, ChenQi wrote: > On 10/13/2017 05:53 PM, ChenQi wrote: > > On 09/18/2017 09:56 PM, Mike Looijmans wrote: > >> On 18-09-17 15:24, Mike Looijmans wrote: > >>> On 18-09-17 15:08, Burton, Ross wrote: > On 18 September 2017 at 12:31, Mike Looijmans >> wrote: > > This is basically the same change as I first sent a patch > for in > April, and > last pinged this Friday... The only real difference is that > this one > misses > passing error output from resize to /dev/null (which it > should do to > handle > the case where tty exists, but resize does not). > > > Yeah, indeed. > > > Apologies for missing that patch! > > Other problem is that "resize" outputs shell script on stdout > to be > executed, so the proper "total" invokation would be: > > /dev/tty[A-z]*) eval `resize 2>/dev/null` ;; > > The "eval" part is missing in your version... > > > Who is going to submit the One True patch with all the fixes in? I > promise to merge it. > >>> > >>> I'll send the one ring, eh, patch, in a few minutes. I'll merge the > >>> two into a single as well. > >> > >> On second thought, just use Peter's patch "as is". > >> > >> I've been experimenting with the "eval" part and it doesn't behave > >> well. Tends to confuse minicom, create garbage, and in particular > >> when run from "profile", it seems to result in counterproductive > >> COLUMNS=0 and LINES=0. > >> > >> I'm actually wondering why the call to "resize" is being done at all. > >> Just calling "resize" has no effect, since it outputs the results on > >> stdout as shell script, and that is being discarded. Looking at the > >> commit that introduced it: > >> > > > > Looking at the codes in busybox (console-tools/resize.c), I can see > > that tcsetattr is actually called. > > The output is due to: > > > > if (ENABLE_FEATURE_RESIZE_PRINT) > > printf("COLUMNS=%d;LINES=%d;export COLUMNS LINES;\n", > > w.ws_col, w.ws_row); > > > > I can confirm that calling 'resize' is needed. Otherwise, you might > > get input wrapping on the same line when typing long commands. > > > > I just tried busybox init based system and I also met '-sh: command: > > not found' error message. > > Sorry for the noise. Just noticed that oe-core has enabled 'command' for > busybox by default. It's my own busybox defconfig that hasn't enabled it. I was just hit by the same. resize and tty work fine, but command applet is missing in my images. Is enabling command applet in busybox now hard requirement for all the builds or is anyone still planing to send follow-up on this? At least to show some more meaningful error when it's not available? "you probably need to fix your busybox defconfig, because some old thread on oe-core ML says so" Cheers, > Best Regards, > Chen Qi > > > I think Peter's patch ([OE-core] [PATCHv2 1/1] base-files: profile: > > Avoid using "command" to determine if programs exist) is correct. > > > > Best Regards, > > Chen Qi > > > >> cc6360f4c4d9 (base-files: set dynamic COLUMNS via resize command) > >> > >> that already has no effect whatsoever. See the man page for resize: > >> https://linux.die.net/man/1/resize > >> > >> I also would consider running some program's output as shell script a > >> bit spooky, it looks like a security hole waiting to be exploited. > >> > >> > >> > >> Kind regards, > >> > >> Mike Looijmans > >> System Expert > >> > >> TOPIC Products > >> Materiaalweg 4, NL-5681 RJ Best > >> Postbus 440, NL-5680 AK Best > >> Telefoon: +31 (0) 499 33 69 79 > >> E-mail: mike.looijm...@topicproducts.com > >> Website: www.topicproducts.com > >> > >> Please consider the environment before printing this e-mail > >> > >> > >> > > > > -- > ___ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core -- Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com signature.asc Description: Digital signature -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] wget: fix CVE-2018-0494
Reference:https://nvd.nist.gov/vuln/detail/CVE-2018-0494 patch from https://github.com/mirror/wget.git commit 8d793bf2ecca84a5ece167c750a83d6eadb4a16a Signed-off-by: Jibin Xu--- .../wget/wget/wget-CVE-2018-0494.patch | 68 ++ meta/recipes-extended/wget/wget_1.19.4.bb | 1 + 2 files changed, 69 insertions(+) create mode 100644 meta/recipes-extended/wget/wget/wget-CVE-2018-0494.patch diff --git a/meta/recipes-extended/wget/wget/wget-CVE-2018-0494.patch b/meta/recipes-extended/wget/wget/wget-CVE-2018-0494.patch new file mode 100644 index 00..5eda9636e3 --- /dev/null +++ b/meta/recipes-extended/wget/wget/wget-CVE-2018-0494.patch @@ -0,0 +1,68 @@ +From 1fc9c95ec144499e69dc8ec76dbe07799d7d82cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Tim=20R=C3=BChsen?= +Date: Fri, 27 Apr 2018 10:41:56 +0200 +Subject: [PATCH] Fix cookie injection (CVE-2018-0494) + +* src/http.c (resp_new): Replace \r\n by space in continuation lines + +Fixes #53763 + "Malicious website can write arbitrary cookie entries to cookie jar" + +HTTP header parsing left the \r\n from continuation line intact. +The Set-Cookie code didn't check and could be tricked to write +\r\n into the cookie jar, allowing a server to generate cookies at will. + +Upstream-Status: Backport +CVE: CVE-2018-0494 + +Signed-off-by: Jibin Xu +--- + src/http.c | 18 +- + 1 file changed, 13 insertions(+), 5 deletions(-) + +diff --git a/src/http.c b/src/http.c +index c8960f1..77bdbbe 100644 +--- a/src/http.c b/src/http.c +@@ -613,9 +613,9 @@ struct response { +resp_header_*. */ + + static struct response * +-resp_new (const char *head) ++resp_new (char *head) + { +- const char *hdr; ++ char *hdr; + int count, size; + + struct response *resp = xnew0 (struct response); +@@ -644,15 +644,23 @@ resp_new (const char *head) + break; + + /* Find the end of HDR, including continuations. */ +- do ++ for (;;) + { +- const char *end = strchr (hdr, '\n'); ++ char *end = strchr (hdr, '\n'); ++ + if (end) + hdr = end + 1; + else + hdr += strlen (hdr); ++ ++ if (*hdr != ' ' && *hdr != '\t') ++break; ++ ++ // continuation, transform \r and \n into spaces ++ *end = ' '; ++ if (end > head && end[-1] == '\r') ++end[-1] = ' '; + } +- while (*hdr == ' ' || *hdr == '\t'); + } + DO_REALLOC (resp->headers, size, count + 1, const char *); + resp->headers[count] = NULL; +-- +2.7.4 + diff --git a/meta/recipes-extended/wget/wget_1.19.4.bb b/meta/recipes-extended/wget/wget_1.19.4.bb index fb7cce5a20..6ffcf8aa3b 100644 --- a/meta/recipes-extended/wget/wget_1.19.4.bb +++ b/meta/recipes-extended/wget/wget_1.19.4.bb @@ -1,6 +1,7 @@ SRC_URI = "${GNU_MIRROR}/wget/wget-${PV}.tar.gz \ file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ file://0002-improve-reproducibility.patch \ + file://wget-CVE-2018-0494.patch \ " SRC_URI[md5sum] = "a2a2c1dc4ac5003fc25a8e60b4a9464e" -- 2.13.0 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] boost: add ptest support
From: Mingli Yu* Add a patch to remove rpath when compiling tests. * The rules for tests don't work in cross-compiling, they try to run the executable after compiling and linking the test program, so add a patch to hack the rules, and add the running logic in run-ptest * There are 2000+ test cases for 26 added libs, I'm not able to make all of them work for now and I think ptest is not necessary to cover all of them, so add a patch to remove some of the tests, which include: - those require extra dependencies - those require specific target hardware - those require input data or config files - those compile fail with unknown reason - those require command parameters/options when running Signed-off-by: Jackie Huang Signed-off-by: Mingli Yu --- meta/recipes-support/boost/boost.inc | 66 + .../boost/boost/0001-test-remove-some-tests.patch | 1728 .../boost/boost/boost-remove-rpath.patch | 28 + .../boost-testing-hack-the-rules-for-ptest.patch | 53 + meta/recipes-support/boost/boost/run-ptest | 41 + 5 files changed, 1916 insertions(+) create mode 100644 meta/recipes-support/boost/boost/0001-test-remove-some-tests.patch create mode 100644 meta/recipes-support/boost/boost/boost-remove-rpath.patch create mode 100644 meta/recipes-support/boost/boost/boost-testing-hack-the-rules-for-ptest.patch create mode 100644 meta/recipes-support/boost/boost/run-ptest diff --git a/meta/recipes-support/boost/boost.inc b/meta/recipes-support/boost/boost.inc index 6984bee777..cf9a5d41e2 100644 --- a/meta/recipes-support/boost/boost.inc +++ b/meta/recipes-support/boost/boost.inc @@ -69,6 +69,27 @@ python __anonymous () { d.setVar("BJAM_EXTRA", " ".join(extras)) } +inherit ptest + +SRC_URI_append = " \ +file://run-ptest \ +file://boost-remove-rpath.patch \ +file://boost-testing-hack-the-rules-for-ptest.patch \ +file://0001-test-remove-some-tests.patch \ +" +# Required by some of the tests +FILES_${PN}-ptest += " \ + ${libdir}/libboost_regex_extra.so.* \ + ${libdir}/libboost_regex_recursive.so.* \ + ${libdir}/liba.so.* \ + ${libdir}/libsingle_instance_lib2.so.* \ + ${libdir}/libsingle_instance_lib1.so.* \ + ${libdir}/libdisable-lib_*.so.* \ + ${libdir}/libdll_*.so.* \ + ${libdir}/libthrow_test.so.* \ +" +RDEPENDS_${PN}-ptest = "coreutils" + # Override the contents of specific packages FILES_${PN}-graph_parallel = "${libdir}/libboost_graph_parallel.so.*" FILES_${PN}-locale = "${libdir}/libboost_locale.so.*" @@ -181,6 +202,51 @@ do_compile() { --debug-configuration } +do_compile_ptest() { + for lib in ${BOOST_LIBS}; do + # ignore python3 since there is no such + # sub-dir in libs + [ ${lib} = "python3" ] && continue + + cd ${S}/libs/${lib}/test + [ -f build/Jamfile.v2 ] && cd build + bjam ${BJAM_OPTS} --prefix=${prefix} \ + --exec-prefix=${exec_prefix} \ + --libdir=${libdir} \ + --includedir=${includedir} + done +} + +do_install_ptest() { + build_bin="${S}/${TARGET_SYS}/boost/bin.v2" + + for lib in ${BOOST_LIBS}; do + # ignore python3 since there is no such + # sub-dir in libs + [ "${lib}" = "python3" ] && continue + + install -d ${D}/${PTEST_PATH}/${lib} + lib_test_dir="${build_bin}/libs/${lib}/test" + for testdir in `ls -d ${lib_test_dir}/*.test ${lib_test_dir}/build/*.test 2>/dev/null`; do + testname=`basename ${testdir%.test}` + testfile=`find ${testdir} -name ${testname}` + if [ -n "${testfile}" -a -f "${testfile}" ]; then + install -m 0755 ${testfile} ${D}${PTEST_PATH}/${lib} + fi + done + done + + extra_ptest_libs="libboost_regex_extra.so* libboost_regex_recursive.so.* liba.so.* libsingle_instance_lib2.so.* libsingle_instance_lib1.so.* libdisable-lib_*.so.* libdll_*.so* libthrow_test.so*" + for lib in ${extra_ptest_libs}; do + f=`find ${build_bin}/libs -name ${lib}` + if [ -n "${f}" ]; then + install -m 0755 ${f} ${D}${libdir} + fi + done + + sed -i 's/@BOOST_LIBS@/${BOOST_LIBS}/' ${D}${PTEST_PATH}/run-ptest +} + do_install() { bjam ${BJAM_OPTS} \ --libdir=${D}${libdir} \ diff --git a/meta/recipes-support/boost/boost/0001-test-remove-some-tests.patch b/meta/recipes-support/boost/boost/0001-test-remove-some-tests.patch new file mode 100644 index 00..7d2f916822 --- /dev/null +++
[OE-core] [PATCH] gmp: do the multilib_header magic for gmp.h
From: Changqing LiAdd multilib support feature for this recipe Signed-off-by: Changqing Li --- meta/recipes-support/gmp/gmp.inc | 2 +- meta/recipes-support/gmp/gmp_6.1.2.bb | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-support/gmp/gmp.inc b/meta/recipes-support/gmp/gmp.inc index abac8cf..948b892 100644 --- a/meta/recipes-support/gmp/gmp.inc +++ b/meta/recipes-support/gmp/gmp.inc @@ -3,7 +3,7 @@ DESCRIPTION = "GMP is a free library for arbitrary precision arithmetic, operati HOMEPAGE = "http://gmplib.org/; SECTION = "devel" -inherit autotools texinfo +inherit autotools texinfo multilib_header PACKAGECONFIG ??= "" PACKAGECONFIG[readline] = "--with-readline=yes,--with-readline=no,readline" diff --git a/meta/recipes-support/gmp/gmp_6.1.2.bb b/meta/recipes-support/gmp/gmp_6.1.2.bb index b008710..c745dbb 100644 --- a/meta/recipes-support/gmp/gmp_6.1.2.bb +++ b/meta/recipes-support/gmp/gmp_6.1.2.bb @@ -25,6 +25,10 @@ EXTRA_OECONF_mipsarchr6_append = " --disable-assembly" PACKAGES =+ "libgmpxx" FILES_libgmpxx = "${libdir}/libgmpxx${SOLIBS}" +do_install_append() { + oe_multilib_header gmp.h +} + do_install_prepend_class-target() { sed -i \ -e "s|--sysroot=${STAGING_DIR_HOST}||g" \ -- 2.7.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core