From 8479e69cd48b2c5a8fd17c11b283ca4b8197a962 Mon Sep 17 00:00:00 2001 From: Srikanth Patchava Date: Fri, 24 Apr 2026 19:41:22 -0700 Subject: [PATCH] chore: add .editorconfig and .gitattributes Add editor configuration and line ending normalization for consistent development across platforms. Signed-off-by: Srikanth Patchava --- .editorconfig | 23 +++++++++++++++++++++++ .gitattributes | 24 ++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000000..b53503c7e8d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,23 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 +indent_style = space +indent_size = 4 + +[Makefile] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false + +[*.{patch,diff}] +end_of_line = unset +insert_final_newline = unset +trim_trailing_whitespace = unset +charset = unset +indent_style = unset +indent_size = unset diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..06d9bd3c546 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# BitBake recipes and configuration (the bulk of this repository) +*.bb text +*.bbappend text +*.bbclass text +*.inc text +*.conf text +*.cfg text + +# Other text files actually present in this repository +*.md text diff=markdown +*.txt text +*.json text +*.xml text + +# Binary files actually present in this repository +*.png binary +*.zip binary + +# Patch and diff files: keep verbatim (do NOT normalize line endings) +*.patch -text +*.diff -text