chore: add .editorconfig and .gitattributes

Add editor configuration and line ending normalization
for consistent development across platforms.

Signed-off-by: Srikanth Patchava <srpatcha@users.noreply.github.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Srikanth Patchava
2026-04-24 19:41:22 -07:00
committed by Khem Raj
parent 95720367b2
commit 90afa64a7a
2 changed files with 47 additions and 0 deletions
+23
View File
@@ -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
+24
View File
@@ -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