From 28207799474fbf60f265b458a918ee9e7206ec9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A3=E5=B9=B4=E9=9B=AA=E8=90=BD?= <249501281@qq.com> Date: Fri, 23 Feb 2024 16:55:22 +0800 Subject: [PATCH] kernel: Add back Makefile new line with posix compatible (#1372) --- kernel/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/setup.sh b/kernel/setup.sh index 556a689dac9f..68107e0191a4 100755 --- a/kernel/setup.sh +++ b/kernel/setup.sh @@ -44,7 +44,7 @@ echo '[+] Add kernel su driver to Makefile' DRIVER_MAKEFILE=$DRIVER_DIR/Makefile DRIVER_KCONFIG=$DRIVER_DIR/Kconfig -grep -q "kernelsu" "$DRIVER_MAKEFILE" || printf "obj-\$(CONFIG_KSU) += kernelsu/\n" >> "$DRIVER_MAKEFILE" +grep -q "kernelsu" "$DRIVER_MAKEFILE" || printf "\nobj-\$(CONFIG_KSU) += kernelsu/\n" >> "$DRIVER_MAKEFILE" grep -q "kernelsu" "$DRIVER_KCONFIG" || sed -i "/endmenu/i\\source \"drivers/kernelsu/Kconfig\"" "$DRIVER_KCONFIG" -echo '[+] Done.' \ No newline at end of file +echo '[+] Done.'