Re: [OE-core] SFO17 Cross-Distro meeting notes
On 29 September 2017 at 21:26, Tom Rini <tr...@konsulko.com> wrote: > On Fri, Sep 29, 2017 at 02:06:21AM +0300, Riku Voipio wrote: > > [snip] >> On arm64, Kernel doesn't self-decompress. The bootloaders are stringly >> recommended to support decompressing kernel images. It's optional in >> grub, make sure your grub does. At least iPXE and u-boot don't support >> booting Image.gz on arm64, and should be fixed. > > Not strictly true. We do expect that if you're loading in a > compressed something that you uncompress it then boot it. I assume part > of the reason that Linux didn't go for self-decompression this time is > the "my goodness, it's tricky to get here's where we are, here's what > else is in the system, lets not stomp anything and get ourself to where > we need to be" is in fact tricky. Thanks for the clarification. The kernel Documentation/arm64/booting.txt is vague in reasoning, but you are right it's tricky. Kernel developers assume the bootloader is better equipped to know where in memory to decompress than a early kernel decompress loop. > That said, patches to check for ${VALID_COMPRESSION_HEADER}, uncompress > a chunk, confirm valid Image header, and uncompress to where it needs to > reside would be welcome. While the unzip command hint is good, from cross-distro PoV I think this kind of transparent decompression is needed to make the syslinux bootmenu command "just work". Riku -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] SFO17 Cross-Distro meeting notes
= LSE atomics problem = Large System Extensions, part of ARMv8.1, provides new atomics instructions. These instructions are essential for high performance locking when you have lots of cores. Recommendation: distributions should provide an alternative optimized glibc with LSE atomics based locks for end users. = Scalable Vector Extensions = May have an ABI issue. Situation under investigation. = Page size = Don't assume your binaries will always execute in the page size they were built on. Even if your distribution is built on 4K page size, be aware that some of your users might opt to run with 64K page size kernel - for example in containers. Users be aware, that switching between 4K and 64K kernels may break some data structures that depend on page size. Swap needs be reformatted, and btrfs will explode on page size change- = OCI spec = With LSE, SVE, armv8.x releases coming, any containers using newer instructions should be identified in variant field. = Booting = One day, booting on arm will be so boring, that nobody will bring it up on our cross-distribution BoF. That day was not today. RHEL only supports ACPI on arm64. Even if you are not RHEL, you should prefer ACPI over device tree, if the former is available. U-boot can now start EFI binaries, making u-boot an excellent platform to implement an UEFI bios. This allows single-path installers for distributions, where install of distribution starts always by loading grub from EFI. On arm64, Kernel doesn't self-decompress. The bootloaders are stringly recommended to support decompressing kernel images. It's optional in grub, make sure your grub does. At least iPXE and u-boot don't support booting Image.gz on arm64, and should be fixed. Riku -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] ARM Cross-distro BoF at Linaro Connect next week
Hi, We'll have the traditional cross-distribution BoF at Linaro connect Wednesday 27.9, at 3PM US pacific time - 22.00 UTC. We don't have a set agenda, but if anything is bugging you, replying to this mail is great way to make it into our topics :) Riku -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] Cross-distribution ARM meetings at Linaro connect this weel
Hi, We have a few sessions at this Linaro connect that could be in interest of Linux distributions working on Arm/Linux: Tuesday 14.00 Bangkok time: (07.00 UTC): https://bkk16.pathable.com/meetings/372827 BKK16-212: What's broken on ARM64? Thursday 10.10 Bangkok time: (03.00 UTC): https://bkk16.pathable.com/meetings/372890 BKK16-402: Cross distro BoF Friday 10.10 Bangkok time: (03.00 UTC): https://bkk16.pathable.com/meetings/372923 BKK16-501: Kernel Consolidation and Other Short Stories Talks are being live-streamed (thou there were problems today..) and recorded in case time happens to be inconvenient in your timezones. If you have anything specific in your mind, feel free to reply to this mail to cross-distribution list, and I'll get it added to the agenda slides. Cheers, Riku -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] Cross-distribution ARM Linux platform support meeting at Connect San Fransisco
Hi everyone, Since cross-distribution meetings at Linaro Connect have been popular, we are continuing the tradition and having a session[1] in Linaro Connect next week. https://sfo15.pathable.com/meetings/302652 The event is on Monday September 21, 16.10 PST (aka 23:10:00 UTC). Details of google hangout should be coming closer to event. If you have anything specific in your mind, feel free to reply to this mail to cross-distribution list, and I'll get it added to the agenda. Cheers, Riku -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] udev: fix /var/volatile/tmp permissions
Hi, Any updates on this one? Riku On 14 August 2014 12:03, Riku Voipio riku.voi...@linaro.org wrote: Mariadb postinstall will fail with: ERROR: 1 Can't create/write to file '/tmp/#sql_a2a_0.MAI' (Errcode: 13) 140814 8:14:06 [ERROR] Aborting /tmp is a link to /var/volatile/tmp, set as: drwxr-xr-x 3 root root 60 Aug 14 08:07 . populate-volatiles.sh does not create the directory or set permissions, because it already exists: Checking for -/var/volatile/tmp-. Creating directory -/var/volatile/tmp-. Target already exists. Skipping. Traced the creation to the initfile in udev. Create with -m 1755 to be sure. With this patch applied, mysql postinst succeeds and creates the neccesary user tables. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- meta/recipes-core/udev/udev/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index f2c84d5..a442c74 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -57,7 +57,7 @@ case $1 in # the automount rule for udev needs /tmp directory available, as /tmp is a symlink # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure # /var/volatile/tmp directory to be available. -mkdir -p /var/volatile/tmp +mkdir -m 1777 -p /var/volatile/tmp # Cache handling. # A list of files which are used as a criteria to judge whether the udev cache could be reused. -- 2.0.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] udev: fix /var/volatile/tmp permissions
Mariadb postinstall will fail with: ERROR: 1 Can't create/write to file '/tmp/#sql_a2a_0.MAI' (Errcode: 13) 140814 8:14:06 [ERROR] Aborting /tmp is a link to /var/volatile/tmp, set as: drwxr-xr-x 3 root root 60 Aug 14 08:07 . populate-volatiles.sh does not create the directory or set permissions, because it already exists: Checking for -/var/volatile/tmp-. Creating directory -/var/volatile/tmp-. Target already exists. Skipping. Traced the creation to the initfile in udev. Create with -m 1755 to be sure. With this patch applied, mysql postinst succeeds and creates the neccesary user tables. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- meta/recipes-core/udev/udev/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/udev/udev/init b/meta/recipes-core/udev/udev/init index f2c84d5..a442c74 100644 --- a/meta/recipes-core/udev/udev/init +++ b/meta/recipes-core/udev/udev/init @@ -57,7 +57,7 @@ case $1 in # the automount rule for udev needs /tmp directory available, as /tmp is a symlink # to /var/tmp which in turn is a symlink to /var/volatile/tmp, we need to make sure # /var/volatile/tmp directory to be available. -mkdir -p /var/volatile/tmp +mkdir -m 1777 -p /var/volatile/tmp # Cache handling. # A list of files which are used as a criteria to judge whether the udev cache could be reused. -- 2.0.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 1/3] ltp: cleanup recipe
On 22 October 2013 01:42, Khem Raj raj.k...@gmail.com wrote: On Monday, October 21, 2013, Riku Voipio riku.voi...@linaro.org wrote: Cleanups for ltp: 1. Instead of using giturl like in Anders's patch use the sourceforge mirror URL. whats wrong with git url ? The previous LTP version in OE used to have tarball url, so I was just changing it back. I guess the main functional difference is that git url won't have checksums for downloads? Using tarball downloads over git checkouts is being more kind to upstream hosting. Mostly a matter of taste, or does OE-core have some preferred policy? Riku 2. remove to the manual unpack rule and just set S variable to source directory. 3. Follow the OE style guide for variable order. --- meta/recipes-extended/ltp/ltp_20130904.bb | 50 +-- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/meta/recipes-extended/ltp/ltp_20130904.bb b/meta/recipes-extended/ltp/ltp_20130904.bb index 5e10448..43fe780 100644 --- a/meta/recipes-extended/ltp/ltp_20130904.bb +++ b/meta/recipes-extended/ltp/ltp_20130904.bb @@ -21,44 +21,21 @@ LIC_FILES_CHKSUM = file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ DEPENDS = attr libaio libcap acl openssl -SRC_URI = git://github.com/linux-test-project/ltp.git +SRC_URI = ${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \ + -SRCREV = a8c42db5f9314211811c36275a21f83902830dc5 -S = ${WORKDIR}/git +SRC_URI[md5sum] = 0cf2ccb7199f8318d413c62a085629f0 +SRC_URI[sha256sum] = 662c3661a4d1bfbf3187d0835f35e613b43eedc35a840e3283e378a19606ee0b export prefix = /opt/ltp export exec_prefix = /opt/ltp inherit autotools -RDEPENDS_${PN} = perl e2fsprogs-mke2fs - -FILES_${PN}-dbg += /opt/ltp/runtest/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/*/bin/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/*/test/.debug -FILES_${PN}-dbg += /opt/ltp/scenario_groups/.debug -FILES_${PN}-dbg += /opt/ltp/testscripts/.debug -FILES_${PN}-dbg += /opt/ltp/testscripts/open_posix_testsuite/.debug - -FILES_${PN}-staticdev += /opt/ltp/lib/libmem.a - -FILES_${PN} += /opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/* +S = ${WORKDIR}/ltp-full-${PV} TARGET_CC_ARCH += ${LDFLAGS} -do_unpack_append() { -bb.build.exec_func('do_extract_tarball', d) -} - -do_extract_tarball() { - if test -f ${WORKDIR}/ltp-full-${PV} ; then - tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR} - rm -rf ${WORKDIR}/ltp-${PV} - mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV} - fi -} - do_install(){ install -d ${D}/opt/ltp/ oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install @@ -66,10 +43,25 @@ do_install(){ # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases - # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in poky + # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in oe-core # We will add expect for enhancement in future find ${D} -type f -print | xargs grep \!.*\/usr\/bin\/expect | awk -F: '{print $1}' | xargs rm -f } +FILES_${PN}-dbg += /opt/ltp/runtest/.debug \ +/opt/ltp/testcases/bin/.debug \ +/opt/ltp/testcases/bin/*/bin/.debug \ +/opt/ltp/testcases/bin/*/test/.debug \ +/opt/ltp/scenario_groups/.debug \ +/opt/ltp/testscripts/.debug \ +/opt/ltp/testscripts/open_posix_testsuite/.debug \ + + +FILES_${PN}-staticdev += /opt/ltp/lib/libmem.a + +FILES_${PN} += /opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/* + +RDEPENDS_${PN} = perl e2fsprogs-mke2fs + # Avoid generated binaries stripping
[OE-core] [PATCH 2/3] ltp: Fix aarch64 build
Add backported patch from upstream to allow building on ltp Aarch64. --- meta/recipes-extended/ltp/files/fix-arm64.patch | 59 + meta/recipes-extended/ltp/ltp_20130904.bb | 1 + 2 files changed, 60 insertions(+) create mode 100644 meta/recipes-extended/ltp/files/fix-arm64.patch diff --git a/meta/recipes-extended/ltp/files/fix-arm64.patch b/meta/recipes-extended/ltp/files/fix-arm64.patch new file mode 100644 index 000..383467d --- /dev/null +++ b/meta/recipes-extended/ltp/files/fix-arm64.patch @@ -0,0 +1,59 @@ +Upstream-Status: Backport + +commit e5c18eaa4b8f9f73516eaf68213d6beee80cf3b5 +Author: Riku Voipio riku.voi...@linaro.org +Date: Fri Oct 11 12:09:08 2013 +0300 + +Remove bogus Aarch64 system call numbers + +Aarch64 build fails with: + +cacheflush01.c:52:26: fatal error: asm/cachectl.h: No such file or directory + #include asm/cachectl.h + +This is caused by bogus definitions of cacheflush and set_tls, which are +private 32bit ARM system calls. These should not be used on native +Aarch64 binaries. If they need to be tested, it is better done using ltp +compiled for 32bit ARM. + +Signed-off-by: Riku Voipio riku.voi...@linaro.org +Signed-off-by: Mike Frysinger vap...@gentoo.org + + +Index: ltp-full-20130904/testcases/kernel/include/aarch64.in +=== +--- ltp-full-20130904.orig/testcases/kernel/include/aarch64.in 2013-09-04 10:18:22.0 +0300 ltp-full-20130904/testcases/kernel/include/aarch64.in 2013-10-11 11:20:47.565921406 +0300 +@@ -253,5 +253,3 @@ + syncfs 267 + setns 268 + sendmmsg 269 +-cacheflush 0x1002 +-set_tls 0x1005 +Index: ltp-full-20130904/testcases/kernel/include/linux_syscall_numbers.h +=== +--- ltp-full-20130904.orig/testcases/kernel/include/linux_syscall_numbers.h 2013-09-04 10:18:22.0 +0300 ltp-full-20130904/testcases/kernel/include/linux_syscall_numbers.h 2013-10-11 11:22:20.013925880 +0300 +@@ -801,12 +801,6 @@ + # ifndef __NR_sendmmsg + # define __NR_sendmmsg 269 + # endif +-# ifndef __NR_cacheflush +-# define __NR_cacheflush 0x1002 +-# endif +-# ifndef __NR_set_tls +-# define __NR_set_tls 0x1005 +-# endif + #endif + + +@@ -12754,9 +12748,6 @@ + # ifndef __NR_settimeofday + # define __NR_settimeofday __LTP__NR_INVALID_SYSCALL + # endif +-# ifndef __NR_set_tls +-# define __NR_set_tls __LTP__NR_INVALID_SYSCALL +-# endif + # ifndef __NR_setuid + # define __NR_setuid __LTP__NR_INVALID_SYSCALL + # endif diff --git a/meta/recipes-extended/ltp/ltp_20130904.bb b/meta/recipes-extended/ltp/ltp_20130904.bb index 43fe780..cf016f9 100644 --- a/meta/recipes-extended/ltp/ltp_20130904.bb +++ b/meta/recipes-extended/ltp/ltp_20130904.bb @@ -22,6 +22,7 @@ LIC_FILES_CHKSUM = file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ DEPENDS = attr libaio libcap acl openssl SRC_URI = ${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \ + file://fix-arm64.patch \ SRC_URI[md5sum] = 0cf2ccb7199f8318d413c62a085629f0 -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 1/3] ltp: cleanup recipe
Cleanups for ltp: 1. Instead of using giturl like in Anders's patch use the sourceforge mirror URL. 2. remove to the manual unpack rule and just set S variable to source directory. 3. Follow the OE style guide for variable order. --- meta/recipes-extended/ltp/ltp_20130904.bb | 50 +-- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/meta/recipes-extended/ltp/ltp_20130904.bb b/meta/recipes-extended/ltp/ltp_20130904.bb index 5e10448..43fe780 100644 --- a/meta/recipes-extended/ltp/ltp_20130904.bb +++ b/meta/recipes-extended/ltp/ltp_20130904.bb @@ -21,44 +21,21 @@ LIC_FILES_CHKSUM = file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ DEPENDS = attr libaio libcap acl openssl -SRC_URI = git://github.com/linux-test-project/ltp.git +SRC_URI = ${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \ + -SRCREV = a8c42db5f9314211811c36275a21f83902830dc5 -S = ${WORKDIR}/git +SRC_URI[md5sum] = 0cf2ccb7199f8318d413c62a085629f0 +SRC_URI[sha256sum] = 662c3661a4d1bfbf3187d0835f35e613b43eedc35a840e3283e378a19606ee0b export prefix = /opt/ltp export exec_prefix = /opt/ltp inherit autotools -RDEPENDS_${PN} = perl e2fsprogs-mke2fs - -FILES_${PN}-dbg += /opt/ltp/runtest/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/*/bin/.debug -FILES_${PN}-dbg += /opt/ltp/testcases/bin/*/test/.debug -FILES_${PN}-dbg += /opt/ltp/scenario_groups/.debug -FILES_${PN}-dbg += /opt/ltp/testscripts/.debug -FILES_${PN}-dbg += /opt/ltp/testscripts/open_posix_testsuite/.debug - -FILES_${PN}-staticdev += /opt/ltp/lib/libmem.a - -FILES_${PN} += /opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/* +S = ${WORKDIR}/ltp-full-${PV} TARGET_CC_ARCH += ${LDFLAGS} -do_unpack_append() { -bb.build.exec_func('do_extract_tarball', d) -} - -do_extract_tarball() { - if test -f ${WORKDIR}/ltp-full-${PV} ; then - tar x --no-same-owner -f ${WORKDIR}/ltp-full-${PV} -C ${WORKDIR} - rm -rf ${WORKDIR}/ltp-${PV} - mv ${WORKDIR}/ltp-full-${PV} ${WORKDIR}/ltp-${PV} - fi -} - do_install(){ install -d ${D}/opt/ltp/ oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install @@ -66,10 +43,25 @@ do_install(){ # Copy POSIX test suite into ${D}/opt/ltp/testcases by manual cp -r testcases/open_posix_testsuite ${D}/opt/ltp/testcases - # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in poky + # We need to remove all scripts which depend on /usr/bin/expect, since expect is not supported in oe-core # We will add expect for enhancement in future find ${D} -type f -print | xargs grep \!.*\/usr\/bin\/expect | awk -F: '{print $1}' | xargs rm -f } +FILES_${PN}-dbg += /opt/ltp/runtest/.debug \ +/opt/ltp/testcases/bin/.debug \ +/opt/ltp/testcases/bin/*/bin/.debug \ +/opt/ltp/testcases/bin/*/test/.debug \ +/opt/ltp/scenario_groups/.debug \ +/opt/ltp/testscripts/.debug \ +/opt/ltp/testscripts/open_posix_testsuite/.debug \ + + +FILES_${PN}-staticdev += /opt/ltp/lib/libmem.a + +FILES_${PN} += /opt/ltp/* /opt/ltp/runtest/* /opt/ltp/scenario_groups/* /opt/ltp/testcases/bin/* /opt/ltp/testcases/bin/*/bin/* /opt/ltp/testscripts/* /opt/ltp/testcases/open_posix_testsuite/* /opt/ltp/testcases/open_posix_testsuite/conformance/* /opt/ltp/testcases/open_posix_testsuite/Documentation/* /opt/ltp/testcases/open_posix_testsuite/functional/* /opt/ltp/testcases/open_posix_testsuite/include/* /opt/ltp/testcases/open_posix_testsuite/scripts/* /opt/ltp/testcases/open_posix_testsuite/stress/* /opt/ltp/testcases/open_posix_testsuite/tools/* + +RDEPENDS_${PN} = perl e2fsprogs-mke2fs + # Avoid generated binaries stripping. Otherwise some of the ltp tests such as ldd01 nm01 fails INHIBIT_PACKAGE_STRIP = 1 -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH 3/3] ltp: enable power management and realtime tests
ltp includes realtime and power management tests, that are somewhat experimental and not enabled by default. Add the configuration options to enable them, and a backported patch that allows compilation with more pedantic toolchains. You will still need to run the realtime tests explicitly, so this should have no impact on people not interested in testing realtime features. --- meta/recipes-extended/ltp/files/fix-pm-tests.patch | 30 ++ meta/recipes-extended/ltp/ltp_20130904.bb | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 meta/recipes-extended/ltp/files/fix-pm-tests.patch diff --git a/meta/recipes-extended/ltp/files/fix-pm-tests.patch b/meta/recipes-extended/ltp/files/fix-pm-tests.patch new file mode 100644 index 000..e8f80de --- /dev/null +++ b/meta/recipes-extended/ltp/files/fix-pm-tests.patch @@ -0,0 +1,30 @@ +Upstream-Status: Backport + +commit 6f3147f01229f3bb953202cde828d35e0d2bcb8a +Author: Riku Voipio riku.voi...@linaro.org +Date: Mon Oct 14 11:50:28 2013 +0300 + +power_management: add TCID + +get_sched_values.c uses interfaces provided by -lltp which need +TCID defined. Not sure how this built successfully before. + +[v2] correct TCID to an unique one + +Cc: Wanlong Gao gaowanl...@cn.fujitsu.com +Signed-off-by: Riku Voipio riku.voi...@linaro.org +Reviewed-by: Wanlong Gao gaowanl...@cn.fujitsu.com + +Index: ltp-full-20130904/testcases/kernel/power_management/get_sched_values.c +=== +--- ltp-full-20130904.orig/testcases/kernel/power_management/get_sched_values.c 2013-09-04 10:18:22.0 +0300 ltp-full-20130904/testcases/kernel/power_management/get_sched_values.c 2013-10-11 14:57:40.890551214 +0300 +@@ -17,6 +17,8 @@ + #include stdio.h + #include test.h + ++const char *TCID = Power_Management; ++ + int get_supp_sched_mc(void) + { + if (tst_kvercmp(2, 6, 29) 0) diff --git a/meta/recipes-extended/ltp/ltp_20130904.bb b/meta/recipes-extended/ltp/ltp_20130904.bb index cf016f9..be553df 100644 --- a/meta/recipes-extended/ltp/ltp_20130904.bb +++ b/meta/recipes-extended/ltp/ltp_20130904.bb @@ -23,6 +23,7 @@ DEPENDS = attr libaio libcap acl openssl SRC_URI = ${SOURCEFORGE_MIRROR}/project/ltp/LTP%20Source/ltp-${PV}/ltp-full-${PV}.tar.bz2 \ file://fix-arm64.patch \ + file://fix-pm-tests.patch \ SRC_URI[md5sum] = 0cf2ccb7199f8318d413c62a085629f0 @@ -36,6 +37,7 @@ inherit autotools S = ${WORKDIR}/ltp-full-${PV} TARGET_CC_ARCH += ${LDFLAGS} +EXTRA_OECONF = --with-power-management-testsuite --with-realtime-testsuite do_install(){ install -d ${D}/opt/ltp/ -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] glib-2.0: fix build on Aarch64
Hi, On 15 October 2013 14:51, Riku Voipio riku.voi...@linaro.org wrote: Backported patch from upstream Can someone look into this soon? Riku Signed-off-by: Riku Voipio riku.voi...@linaro.org --- ...ror-format-string-errors-from-mismatched-.patch | 56 ++ meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb | 1 + 2 files changed, 57 insertions(+) create mode 100644 meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch diff --git a/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch b/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch new file mode 100644 index 000..9b87d9d --- /dev/null +++ b/meta/recipes-core/glib-2.0/glib-2.0/0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch @@ -0,0 +1,56 @@ +From 0167c3340d8201dca8e9031b61703bbc5ed6ce33 Mon Sep 17 00:00:00 2001 +From: Jan Schmidt thay...@noraisin.net +Date: Wed, 25 Sep 2013 19:22:26 +1000 +Subject: [PATCH] gio: Fix -Werror format string errors from mismatched ints. + +Upstream-Status: Backport + +--- + gio/gdbusmessage.c | 8 + gio/gdbusprivate.c | 4 ++-- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c +index ac233a3..ad77aa6 100644 +--- a/gio/gdbusmessage.c b/gio/gdbusmessage.c +@@ -3468,10 +3468,10 @@ g_dbus_message_print (GDBusMessage *message, + statbuf.st_mode); + g_string_append_printf (fs, %s ino=% G_GUINT64_FORMAT, fs-len 0 ? , : , + (guint64) statbuf.st_ino); +- g_string_append_printf (fs, %s uid=%d, fs-len 0 ? , : , +- statbuf.st_uid); +- g_string_append_printf (fs, %s gid=%d, fs-len 0 ? , : , +- statbuf.st_gid); ++ g_string_append_printf (fs, %s uid=%u, fs-len 0 ? , : , ++ (guint) statbuf.st_uid); ++ g_string_append_printf (fs, %s gid=%u, fs-len 0 ? , : , ++ (guint) statbuf.st_gid); + g_string_append_printf (fs, %s rdev=%d:%d, fs-len 0 ? , : , + major (statbuf.st_rdev), minor (statbuf.st_rdev)); + g_string_append_printf (fs, %s size=% G_GUINT64_FORMAT, fs-len 0 ? , : , +diff --git a/gio/gdbusprivate.c b/gio/gdbusprivate.c +index 0e5bef2..785a0c0 100644 +--- a/gio/gdbusprivate.c b/gio/gdbusprivate.c +@@ -2155,7 +2155,7 @@ write_message_print_transport_debug (gssize bytes_written, + _g_dbus_debug_print_lock (); + g_print (\n +GDBus-debug:Transport:\n +- WROTE % G_GSIZE_FORMAT bytes of message with serial %d and\n ++ WROTE % G_GSSIZE_FORMAT bytes of message with serial %d and\n + size % G_GSIZE_FORMAT from offset % G_GSIZE_FORMAT on a %s\n, +bytes_written, +g_dbus_message_get_serial (data-message), +@@ -2206,7 +2206,7 @@ read_message_print_transport_debug (gssize bytes_read, + _g_dbus_debug_print_lock (); + g_print (\n +GDBus-debug:Transport:\n +- READ % G_GSIZE_FORMAT bytes of message with serial %d and\n ++ READ % G_GSSIZE_FORMAT bytes of message with serial %d and\n + size %d to offset % G_GSIZE_FORMAT from a %s\n, +bytes_read, +serial, +-- +1.8.3.1 + diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb index 4b9b112..5717bd2 100644 --- a/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb +++ b/meta/recipes-core/glib-2.0/glib-2.0_2.38.0.bb @@ -14,6 +14,7 @@ SRC_URI = ${GNOME_MIRROR}/glib/${SHRT_VER}/glib-${PV}.tar.xz \ file://add-march-i486-into-CFLAGS-automatically.patch \ file://glib-2.0-configure-readlink.patch \ file://run-ptest \ + file://0001-gio-Fix-Werror-format-string-errors-from-mismatched-.patch \ SRC_URI_append_class-native = file://glib-gettextize-dir.patch -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH 2/5] glib-2.0: upgrade to 2.28.0
On 15 October 2013 12:43, Burton, Ross ross.bur...@intel.com wrote: On 15 October 2013 09:37, Fathi Boudra fathi.bou...@linaro.org wrote: it fails to build on Aarch64: | gdbusprivate.c: In function 'write_message_print_transport_debug': | gdbusprivate.c:2164:12: error: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'gssize' [-Werror=format=] | g_type_name (G_TYPE_FROM_INSTANCE (g_io_stream_get_output_stream (data-worker-stream; | ^ I don't have any aarch64 hardware to test on, can you work with upstream to get a fix and submit it here? This is fixed upstream in: https://git.gnome.org/browse/glib/commit/?id=0167c3340d8201dca8e9031b61703bbc5ed6ce33 I'll submit a patch in a moment. Riku ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] Using pigz-native from sstate-cache while zlib-native is not there yet
Hi Richard, On 21 September 2013 12:54, Richard Purdie do_unpack[depends] += gzip-native:do_populate_sysroot which I think should address the problem? If anyone is interested, the reproducer is: bitbake pigz-native bitbake zlib-native -c clean bitbake core-image-minimal -c populate_lic --no-setscene -f however your system needs to have an old version of zlib on it which pigz-native can't run against. The line above fixes it. I verified on ubuntu precise that the above steps do not cause the zlib relocation error anymore. I see the fix is alreadt in OE-core, thanks! Riku ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] Using pigz-native from sstate-cache while zlib-native is not there yet
Hi, I've started observing build failures with pigz-native fails due ttrying to use too old libz (from host), instead of the one in sysroot. I take most don't see this bug because they have new enough zlib on their host system. | DEBUG: Executing shell function sstate_create_package | gzip: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.5.1' not found (required by gzip) | tar: Child returned status 1 | tar: Error is not recoverable: exiting now | WARNING: exit code 2 from a shell command. | DEBUG: Python function sstate_task_postfunc finished | ERROR: Function failed: sstate_create_package This seems to happen, because 1) pigz-native is extracted from sstate cache 2) zlib-native is outdated, and it's compilation is being started 3) another task trying to use gzip/pigz meanwhile Simply setting DEPENDS_class-native = zlib-native in pigz.bb didn't seem to help. These errors started around September 3rd, and it unclear to me what exactly changed that exposed thise bug. Full build log at: https://ci.linaro.org/jenkins/job/openembedded-armv8-rootfs/label=oe_persistent_cloud,rootfs=lamp/484/consoleText Any hints howto fix this would be appreciated, Riku ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] eglibc: Update SRC_URI and fix unpackaged empty dir
Hi, On 21 August 2013 08:45, Khem Raj raj.k...@gmail.com wrote: diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc index a590cce..1a23805 100644 --- a/meta/recipes-core/eglibc/eglibc-package.inc +++ b/meta/recipes-core/eglibc/eglibc-package.inc @@ -76,6 +76,10 @@ do_install_append () { rm -f ${D}${sysconfdir}/localtime rm -rf ${D}${localstatedir} + # remove empty eglibc dir + if [ -d ${D}${libdir}/eglibc ]; then + rmdir ${D}${libdir}/eglibc + fi oe_multilib_header bits/syscall.h if [ -f ${D}${bindir}/mtrace ]; then This breaks in the case the directory exists and is not empty - which is the case when you build with eglibc-2.17. In that case there is a pt_chown binary. pt_chown is deprecated since devpts was invented, and now removed in 2.18. Riku ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] eglibc: fix directory cleanup for 2.17
Commit e0c2dd275827a4b37b8116d0f0119333638461af broke building eglibc 2.17, which still ships pt_chown under eglibc/ directory. Fix by only deleting directory when pt_chown is not there. Cc: Khem Raj raj.k...@gmail.com --- meta/recipes-core/eglibc/eglibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc index c36d16c..3adf1a9 100644 --- a/meta/recipes-core/eglibc/eglibc-package.inc +++ b/meta/recipes-core/eglibc/eglibc-package.inc @@ -75,7 +75,7 @@ do_install_append () { rm -rf ${D}${localstatedir} # remove empty eglibc dir - if [ -d ${D}${libdir}/eglibc ]; then + if [ -d ${D}${libdir}/eglibc -a ! -e ${D}${libdir}/eglibc/pt_chown ]; then rmdir ${D}${libdir}/eglibc fi oe_multilib_header bits/syscall.h -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] qemu: pass CFLAGS via ./configure instead of a patch
OE carries a patch to pass CFLAGS to qemu. However, we can avoid patching by passing CFLAGS with qemu's --extra-cflags option. Tested that building qemu-native still works without zlib-dev on host, and that qemu builds. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- .../qemu/files/fix-configure-checks.patch | 22 -- meta/recipes-devtools/qemu/qemu.inc| 4 +--- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 meta/recipes-devtools/qemu/files/fix-configure-checks.patch diff --git a/meta/recipes-devtools/qemu/files/fix-configure-checks.patch b/meta/recipes-devtools/qemu/files/fix-configure-checks.patch deleted file mode 100644 index 294c220..000 --- a/meta/recipes-devtools/qemu/files/fix-configure-checks.patch +++ /dev/null @@ -1,22 +0,0 @@ -In native builds, qemu can fail to find zlib development files in the native -sysroot and the build machine might not have zlib-dev packages installed. - -Add CFLAGS to qemu's CFLAGS which in the native case means BUILD_CFLAGS are -added and files in the sysroot can be found. - -Patch from Paul Eggleton, Comments by RP 28/11/10 - -Upstream-Status: Inappropriate [embedded specific] - -Index: qemu-1.4.0/configure -=== qemu-1.4.0.orig/configure 2013-02-15 15:05:35.0 -0800 -+++ qemu-1.4.0/configure 2013-02-25 13:44:17.915273181 -0800 -@@ -286,6 +286,7 @@ - QEMU_CFLAGS=-Wstrict-prototypes -Wredundant-decls $QEMU_CFLAGS - QEMU_CFLAGS=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE $QEMU_CFLAGS - QEMU_INCLUDES=-I. -I\$(SRC_PATH) -I\$(SRC_PATH)/include -+QEMU_CFLAGS=$QEMU_CFLAGS $CFLAGS - if test $debug_info = yes; then - CFLAGS=-g $CFLAGS - LDFLAGS=-g $LDFLAGS diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index c43f1ef..72988f5 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -16,7 +16,6 @@ QEMU_TARGETS ?= arm i386 mips mipsel mips64 mips64el ppc sh4 x86_64 SRC_URI = \ file://powerpc_rom.bin \ file://no-strip.patch \ -file://fix-configure-checks.patch \ file://larger_default_ram_size.patch \ @@ -28,12 +27,11 @@ SRC_URI_append_class-native = \ file://fix-libcap-header-issue-on-some-distro.patch \ -EXTRA_OECONF += --target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --disable-curl --disable-vnc-jpeg --disable-bluez --with-system-pixman +EXTRA_OECONF += --target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls --audio-drv-list=oss,alsa --disable-curl --disable-vnc-jpeg --disable-bluez --with-system-pixman --extra-cflags='${CFLAGS}' EXTRA_OECONF_class-nativesdk = --target-list=${@get_qemu_target_list(d)} --disable-werror --disable-vnc-tls \ --disable-curl \ - export LIBTOOL=${HOST_SYS}-libtool do_configure_prepend_class-native() { -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] webkit-gtk: add aarch64 support
Add patch from meta-linaro to compile webkit on aarch64. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- .../webkit/webkit-gtk-1.8.3/aarch64.patch | 41 ++ meta/recipes-sato/webkit/webkit-gtk_1.8.3.bb | 1 + 2 files changed, 42 insertions(+) create mode 100644 meta/recipes-sato/webkit/webkit-gtk-1.8.3/aarch64.patch diff --git a/meta/recipes-sato/webkit/webkit-gtk-1.8.3/aarch64.patch b/meta/recipes-sato/webkit/webkit-gtk-1.8.3/aarch64.patch new file mode 100644 index 000..a76b0ba --- /dev/null +++ b/meta/recipes-sato/webkit/webkit-gtk-1.8.3/aarch64.patch @@ -0,0 +1,41 @@ +Upstream-Status: Pending +Signed-off-by: Riku Voipio riku.voi...@linaro.org +Index: webkit-1.8.3/Source/JavaScriptCore/wtf/Platform.h +=== +--- webkit-1.8.3.orig/Source/JavaScriptCore/wtf/Platform.h 2013-06-12 00:58:14.0 -0700 webkit-1.8.3/Source/JavaScriptCore/wtf/Platform.h 2013-06-12 00:59:18.764056782 -0700 +@@ -304,6 +304,11 @@ + #define WTF_CPU_NEEDS_ALIGNED_ACCESS 1 + #endif + ++/* CPU(AARCH64) - Aarch64 */ ++#if defined(__aarch64__) ++#define WTF_CPU_AARCH64 1 ++#endif ++ + /* OS() - underlying operating system; only to be used for mandated low-level services like +virtual memory, not to choose a GUI toolkit */ + +@@ -905,7 +910,8 @@ + || CPU(SPARC64) \ + || CPU(S390X) \ + || CPU(MIPS64) \ +-|| CPU(PPC64) ++|| CPU(PPC64) \ ++|| CPU(AARCH64) + #define WTF_USE_JSVALUE64 1 + #else + #define WTF_USE_JSVALUE32_64 1 +Index: webkit-1.8.3/Source/JavaScriptCore/wtf/dtoa/utils.h +=== +--- webkit-1.8.3.orig/Source/JavaScriptCore/wtf/dtoa/utils.h 2013-06-12 00:57:22.0 -0700 webkit-1.8.3/Source/JavaScriptCore/wtf/dtoa/utils.h2013-06-12 00:58:28.340056029 -0700 +@@ -49,7 +49,7 @@ + defined(__ARMEL__) || \ + defined(_MIPS_ARCH_MIPS32R2) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 +-#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA) || CPU(MIPS64) ++#elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || OS(WINCE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(SPARC) || CPU(ALPHA) || CPU(MIPS64) || CPU(AARCH64) + #define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1 + #elif defined(_M_IX86) || defined(__i386__) + #if defined(_WIN32) diff --git a/meta/recipes-sato/webkit/webkit-gtk_1.8.3.bb b/meta/recipes-sato/webkit/webkit-gtk_1.8.3.bb index 3be6dba..ed98b30 100644 --- a/meta/recipes-sato/webkit/webkit-gtk_1.8.3.bb +++ b/meta/recipes-sato/webkit/webkit-gtk_1.8.3.bb @@ -25,6 +25,7 @@ SRC_URI = \ file://bison-2.6.patch \ file://obsolete_automake_macros.patch \ file://0001-Enable-mips64-build.patch \ + file://aarch64.patch \ SRC_URI[md5sum] = dcbf9d5e2e6391f857c29a57528b32a6 -- 1.8.3.1 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] qemu: update to 1.5.0
On 6 June 2013 16:54, Saul Wold s...@linux.intel.com wrote: On 06/06/2013 05:08 AM, Riku Voipio wrote: Patches removed: 0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch - applied 0002-docs-Fix-generating-qemu-doc.html-with-texinfo-5.patch - fixed different upstream Revert-vmware_vga-Add-back-some-info-in-local-state-.patch - fixed different upstream arm-bgr.patch - this should be also fixed upstream, if still issue please resend. fallback-to-safe-mmap_min_addr.patch - this should be also fixed upstream, if still issue please resend. linker-flags.patch - unneeded with makefile changes from configure the obsolete --audio-cards-list option has been removed. Please describe how this was tested, as Qemu is a core part of OE-core we have seen past failures on version updates. It's important to do multi-architecture builds and execution with graphics. Also will it build target binaries (for example the build appliance uses qemu on the target) we have seen failures there also on updates. I've only tested building ARMv5 and ARMv7 systemd-gnome-images (which use qemu-native at some point of build. I just tested also building qemu for arm target and it builds fine. Differences between 1.4.1 and 1.5 in upstream are not that major that they should cause breakage in typical usecases. Setting IMAGETEST=qemu did start qemu but the image didn't start. That however didn't work with 1.4.1 either. Riku Thanks Sau! --- ...x-texinfo-table-markup-in-qemu-options.hx.patch | 213 ...x-generating-qemu-doc.html-with-texinfo-5.patch | 54 - ...re_vga-Add-back-some-info-in-local-state-.patch | 114 --- meta/recipes-devtools/qemu/files/arm-bgr.patch | 30 --- .../files/fallback-to-safe-mmap_min_addr.patch | 39 .../recipes-devtools/qemu/files/linker-flags.patch | 25 --- meta/recipes-devtools/qemu/qemu.inc|7 +- .../qemu/{qemu_1.4.1.bb = qemu_1.5.0.bb} |4 +- 8 files changed, 3 insertions(+), 483 deletions(-) delete mode 100644 meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch delete mode 100644 meta/recipes-devtools/qemu/files/0002-docs-Fix-generating-qemu-doc.html-with-texinfo-5.patch delete mode 100644 meta/recipes-devtools/qemu/files/Revert-vmware_vga-Add-back-some-info-in-local-state-.patch delete mode 100644 meta/recipes-devtools/qemu/files/arm-bgr.patch delete mode 100644 meta/recipes-devtools/qemu/files/fallback-to-safe-mmap_min_addr.patch delete mode 100644 meta/recipes-devtools/qemu/files/linker-flags.patch rename meta/recipes-devtools/qemu/{qemu_1.4.1.bb = qemu_1.5.0.bb} (67%) diff --git a/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch b/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch deleted file mode 100644 index 9435cfe..000 --- a/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch +++ /dev/null @@ -1,213 +0,0 @@ -From 9a7146ca91c04d05af36684d8b3ca79c1254abc2 Mon Sep 17 00:00:00 2001 -From: Markus Armbruster arm...@redhat.com -Date: Wed, 13 Feb 2013 19:49:40 +0100 -Subject: [PATCH 1/2] doc: Fix texinfo @table markup in qemu-options.hx - -End tables before headings, start new ones afterwards. Fixes -incorrect indentation of headings File system options and Virtual -File system pass-through options in manual page and qemu-doc. - -Normalize markup some to increase chances it survives future edits. - -Upstream-Status: Backport - -Signed-off-by: Martin Jansa martin.ja...@gmail.com -Signed-off-by: Markus Armbruster arm...@redhat.com -Reviewed-by: Stefan Hajnoczi stefa...@redhat.com -Message-id: 1360781383-28635-5-git-send-email-arm...@redhat.com -Signed-off-by: Anthony Liguori aligu...@us.ibm.com - qemu-options.hx | 56 +--- - 1 file changed, 37 insertions(+), 19 deletions(-) - -diff --git a/qemu-options.hx b/qemu-options.hx -index 9d7131a..54bd92a 100644 a/qemu-options.hx -+++ b/qemu-options.hx -@@ -537,13 +537,15 @@ STEXI - @end table - ETEXI - --DEF(usb, 0, QEMU_OPTION_usb, ---usbenable the USB driver (will be the default soon)\n, --QEMU_ARCH_ALL) - STEXI - USB options: - @table @option -+ETEXI - -+DEF(usb, 0, QEMU_OPTION_usb, -+-usbenable the USB driver (will be the default soon)\n, -+QEMU_ARCH_ALL) -+STEXI - @item -usb - @findex -usb - Enable the USB driver (will be the default soon) -@@ -610,9 +612,15 @@ possible drivers and properties, use @code{-device help} and - @code{-device @var{driver},help}. - ETEXI - -+STEXI -+@end table -+ETEXI - DEFHEADING() - - DEFHEADING(File system options:) -+STEXI -+@table @option -+ETEXI - - DEF(fsdev, HAS_ARG, QEMU_OPTION_fsdev, - -fsdev fsdriver,id
[OE-core] [PATCH] qemu: update to 1.5.0
Patches removed: 0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch - applied 0002-docs-Fix-generating-qemu-doc.html-with-texinfo-5.patch - fixed different upstream Revert-vmware_vga-Add-back-some-info-in-local-state-.patch - fixed different upstream arm-bgr.patch - this should be also fixed upstream, if still issue please resend. fallback-to-safe-mmap_min_addr.patch - this should be also fixed upstream, if still issue please resend. linker-flags.patch - unneeded with makefile changes from configure the obsolete --audio-cards-list option has been removed. --- ...x-texinfo-table-markup-in-qemu-options.hx.patch | 213 ...x-generating-qemu-doc.html-with-texinfo-5.patch | 54 - ...re_vga-Add-back-some-info-in-local-state-.patch | 114 --- meta/recipes-devtools/qemu/files/arm-bgr.patch | 30 --- .../files/fallback-to-safe-mmap_min_addr.patch | 39 .../recipes-devtools/qemu/files/linker-flags.patch | 25 --- meta/recipes-devtools/qemu/qemu.inc|7 +- .../qemu/{qemu_1.4.1.bb = qemu_1.5.0.bb} |4 +- 8 files changed, 3 insertions(+), 483 deletions(-) delete mode 100644 meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch delete mode 100644 meta/recipes-devtools/qemu/files/0002-docs-Fix-generating-qemu-doc.html-with-texinfo-5.patch delete mode 100644 meta/recipes-devtools/qemu/files/Revert-vmware_vga-Add-back-some-info-in-local-state-.patch delete mode 100644 meta/recipes-devtools/qemu/files/arm-bgr.patch delete mode 100644 meta/recipes-devtools/qemu/files/fallback-to-safe-mmap_min_addr.patch delete mode 100644 meta/recipes-devtools/qemu/files/linker-flags.patch rename meta/recipes-devtools/qemu/{qemu_1.4.1.bb = qemu_1.5.0.bb} (67%) diff --git a/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch b/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch deleted file mode 100644 index 9435cfe..000 --- a/meta/recipes-devtools/qemu/files/0001-doc-Fix-texinfo-table-markup-in-qemu-options.hx.patch +++ /dev/null @@ -1,213 +0,0 @@ -From 9a7146ca91c04d05af36684d8b3ca79c1254abc2 Mon Sep 17 00:00:00 2001 -From: Markus Armbruster arm...@redhat.com -Date: Wed, 13 Feb 2013 19:49:40 +0100 -Subject: [PATCH 1/2] doc: Fix texinfo @table markup in qemu-options.hx - -End tables before headings, start new ones afterwards. Fixes -incorrect indentation of headings File system options and Virtual -File system pass-through options in manual page and qemu-doc. - -Normalize markup some to increase chances it survives future edits. - -Upstream-Status: Backport - -Signed-off-by: Martin Jansa martin.ja...@gmail.com -Signed-off-by: Markus Armbruster arm...@redhat.com -Reviewed-by: Stefan Hajnoczi stefa...@redhat.com -Message-id: 1360781383-28635-5-git-send-email-arm...@redhat.com -Signed-off-by: Anthony Liguori aligu...@us.ibm.com - qemu-options.hx | 56 +--- - 1 file changed, 37 insertions(+), 19 deletions(-) - -diff --git a/qemu-options.hx b/qemu-options.hx -index 9d7131a..54bd92a 100644 a/qemu-options.hx -+++ b/qemu-options.hx -@@ -537,13 +537,15 @@ STEXI - @end table - ETEXI - --DEF(usb, 0, QEMU_OPTION_usb, ---usbenable the USB driver (will be the default soon)\n, --QEMU_ARCH_ALL) - STEXI - USB options: - @table @option -+ETEXI - -+DEF(usb, 0, QEMU_OPTION_usb, -+-usbenable the USB driver (will be the default soon)\n, -+QEMU_ARCH_ALL) -+STEXI - @item -usb - @findex -usb - Enable the USB driver (will be the default soon) -@@ -610,9 +612,15 @@ possible drivers and properties, use @code{-device help} and - @code{-device @var{driver},help}. - ETEXI - -+STEXI -+@end table -+ETEXI - DEFHEADING() - - DEFHEADING(File system options:) -+STEXI -+@table @option -+ETEXI - - DEF(fsdev, HAS_ARG, QEMU_OPTION_fsdev, - -fsdev fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}]\n -@@ -676,9 +684,15 @@ Specifies the tag name to be used by the guest to mount this export point - - ETEXI - -+STEXI -+@end table -+ETEXI - DEFHEADING() - - DEFHEADING(Virtual File system pass-through options:) -+STEXI -+@table @option -+ETEXI - - DEF(virtfs, HAS_ARG, QEMU_OPTION_virtfs, - -virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none]\n -@@ -769,11 +783,9 @@ ETEXI - STEXI - @end table - ETEXI -- - DEFHEADING() - - DEFHEADING(Display options:) -- - STEXI - @table @option - ETEXI -@@ -1215,7 +1227,6 @@ ETEXI - STEXI - @end table - ETEXI -- - ARCHHEADING(, QEMU_ARCH_I386) - - ARCHHEADING(i386 target only:, QEMU_ARCH_I386) -@@ -1301,10 +1312,10 @@ Specify SMBIOS type 0 fields - Specify SMBIOS type 1 fields - ETEXI - --DEFHEADING() - STEXI - @end table - ETEXI -+DEFHEADING() - - DEFHEADING(Network options:) - STEXI -@@ -1718,13 +1729,19 @@
[OE-core] [PATCH] xserver-xorg: enable xvfb
Currently Xvfb has been enabled in openembedded-core. Xvfb is needed for example in Mauve testsuite. Signed-off-by: Riku Voipio riku.voi...@linaro.org --- meta/recipes-graphics/xorg-xserver/xserver-xorg.inc |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc index 0eca559..3d68413 100644 --- a/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc +++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg.inc @@ -111,7 +111,7 @@ EXTRA_OECONF += --with-fop=no \ --disable-record \ --disable-dmx \ --disable-xnest \ - --disable-xvfb \ + --enable-xvfb \ --enable-composite \ --without-dtrace \ --with-int10=x86emu \ -- 1.7.10.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [oe-core][PATCH] libaio: add aarch64 support
Picking up a patch from gentoo and adding aarch64 defines is enough to fix libaio and pass the harness testsuite Signed-off-by: Riku Voipio riku.voi...@linaro.org --- .../libaio/libaio/libaio-aarch64.patch | 28 + .../libaio/libaio/libaio-generic.patch | 65 meta/recipes-extended/libaio/libaio_0.3.109.bb |5 +- 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/libaio/libaio/libaio-aarch64.patch create mode 100644 meta/recipes-extended/libaio/libaio/libaio-generic.patch diff --git a/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch b/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch new file mode 100644 index 000..e3d1058 --- /dev/null +++ b/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch @@ -0,0 +1,28 @@ +Upstream-Status: Submitted + +Signed-off-by: Riku Voipio riku.voi...@linaro.org + +--- + harness/cases/16.t |2 ++ + src/libaio.h | 10 ++ + 2 files changed, 12 insertions(+) + +--- a/src/libaio.h b/src/libaio.h +@@ -107,6 +107,16 @@ + # else + #error neither mipseb nor mipsel? + # endif ++#elif defined(__aarch64__) ++# if defined (__AARCH64EB__) /* big endian, 64 bits */ ++#define PADDED(x, y)unsigned y; x ++#define PADDEDptr(x,y) x ++#define PADDEDul(x, y) unsigned long x ++# elif defined(__AARCH64EL__) /* little endian, 64 bits */ ++#define PADDED(x, y)x, y ++#define PADDEDptr(x, y) x ++#define PADDEDul(x, y) unsigned long x ++# endif + #else + #errorendian? + #endif diff --git a/meta/recipes-extended/libaio/libaio/libaio-generic.patch b/meta/recipes-extended/libaio/libaio/libaio-generic.patch new file mode 100644 index 000..3fcf541 --- /dev/null +++ b/meta/recipes-extended/libaio/libaio/libaio-generic.patch @@ -0,0 +1,65 @@ +From 5e96c73d5dfbdea8d0be82b7f3fc8d6735e5dfa7 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger vap...@gentoo.org +Date: Sun, 17 Jan 2010 17:07:48 -0500 +Subject: [PATCH] add a generic syscall() fallback + +Upstream-Status: Pending + +Signed-off-by: Mike Frysinger vap...@gentoo.org +Signed-off-by: Riku Voipio riku.voi...@linaro.org +--- + src/syscall-generic.h | 29 + + src/syscall.h |3 ++- + 2 files changed, 31 insertions(+), 1 deletions(-) + create mode 100644 src/syscall-generic.h + +diff --git a/src/syscall-generic.h b/src/syscall-generic.h +new file mode 100644 +index 000..24d7c7c +--- /dev/null b/src/syscall-generic.h +@@ -0,0 +1,29 @@ ++#include errno.h ++#include unistd.h ++#include sys/syscall.h ++ ++#define _body_io_syscall(sname, args...) \ ++{ \ ++ int ret = syscall(__NR_##sname, ## args); \ ++ return ret 0 ? -errno : ret; \ ++} ++ ++#define io_syscall1(type,fname,sname,type1,arg1) \ ++type fname(type1 arg1) \ ++_body_io_syscall(sname, (long)arg1) ++ ++#define io_syscall2(type,fname,sname,type1,arg1,type2,arg2) \ ++type fname(type1 arg1,type2 arg2) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2) ++ ++#define io_syscall3(type,fname,sname,type1,arg1,type2,arg2,type3,arg3) \ ++type fname(type1 arg1,type2 arg2,type3 arg3) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3) ++ ++#define io_syscall4(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \ ++type fname (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4) ++ ++#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4, type5,arg5) \ ++type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, (long)arg5) +diff --git a/src/syscall.h b/src/syscall.h +index 78becfe..d954af0 100644 +--- a/src/syscall.h b/src/syscall.h +@@ -25,5 +25,6 @@ + #elif defined(__arm__) + #include syscall-arm.h + #else +-#error add syscall-arch.h ++#warning using generic syscall method ++#include syscall-generic.h + #endif +-- +1.7.3.1 + diff --git a/meta/recipes-extended/libaio/libaio_0.3.109.bb b/meta/recipes-extended/libaio/libaio_0.3.109.bb index 0712d04..afe9adf 100644 --- a/meta/recipes-extended/libaio/libaio_0.3.109.bb +++ b/meta/recipes-extended/libaio/libaio_0.3.109.bb @@ -11,7 +11,10 @@ SRC_URI = ${DEBIAN_MIRROR}/main/liba/libaio/libaio_${PV}.orig.tar.gz \ file://00_arches.patch \ file://toolchain.patch \ file://destdir.patch \ - file://libaio_fix_for_x32.patch + file://libaio_fix_for_x32.patch \ + file://libaio-generic.patch \ + file://libaio-aarch64.patch \ + SRC_URI[md5sum] = 435a5b16ca6198eaf01155263d855756 SRC_URI[sha256sum] = bf4a457253cbaab215aea75cb6e18dc8d95bbd507e9920661ff9bdd288c8778d -- 1.7.10.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [oe-core][PATCH 2/3] attr: convert to generic syscall numbers
xattr system calls are old enough that we can switch to just pulling the system call numbers from kernel headers. Upstream-Status: Submitted acl-de...@nongnu.org Signed-off-by: Riku Voipio riku.voi...@linaro.org --- meta/recipes-support/attr/attr.inc |4 +- .../attr/files/generic-syscalls.patch | 187 2 files changed, 190 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-support/attr/files/generic-syscalls.patch diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc index 6deb004..eaed7af 100644 --- a/meta/recipes-support/attr/attr.inc +++ b/meta/recipes-support/attr/attr.inc @@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \ file://attr/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \ file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb -SRC_URI = http://download.savannah.gnu.org/releases/attr/${BP}.src.tar.gz; +SRC_URI = http://download.savannah.gnu.org/releases/attr/${BP}.src.tar.gz \ + file://generic-syscalls.patch \ + require ea-acl.inc diff --git a/meta/recipes-support/attr/files/generic-syscalls.patch b/meta/recipes-support/attr/files/generic-syscalls.patch new file mode 100644 index 000..3a35e02 --- /dev/null +++ b/meta/recipes-support/attr/files/generic-syscalls.patch @@ -0,0 +1,187 @@ +Remove arch specific syscall numbers + +xattr system calls are old enough that we can switch +to just pulling the system call numbers from kernel +headers. + +Signed-off-by: Riku Voipio riku.voi...@linaro.org + +Upstream-Status: Submitted acl-de...@nongnu.org + +--- a/libattr/syscalls.c b/libattr/syscalls.c +@@ -23,172 +23,10 @@ + + #include errno.h + #include unistd.h ++#include sys/syscall.h + +-#if defined (__i386__) ++#if defined (__NR_setxattr) + # define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr226 +-# define __NR_lsetxattr 227 +-# define __NR_fsetxattr 228 +-# define __NR_getxattr229 +-# define __NR_lgetxattr 230 +-# define __NR_fgetxattr 231 +-# define __NR_listxattr 232 +-# define __NR_llistxattr 233 +-# define __NR_flistxattr 234 +-# define __NR_removexattr 235 +-# define __NR_lremovexattr236 +-# define __NR_fremovexattr237 +-#elif defined (__sparc__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr169 +-# define __NR_lsetxattr 170 +-# define __NR_fsetxattr 171 +-# define __NR_getxattr172 +-# define __NR_lgetxattr 173 +-# define __NR_fgetxattr 177 +-# define __NR_listxattr 178 +-# define __NR_llistxattr 179 +-# define __NR_flistxattr 180 +-# define __NR_removexattr 181 +-# define __NR_lremovexattr182 +-# define __NR_fremovexattr186 +-#elif defined (__ia64__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr1217 +-# define __NR_lsetxattr 1218 +-# define __NR_fsetxattr 1219 +-# define __NR_getxattr1220 +-# define __NR_lgetxattr 1221 +-# define __NR_fgetxattr 1222 +-# define __NR_listxattr 1223 +-# define __NR_llistxattr 1224 +-# define __NR_flistxattr 1225 +-# define __NR_removexattr 1226 +-# define __NR_lremovexattr1227 +-# define __NR_fremovexattr1228 +-#elif defined (__powerpc__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr209 +-# define __NR_lsetxattr 210 +-# define __NR_fsetxattr 211 +-# define __NR_getxattr212 +-# define __NR_lgetxattr 213 +-# define __NR_fgetxattr 214 +-# define __NR_listxattr 215 +-# define __NR_llistxattr 216 +-# define __NR_flistxattr 217 +-# define __NR_removexattr 218 +-# define __NR_lremovexattr219 +-# define __NR_fremovexattr220 +-#elif defined (__x86_64__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr188 +-# define __NR_lsetxattr 189 +-# define __NR_fsetxattr 190 +-# define __NR_getxattr191 +-# define __NR_lgetxattr 192 +-# define __NR_fgetxattr 193 +-# define __NR_listxattr 194 +-# define __NR_llistxattr 195 +-# define __NR_flistxattr 196 +-# define __NR_removexattr 197 +-# define __NR_lremovexattr198 +-# define __NR_fremovexattr199 +-#elif defined (__s390__) +-# define HAVE_XATTR_SYSCALLS 1 +-# define __NR_setxattr224 +-# define __NR_lsetxattr 225 +-# define __NR_fsetxattr 226 +-# define __NR_getxattr227 +-# define __NR_lgetxattr 228 +-# define __NR_fgetxattr 229 +-# define
[OE-core] [oe-core][PATCH 3/3] libaio: add aarch64 support
Picking up a patch from gentoo and adding aarch64 defines is enough to fix libaio and pass the harness testsuite Signed-off-by: Riku Voipio riku.voi...@linaro.org --- .../libaio/libaio/libaio-aarch64.patch | 26 .../libaio/libaio/libaio-generic.patch | 65 meta/recipes-extended/libaio/libaio_0.3.109.bb |5 +- 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-extended/libaio/libaio/libaio-aarch64.patch create mode 100644 meta/recipes-extended/libaio/libaio/libaio-generic.patch diff --git a/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch b/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch new file mode 100644 index 000..98b778b --- /dev/null +++ b/meta/recipes-extended/libaio/libaio/libaio-aarch64.patch @@ -0,0 +1,26 @@ +Upstream-Status: Submitted + +--- + harness/cases/16.t |2 ++ + src/libaio.h | 10 ++ + 2 files changed, 12 insertions(+) + +--- a/src/libaio.h b/src/libaio.h +@@ -107,6 +107,16 @@ + # else + #error neither mipseb nor mipsel? + # endif ++#elif defined(__aarch64__) ++# if defined (__AARCH64EB__) /* big endian, 64 bits */ ++#define PADDED(x, y)unsigned y; x ++#define PADDEDptr(x,y) x ++#define PADDEDul(x, y) unsigned long x ++# elif defined(__AARCH64EL__) /* little endian, 64 bits */ ++#define PADDED(x, y)x, y ++#define PADDEDptr(x, y) x ++#define PADDEDul(x, y) unsigned long x ++# endif + #else + #errorendian? + #endif diff --git a/meta/recipes-extended/libaio/libaio/libaio-generic.patch b/meta/recipes-extended/libaio/libaio/libaio-generic.patch new file mode 100644 index 000..3fcf541 --- /dev/null +++ b/meta/recipes-extended/libaio/libaio/libaio-generic.patch @@ -0,0 +1,65 @@ +From 5e96c73d5dfbdea8d0be82b7f3fc8d6735e5dfa7 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger vap...@gentoo.org +Date: Sun, 17 Jan 2010 17:07:48 -0500 +Subject: [PATCH] add a generic syscall() fallback + +Upstream-Status: Pending + +Signed-off-by: Mike Frysinger vap...@gentoo.org +Signed-off-by: Riku Voipio riku.voi...@linaro.org +--- + src/syscall-generic.h | 29 + + src/syscall.h |3 ++- + 2 files changed, 31 insertions(+), 1 deletions(-) + create mode 100644 src/syscall-generic.h + +diff --git a/src/syscall-generic.h b/src/syscall-generic.h +new file mode 100644 +index 000..24d7c7c +--- /dev/null b/src/syscall-generic.h +@@ -0,0 +1,29 @@ ++#include errno.h ++#include unistd.h ++#include sys/syscall.h ++ ++#define _body_io_syscall(sname, args...) \ ++{ \ ++ int ret = syscall(__NR_##sname, ## args); \ ++ return ret 0 ? -errno : ret; \ ++} ++ ++#define io_syscall1(type,fname,sname,type1,arg1) \ ++type fname(type1 arg1) \ ++_body_io_syscall(sname, (long)arg1) ++ ++#define io_syscall2(type,fname,sname,type1,arg1,type2,arg2) \ ++type fname(type1 arg1,type2 arg2) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2) ++ ++#define io_syscall3(type,fname,sname,type1,arg1,type2,arg2,type3,arg3) \ ++type fname(type1 arg1,type2 arg2,type3 arg3) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3) ++ ++#define io_syscall4(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \ ++type fname (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4) ++ ++#define io_syscall5(type,fname,sname,type1,arg1,type2,arg2,type3,arg3,type4,arg4, type5,arg5) \ ++type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \ ++_body_io_syscall(sname, (long)arg1, (long)arg2, (long)arg3, (long)arg4, (long)arg5) +diff --git a/src/syscall.h b/src/syscall.h +index 78becfe..d954af0 100644 +--- a/src/syscall.h b/src/syscall.h +@@ -25,5 +25,6 @@ + #elif defined(__arm__) + #include syscall-arm.h + #else +-#error add syscall-arch.h ++#warning using generic syscall method ++#include syscall-generic.h + #endif +-- +1.7.3.1 + diff --git a/meta/recipes-extended/libaio/libaio_0.3.109.bb b/meta/recipes-extended/libaio/libaio_0.3.109.bb index 0712d04..afe9adf 100644 --- a/meta/recipes-extended/libaio/libaio_0.3.109.bb +++ b/meta/recipes-extended/libaio/libaio_0.3.109.bb @@ -11,7 +11,10 @@ SRC_URI = ${DEBIAN_MIRROR}/main/liba/libaio/libaio_${PV}.orig.tar.gz \ file://00_arches.patch \ file://toolchain.patch \ file://destdir.patch \ - file://libaio_fix_for_x32.patch + file://libaio_fix_for_x32.patch \ + file://libaio-generic.patch \ + file://libaio-aarch64.patch \ + SRC_URI[md5sum] = 435a5b16ca6198eaf01155263d855756 SRC_URI[sha256sum] = bf4a457253cbaab215aea75cb6e18dc8d95bbd507e9920661ff9bdd288c8778d -- 1.7.10.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [oe-core][PATCH 1/3] nspr: add aarch64 support
Add needed defines for Aarch64 support. Upstream-Status: Submitted https://bugzilla.mozilla.org/show_bug.cgi?id=827271 Signed-off-by: Riku Voipio riku.voi...@linaro.org --- .../nspr/files/fix-build-on-aarch64.patch | 101 meta/recipes-support/nspr/nspr_4.9.4.bb|1 + 2 files changed, 102 insertions(+) create mode 100644 meta/recipes-support/nspr/files/fix-build-on-aarch64.patch diff --git a/meta/recipes-support/nspr/files/fix-build-on-aarch64.patch b/meta/recipes-support/nspr/files/fix-build-on-aarch64.patch new file mode 100644 index 000..ccad0a1 --- /dev/null +++ b/meta/recipes-support/nspr/files/fix-build-on-aarch64.patch @@ -0,0 +1,101 @@ +Add Aarch64 support + +Signed-off-by: Riku Voipio riku.voi...@linaro.org + +Upstream-Status: Submitted https://bugzilla.mozilla.org/show_bug.cgi?id=827271 +--- + configure.in | 12 ++-- + 1 files changed, 6 insertions(+), 6 deletions(-) +--- a/pr/include/md/_linux.cfg b/pr/include/md/_linux.cfg +@@ -861,6 +861,59 @@ + #define PR_BYTES_PER_WORD_LOG2 2 + #define PR_BYTES_PER_DWORD_LOG2 3 + ++#elif defined(__aarch64__) ++ ++#ifdef __AARCH64EB__ ++#undef IS_LITTLE_ENDIAN ++#define IS_BIG_ENDIAN 1 ++#elif defined(__AARCH64EL__) ++#define IS_LITTLE_ENDIAN 1 ++#undef IS_BIG_ENDIAN ++#else ++#error Unknown Aarch64 endianness. ++#endif ++#define IS_64 ++ ++#define PR_BYTES_PER_BYTE 1 ++#define PR_BYTES_PER_SHORT 2 ++#define PR_BYTES_PER_INT4 ++#define PR_BYTES_PER_INT64 8 ++#define PR_BYTES_PER_LONG 8 ++#define PR_BYTES_PER_FLOAT 4 ++#define PR_BYTES_PER_DOUBLE 8 ++#define PR_BYTES_PER_WORD 8 ++#define PR_BYTES_PER_DWORD 8 ++ ++#define PR_BITS_PER_BYTE8 ++#define PR_BITS_PER_SHORT 16 ++#define PR_BITS_PER_INT 32 ++#define PR_BITS_PER_INT64 64 ++#define PR_BITS_PER_LONG64 ++#define PR_BITS_PER_FLOAT 32 ++#define PR_BITS_PER_DOUBLE 64 ++#define PR_BITS_PER_WORD64 ++ ++#define PR_BITS_PER_BYTE_LOG2 3 ++#define PR_BITS_PER_SHORT_LOG2 4 ++#define PR_BITS_PER_INT_LOG25 ++#define PR_BITS_PER_INT64_LOG2 6 ++#define PR_BITS_PER_LONG_LOG2 6 ++#define PR_BITS_PER_FLOAT_LOG2 5 ++#define PR_BITS_PER_DOUBLE_LOG2 6 ++#define PR_BITS_PER_WORD_LOG2 6 ++ ++#define PR_ALIGN_OF_SHORT 2 ++#define PR_ALIGN_OF_INT 4 ++#define PR_ALIGN_OF_LONG8 ++#define PR_ALIGN_OF_INT64 8 ++#define PR_ALIGN_OF_FLOAT 4 ++#define PR_ALIGN_OF_DOUBLE 8 ++#define PR_ALIGN_OF_POINTER 8 ++#define PR_ALIGN_OF_WORD8 ++ ++#define PR_BYTES_PER_WORD_LOG2 3 ++#define PR_BYTES_PER_DWORD_LOG2 3 ++ + #else + + #error Unknown CPU architecture +--- a/pr/include/md/_linux.h b/pr/include/md/_linux.h +@@ -53,6 +53,8 @@ + #define _PR_SI_ARCHITECTURE avr32 + #elif defined(__m32r__) + #define _PR_SI_ARCHITECTURE m32r ++#elif defined(__aarch64__) ++#define _PR_SI_ARCHITECTURE aarch64 + #else + #error Unknown CPU architecture + #endif +@@ -186,7 +188,7 @@ + }) + #endif + +-#if defined(__arm__) ++#if defined(__arm__) || defined(__aarch64__) + #if defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4) + /* Use GCC built-in functions */ + #define _PR_HAVE_ATOMIC_OPS +@@ -242,6 +244,10 @@ + #endif + #endif /* __arm__ */ + ++#if defined(__aarch64__) ++#define _MD_MINIMUM_STACK_SIZE 0x2 ++#endif ++ + #define USE_SETJMP + #if (defined(__GLIBC__) __GLIBC__ = 2) || defined(ANDROID) + #define _PR_POLL_AVAILABLE diff --git a/meta/recipes-support/nspr/nspr_4.9.4.bb b/meta/recipes-support/nspr/nspr_4.9.4.bb index 36f93e0..accfda7 100644 --- a/meta/recipes-support/nspr/nspr_4.9.4.bb +++ b/meta/recipes-support/nspr/nspr_4.9.4.bb @@ -11,6 +11,7 @@ SRC_URI = ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v${PV}/src/nspr-$ file://remove-rpath-from-tests.patch \ file://fix-build-on-x86_64.patch \ file://trickly-fix-build-on-x86_64.patch \ + file://fix-build-on-aarch64.patch \ SRC_URI += file://nspr.pc.in -- 1.7.10.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core