From 8ad5eecdcb37275ca9f46ada16a7d9257efcfbc7 Mon Sep 17 00:00:00 2001 From: Oleksandr Suvorov Date: Sat, 23 May 2020 20:36:25 +0300 Subject: linux-toradex: prepare shared_dir better backports-5.4 requires Makefile in kernel shared_dir to be built successfully. Expand do_shared_workdir() accordingly. Related-to: ELB-2724 Signed-off-by: Oleksandr Suvorov --- recipes-kernel/linux/linux-toradex_%.bbappend | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes-kernel/linux/linux-toradex_%.bbappend diff --git a/recipes-kernel/linux/linux-toradex_%.bbappend b/recipes-kernel/linux/linux-toradex_%.bbappend new file mode 100644 index 0000000..04a2451 --- /dev/null +++ b/recipes-kernel/linux/linux-toradex_%.bbappend @@ -0,0 +1,15 @@ +do_shared_workdir_append () { + if [ -f include/config/auto.conf ]; then + mkdir -p $kerneldir/include/config/ + cp -f include/config/auto.conf $kerneldir/include/config/ + fi + + ln -sf ${STAGING_KERNEL_DIR} ${kerneldir}/source + + if [ ! -f $kerneldir/Makefile ]; then + VERSION=$(grep "^VERSION =" Makefile | sed s/.*=\ *//) + PATCHLEVEL=$(grep "^PATCHLEVEL =" Makefile | sed s/.*=\ *//) + bash ${S}/scripts/mkmakefile $(pwd) $kerneldir $VERSION $PATCHLEVEL + fi +} + -- cgit v1.2.3