Skip to content

Instantly share code, notes, and snippets.

From a51d20b63a2e46547852dad0774cf7ff24041d48 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 9 Mar 2020 16:30:19 -0700
Subject: [PATCH] memcheck/tests: Fix timerfd syscall test
modern libc provides these functions, moreover this also ensures that we
are 64bit time_t safe. Fallback to existing definitions if libc does not
have the implementation or syscall is not defined
Signed-off-by: Khem Raj <raj.khem@gmail.com>
@kraj
kraj / Buildtools tarball for RDK
Last active January 15, 2020 19:39
Buildtools tarball for Yocto
release=3.0.1
target=`pwd`/buildtools/${release}
if[ -d ${target} ]; then
curl -O https://downloads.yoctoproject.org/releases/yocto/yocto-${release}/buildtools/x86_64-buildtools-nativesdk-standalone-${release}.sh
chmod +x x86_64-buildtools-nativesdk-standalone-${release}.sh
./x86_64-buildtools-nativesdk-standalone-${release}.sh -y -d ${target}
rm -rf x86_64-buildtools-nativesdk-standalone-${release}.sh
fi
. ${target}/environment-setup-x86_64-pokysdk-linux
--- main.c.orig
+++ main.c
@@ -2654,7 +2654,7 @@ get_pty(int *pty, char *from GCC_UNUSED)
close(opened_tty);
opened_tty = -1;
}
-#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME) && defined(HAVE_GRANTPT_PTY_ISATTY)
+#elif defined(HAVE_POSIX_OPENPT) && defined(HAVE_PTSNAME)
if ((*pty = posix_openpt(O_RDWR)) >= 0) {
char *name = ptsname(*pty);
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Removing manifest: /home/kraj/work/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-qemux86-toolchain-ext-2.6+snapshot.sh
DEBUG: Removing manifest: /home/kraj/work/poky/build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-minimal-i586-qemux86-toolchain-ext-2.6+snapshot.testdata.json
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/kraj/work/poky/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb:do_populate_sysroot', 'virtual:native:/home/kraj/work/poky/meta/recipes-support/sqlite/sqlite3_3.25.3.bb:do_populate_sysroot', 'virtual:native:/home/kraj/work/poky/meta/recipes-core/zlib/zlib_1.2.11.bb:do_populate_sysroot', '/home/kraj/work/poky/meta/recipes-extended/diffutils/diffutils_3.6.bb:do_populate_sysroot', 'virtual:native:/home/kraj/work/poky/meta/recipes-devtools/dwarfsrcfiles/dwarfsrcfiles.bb:do_populate_sysroot', 'virtual:native:/home/kraj/w
DEBUG: Executing python function sstate_task_prefunc
DEBUG: Python function sstate_task_prefunc finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/a/yoe/sources/openembedded-core/meta/recipes-connectivity/openssl/openssl_1.1.1a.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-support/nss/nss_3.40.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-extended/shadow/shadow-securetty_4.6.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-support/sqlite/sqlite3_3.25.3.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxau_1.0.8.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/opkg/opkg_0.3.6.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-support
This file has been truncated, but you can view the full file.
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.44.3.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/syslinux/syslinux_6.03.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/glibc/cross-localedef-native_2.29.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/mklibs/mklibs-native_0.1.43.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/mnt/a/yoe/sources/openembedded-core/meta/recipes-extended/shadow/shadow_4.6.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/glibc/glibc_2.28.bb:do_populate_sysroot', '/mnt/a/yoe/sources/meta-openembedded/meta-oe/recipes-devtools/yajl/yajl_2.1.0.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/meson/meson_0.47.2.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-support/curl/curl_7.62.0.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/ninja/ninja_1.8.2.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb:do_populate_sysroot', 'virtual:native:/mnt/a/yoe/sources/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/mnt/a/yoe/sources/openembedded-core/meta/recipes-core/sys
DEBUG: Executing shell function do_compile
[1/456] arm-yoe-linux-gnueabi-gcc -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/mpd/0.21.3-r0/recipe-sysroot -Isrc/util/src@util@@util@sta -Isrc/util -I../git/src/util -Isrc -I../git/src -I. -I../git/ -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=c99 -Wall -Wextra -fvisibility=hidden -ffast-math -ftree-vectorize -Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes -Wcast-qual -Wwrite-strings -pedantic -ffunction-sections -fdata-sections -D_GNU_SOURCE -fPIC -march=armv7ve -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/mpd/0.21.3-r0/recipe-sysroot -O2 -pipe -g -f
DEBUG: Executing shell function do_configure
NOTE: Executing meson -Dsystemd=enabled -Dsystemd_system_unit_dir=/lib/systemd/system -Dsystemd_user_unit_dir=/lib/systemd/user -Dfaad=disabled -Dalsa=disabled -Dao=disabled -Daudiofile=disabled -Dbzip2=disabled -Dcdio=disabled-paranoia -Ddaemon=false -Dffmpeg=disabled -Dfifo=false -Dflac=disabled -Dfluidsynth=disabled -Dhttpd=false -Did3tag=disabled -Diso9660=disabled -Djack=disabled -Dlame=disabled -Dlibsamplerate=disabled -Dlibwrap=disabled -Dmad=disabled -Dmms=disabled -Dmodplug=disabled -Dmpg123=disabled -Dopenal=disabled -Dopus=disabled -Doss=disabled -Dpcre=disabled -Dqobuz=disabled -Drecorder=false -Dsmbclient=disabled -Dsndfile=disabled -Dtidal=disabled -Dudisks=disabled -Dupnp=disabled -Dvorbis=disabled -Dwavpack=disabled -Dzlib=disabled...
The Meson build system
Version: 0.47.2
Source dir: /mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/mpd/0.21.3-r0/git
Build dir: /mnt/a/yoe/build/tmp/work/cortexa7t2hf-neon-vfpv4-yoe-linux-gnueabi/mp