From fe1d348360b9ada205f51d9fa68ae3c5911f1cc8 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Thu, 13 Feb 2025 19:29:05 +0700 Subject: [PATCH] added editorconfig and formated code --- .editorconfig | 40 ++++++++++++++++++++++++++ Config.in | 9 ------ arch/Config.in | 8 ++++-- arch/aarch64/Config.in | 2 +- arch/arm/Config.in | 2 +- arch/x86_64/Config.in | 2 +- boot/Config.in | 6 ++-- package/Config.in | 16 ++++++----- package/bash/Config.in | 8 +++--- package/busybox/Config.in | 6 ++-- package/curl/Config.in | 8 +++--- package/dropbear/Config.in | 12 ++++---- package/git/Config.in | 12 ++++---- package/glibc/Config.in | 2 +- package/grub2/Config.in | 6 ++-- package/openssh/Config.in | 10 +++---- package/sftp-server-dropbear/Config.in | 4 +-- package/uboot/Config.in | 8 +++--- package/uclibc/Config.in | 2 +- package/zlib/Config.in | 4 +-- toolchain/Config.in | 28 +++++++++--------- 21 files changed, 117 insertions(+), 78 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f7c3c7d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,40 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_style = space +indent_size = 4 +tab_width = 8 +trim_trailing_whitespace = true +insert_final_newline = true + +[DEVELOPERS] +indent_style = tab +indent_size = tab + +[Config*.in*] +indent_style = tab +indent_size = tab + +[linux/Config.ext.in] +indent_style = tab +indent_size = tab + +[Makefile*] +indent_style = tab +indent_size = tab + +[*.mk] +indent_style = tab +indent_size = tab + +[*.patch] +trim_trailing_whitespace = false + +[S{0..9}{0..9}*] +indent_style = tab +indent_size = tab + +[*.adoc] +trim_trailing_whitespace = false diff --git a/Config.in b/Config.in index 9b241bb..e4d0d0d 100644 --- a/Config.in +++ b/Config.in @@ -1,16 +1,7 @@ -menu "Architecture" source "arch/Config.in" -endmenu -menu "Toolchain" source "toolchain/Config.in" -endmenu -menu "Target Packages" source "package/Config.in" -endmenu -menu "Bootloader" source "boot/Config.in" -endmenu - \ No newline at end of file diff --git a/arch/Config.in b/arch/Config.in index 2fb77e2..4eff8e7 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -1,3 +1,5 @@ -source "arch/arm/Config.in" -source "arch/aarch64/Config.in" -source "arch/x86_64/Config.in" \ No newline at end of file +menu "Architecture" + source "arch/arm/Config.in" + source "arch/aarch64/Config.in" + source "arch/x86_64/Config.in" +endmenu diff --git a/arch/aarch64/Config.in b/arch/aarch64/Config.in index ecf2b30..4d37367 100644 --- a/arch/aarch64/Config.in +++ b/arch/aarch64/Config.in @@ -1,2 +1,2 @@ config SIMPLE_AARCH64 - bool "aarch64" \ No newline at end of file + bool "aarch64" diff --git a/arch/arm/Config.in b/arch/arm/Config.in index 44974a6..db3e113 100644 --- a/arch/arm/Config.in +++ b/arch/arm/Config.in @@ -1,2 +1,2 @@ config SIMPLE_ARM - bool "arm" \ No newline at end of file + bool "arm" diff --git a/arch/x86_64/Config.in b/arch/x86_64/Config.in index b26cc87..4c3423c 100644 --- a/arch/x86_64/Config.in +++ b/arch/x86_64/Config.in @@ -1,2 +1,2 @@ config SIMPLE_X86_64 - bool "x86_64" \ No newline at end of file + bool "x86_64" diff --git a/boot/Config.in b/boot/Config.in index d78862e..177b355 100644 --- a/boot/Config.in +++ b/boot/Config.in @@ -1,2 +1,4 @@ -source "package/uboot/Config.in" -source "package/grub2/Config.in" \ No newline at end of file +menu "Bootloader" + source "package/uboot/Config.in" + source "package/grub2/Config.in" +endmenu diff --git a/package/Config.in b/package/Config.in index d7f7870..acfdc6c 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1,7 +1,9 @@ -source "package/busybox/Config.in" -source "package/zlib/Config.in" -source "package/dropbear/Config.in" -source "package/openssh/Config.in" -source "package/curl/Config.in" -source "package/bash/Config.in" -source "package/git/Config.in" \ No newline at end of file +menu "Target Packages" + source "package/busybox/Config.in" + source "package/zlib/Config.in" + source "package/dropbear/Config.in" + source "package/openssh/Config.in" + source "package/curl/Config.in" + source "package/bash/Config.in" + source "package/git/Config.in" +endmenu diff --git a/package/bash/Config.in b/package/bash/Config.in index ae8712b..23faaf8 100644 --- a/package/bash/Config.in +++ b/package/bash/Config.in @@ -1,5 +1,5 @@ config SIMPLE_PACKAGE_BASH - bool "Bash" - depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC - help - Borne again shell (default linux shell) \ No newline at end of file + bool "Bash" + depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC + help + Borne again shell (default linux shell) diff --git a/package/busybox/Config.in b/package/busybox/Config.in index df9764d..bc90a4b 100644 --- a/package/busybox/Config.in +++ b/package/busybox/Config.in @@ -1,4 +1,4 @@ config SIMPLE_PACKAGE_BUSYBOX - bool "Busybox" - help - Default linux utilities \ No newline at end of file + bool "Busybox" + help + Default linux utilities diff --git a/package/curl/Config.in b/package/curl/Config.in index bf95b6e..be2e4a4 100644 --- a/package/curl/Config.in +++ b/package/curl/Config.in @@ -1,5 +1,5 @@ config SIMPLE_PACKAGE_CURL - bool "Curl" - depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC - help - http application \ No newline at end of file + bool "Curl" + depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC + help + http application diff --git a/package/dropbear/Config.in b/package/dropbear/Config.in index bc05ce1..9ef94f3 100644 --- a/package/dropbear/Config.in +++ b/package/dropbear/Config.in @@ -1,8 +1,8 @@ config SIMPLE_PACKAGE_DROPBEAR - bool "Dropbear" - depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC - select SIMPLE_ZLIB - help - Embedded ssh server + bool "Dropbear" + depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC + select SIMPLE_ZLIB + help + Embedded ssh server -source "package/sftp-server-dropbear/Config.in" \ No newline at end of file +source "package/sftp-server-dropbear/Config.in" diff --git a/package/git/Config.in b/package/git/Config.in index aefbecd..179175c 100644 --- a/package/git/Config.in +++ b/package/git/Config.in @@ -1,7 +1,7 @@ config SIMPLE_PACKAGE_GIT - bool "Git" - select SIMPLE_PACKAGE_CURL - select SIMPLE_PACKAGE_BASH - # depends on SIMPLE_PACKAGE_BASH && SIMPLE_PACKAGE_CURL - help - Git utilities \ No newline at end of file + bool "Git" + select SIMPLE_PACKAGE_CURL + select SIMPLE_PACKAGE_BASH + # depends on SIMPLE_PACKAGE_BASH && SIMPLE_PACKAGE_CURL + help + Git utilities diff --git a/package/glibc/Config.in b/package/glibc/Config.in index 1866551..a0bd99f 100644 --- a/package/glibc/Config.in +++ b/package/glibc/Config.in @@ -1,2 +1,2 @@ config SIMPLE_PACKAGE_GLIBC - bool "glibc" \ No newline at end of file + bool "glibc" diff --git a/package/grub2/Config.in b/package/grub2/Config.in index ac0fb91..4ede43e 100644 --- a/package/grub2/Config.in +++ b/package/grub2/Config.in @@ -1,4 +1,4 @@ config SIMPLE_PACKAGE_GRUB2 - bool "Grub2" - help - GNU GRUB is a Multiboot boot loader \ No newline at end of file + bool "Grub2" + help + GNU GRUB is a Multiboot boot loader diff --git a/package/openssh/Config.in b/package/openssh/Config.in index 893cb69..a72d150 100644 --- a/package/openssh/Config.in +++ b/package/openssh/Config.in @@ -1,6 +1,6 @@ config SIMPLE_PACKAGE_OPENSSH - bool "Openssh" - depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC - select SIMPLE_PACKAGE_ZLIB - help - Ssh server \ No newline at end of file + bool "Openssh" + depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC + select SIMPLE_PACKAGE_ZLIB + help + Ssh server diff --git a/package/sftp-server-dropbear/Config.in b/package/sftp-server-dropbear/Config.in index 9f49ebc..f1e638b 100644 --- a/package/sftp-server-dropbear/Config.in +++ b/package/sftp-server-dropbear/Config.in @@ -1,3 +1,3 @@ config SIMPLE_PACKAGE_SFTP_SERVER_DROPBEAR - bool "Sftp server" - depends on SIMPLE_PACKAGE_DROPBEAR \ No newline at end of file + bool "Sftp server" + depends on SIMPLE_PACKAGE_DROPBEAR diff --git a/package/uboot/Config.in b/package/uboot/Config.in index b0efd3a..fb8f1e6 100644 --- a/package/uboot/Config.in +++ b/package/uboot/Config.in @@ -1,5 +1,5 @@ config SIMPLE_PACKAGE_UBOOT - bool "U-Boot" - help - Build "Das U-Boot" Boot Monitor - https://www.denx.de/wiki/U-Boot \ No newline at end of file + bool "U-Boot" + help + Build "Das U-Boot" Boot Monitor + https://www.denx.de/wiki/U-Boot diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in index 02bb21d..367033c 100644 --- a/package/uclibc/Config.in +++ b/package/uclibc/Config.in @@ -1,2 +1,2 @@ config SIMPLE_PACKAGE_UCLIBC - bool "uclibc" \ No newline at end of file + bool "uclibc" diff --git a/package/zlib/Config.in b/package/zlib/Config.in index c38f0dc..f5cb572 100644 --- a/package/zlib/Config.in +++ b/package/zlib/Config.in @@ -1,3 +1,3 @@ config SIMPLE_PACKAGE_ZLIB - bool "Zlib" - depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC \ No newline at end of file + bool "Zlib" + depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC diff --git a/toolchain/Config.in b/toolchain/Config.in index 1755e27..7a885bb 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -1,14 +1,16 @@ -choice SIMPLE_SELECT_STANDARD_LIBRARY - prompt "Select default C library" - default SIMPLE_PACKAGE_UCLIBC -source "package/glibc/Config.in" -source "package/uclibc/Config.in" -endchoice +menu "Toolchain" + choice SIMPLE_SELECT_STANDARD_LIBRARY + prompt "Select default C library" + default SIMPLE_PACKAGE_UCLIBC + source "package/glibc/Config.in" + source "package/uclibc/Config.in" + endchoice -config SIMPLE_CROSS_COMPILE - string "Cross Compiler" - default "" - help - write full or relative path to cross compiler - example: - x86_64-buildroot-linux-uclibcgnueabihf \ No newline at end of file + config SIMPLE_CROSS_COMPILE + string "Cross Compiler" + default "" + help + write full or relative path to cross compiler + example: + x86_64-buildroot-linux-uclibcgnueabihf +endmenu