kernel: add new line in driver Makefile (#317)

some device tree has no new line in Makefile
This commit is contained in:
Shatyuka
2023-03-22 15:39:12 +08:00
committed by GitHub
parent d0e3b2672d
commit 30abd9e310

View File

@@ -28,6 +28,6 @@ test -e "$DRIVER_DIR/kernelsu" || ln -sf "$GKI_ROOT/KernelSU/kernel" "$DRIVER_DI
echo '[+] Add kernel su driver to Makefile'
DRIVER_MAKEFILE=$DRIVER_DIR/Makefile
grep -q "kernelsu" "$DRIVER_MAKEFILE" || echo "obj-y += kernelsu/" >>"$DRIVER_MAKEFILE"
grep -q "kernelsu" "$DRIVER_MAKEFILE" || echo -e "\nobj-y += kernelsu/" >> "$DRIVER_MAKEFILE"
echo '[+] Done.'