From ec0d7b7ac647a600c0ed5b343547e1967b168d7b Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Wed, 26 Jul 2023 14:09:59 +0800
Subject: [PATCH] Add timesyncd in systemd support
---
recipes-kernel/linux/linux-imx_5.15.bbappend | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/recipes-kernel/linux/linux-imx_5.15.bbappend b/recipes-kernel/linux/linux-imx_5.15.bbappend
index 25961c4..b95f68c 100644
--- a/recipes-kernel/linux/linux-imx_5.15.bbappend
+++ b/recipes-kernel/linux/linux-imx_5.15.bbappend
@@ -4,9 +4,27 @@
SRC_URI += " file://linux-imx-lf-5.15.71-2.2.0.patch "
PATCHTOOL = "patch"
+KERNEL_DANGLING_FEATURES_WARN_ONLY="1"
+KERNEL_DTC_FLAGS = "-@"
+KERNEL_DTOVERLAY ?= ""
+
do_copy_defconfig:append() {
cp ${S}/arch/arm/configs/${MACHINE}_defconfig ${WORKDIR}/defconfig
cp ${S}/arch/arm/configs/${MACHINE}_defconfig ${B}/.config
}
-KERNEL_DANGLING_FEATURES_WARN_ONLY="1"
+do_compile:append() {
+ if [ -n "${KERNEL_DTC_FLAGS}" ]; then
+ export DTC_FLAGS="${KERNEL_DTC_FLAGS}"
+ fi
+
+ for dtbf in ${KERNEL_DTOVERLAY}; do
+ dtb=`normalize_dtb "$dtbf"`
+ oe_runmake $dtb CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS}
+ done
+}
+
+do_deploy:append(){
+ install -d ${DEPLOYDIR}/overlays
+ cp ${B}/arch/arm/boot/dts/${MACHINE}/*.dtbo ${DEPLOYDIR}/overlays
+}
--
Gitblit v1.9.1