From 63572f4c9405ea8d396953b339250729b404bc61 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 29 Jan 2024 11:57:30 -0800 Subject: [PATCH 1/3] yoe-simple-image.bb: Add ssh-pregen-hostkeys to all qemu images This helps in running ptest images as it improves first time boot speed Signed-off-by: Khem Raj --- sources/meta-yoe/recipes-core/images/yoe-simple-image.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/meta-yoe/recipes-core/images/yoe-simple-image.bb b/sources/meta-yoe/recipes-core/images/yoe-simple-image.bb index 9dae9f650..209a28f11 100644 --- a/sources/meta-yoe/recipes-core/images/yoe-simple-image.bb +++ b/sources/meta-yoe/recipes-core/images/yoe-simple-image.bb @@ -24,6 +24,8 @@ IMAGE_INSTALL = "\ " IMAGE_INSTALL:append:libc-musl = " gcompat" +# Add pregenerated ssh keys for improving first time bootup speed +IMAGE_INSTALL:append:qemuall = " ssh-pregen-hostkeys" export IMAGE_BASENAME = "yoe-simple-image" From 9da16d090dd0ba6555d4c745de4cd31004c82f10 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 29 Jan 2024 15:08:08 -0800 Subject: [PATCH 2/3] envsetup.sh: Define PATCH_GIT_USER_NAME and PATCH_GIT_USER_EMAIL from git config This is useful for devtool commits etc to use real user/email if set in .gitconfig Signed-off-by: Khem Raj --- envsetup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index 8c0651428..2818a193f 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -158,6 +158,8 @@ PROXYHOST="" YOE_ENV_VERSION=13 YOE_ENV_FILE=localconfig.sh +[ -n "`git config user.email`" ] && GIT_USER_EMAIL="$(git config user.email)" || GIT_USER_EMAIL="yoe@yoedistro" +[ -n "`git config user.name`" ] && GIT_USER_NAME="$(git config user.name)" || GIT_USER_NAME="Yoe User" # Workaround for differences between yocto bitbake and vanilla bitbake export BBFETCH2=True @@ -299,6 +301,9 @@ TMPDIR = "${OE_BUILD_TMPDIR}" #HTTP_PROXY = "http://${PROXYHOST}:${PROXYPORT}/" MACHINE ?= "$MACHINE" + +PATCH_GIT_USER_NAME = "${GIT_USER_NAME}" +PATCH_GIT_USER_EMAIL = "${GIT_USER_EMAIL}" _EOF echo "${AUTO_CONF} has been updated" From c2c45354ad1750cc61039fa0430c370288f6d885 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 29 Jan 2024 16:22:00 -0800 Subject: [PATCH 3/3] yoe: Disable lld for mips 32bit arches Signed-off-by: Khem Raj --- sources/meta-yoe/conf/distro/yoe.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/meta-yoe/conf/distro/yoe.inc b/sources/meta-yoe/conf/distro/yoe.inc index 378aed666..a34f83908 100644 --- a/sources/meta-yoe/conf/distro/yoe.inc +++ b/sources/meta-yoe/conf/distro/yoe.inc @@ -121,6 +121,8 @@ DISTRO_FEATURES:remove:riscv32 = "ld-is-lld" # See https://discourse.llvm.org/t/lld-cannot-make-pie-binaries-on-x32/67131 DISTRO_FEATURES:remove:linux-gnux32 = "ld-is-lld" DISTRO_FEATURES:remove:linux-muslx32 = "ld-is-lld" +# mips-yoe-linux-ld.lld: error: the .gnu.hash section is not compatible with the MIPS target +DISTRO_FEATURES:remove:mipsarcho32 = "ld-is-lld" #PREFERRED_PROVIDER_pkgconfig = "pkgconf" #PREFERRED_PROVIDER_pkgconfig-native = "pkgconf-native"