added editorconfig and formated code

This commit is contained in:
wt
2025-02-13 19:29:05 +07:00
parent 87b00b646d
commit fe1d348360
21 changed files with 117 additions and 78 deletions
+40
View File
@@ -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
-9
View File
@@ -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
+5 -3
View File
@@ -1,3 +1,5 @@
source "arch/arm/Config.in"
source "arch/aarch64/Config.in"
source "arch/x86_64/Config.in"
menu "Architecture"
source "arch/arm/Config.in"
source "arch/aarch64/Config.in"
source "arch/x86_64/Config.in"
endmenu
+1 -1
View File
@@ -1,2 +1,2 @@
config SIMPLE_AARCH64
bool "aarch64"
bool "aarch64"
+1 -1
View File
@@ -1,2 +1,2 @@
config SIMPLE_ARM
bool "arm"
bool "arm"
+1 -1
View File
@@ -1,2 +1,2 @@
config SIMPLE_X86_64
bool "x86_64"
bool "x86_64"
+4 -2
View File
@@ -1,2 +1,4 @@
source "package/uboot/Config.in"
source "package/grub2/Config.in"
menu "Bootloader"
source "package/uboot/Config.in"
source "package/grub2/Config.in"
endmenu
+9 -7
View File
@@ -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"
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
+4 -4
View File
@@ -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)
bool "Bash"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
help
Borne again shell (default linux shell)
+3 -3
View File
@@ -1,4 +1,4 @@
config SIMPLE_PACKAGE_BUSYBOX
bool "Busybox"
help
Default linux utilities
bool "Busybox"
help
Default linux utilities
+4 -4
View File
@@ -1,5 +1,5 @@
config SIMPLE_PACKAGE_CURL
bool "Curl"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
help
http application
bool "Curl"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
help
http application
+6 -6
View File
@@ -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"
source "package/sftp-server-dropbear/Config.in"
+6 -6
View File
@@ -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
bool "Git"
select SIMPLE_PACKAGE_CURL
select SIMPLE_PACKAGE_BASH
# depends on SIMPLE_PACKAGE_BASH && SIMPLE_PACKAGE_CURL
help
Git utilities
+1 -1
View File
@@ -1,2 +1,2 @@
config SIMPLE_PACKAGE_GLIBC
bool "glibc"
bool "glibc"
+3 -3
View File
@@ -1,4 +1,4 @@
config SIMPLE_PACKAGE_GRUB2
bool "Grub2"
help
GNU GRUB is a Multiboot boot loader
bool "Grub2"
help
GNU GRUB is a Multiboot boot loader
+5 -5
View File
@@ -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
bool "Openssh"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
select SIMPLE_PACKAGE_ZLIB
help
Ssh server
+2 -2
View File
@@ -1,3 +1,3 @@
config SIMPLE_PACKAGE_SFTP_SERVER_DROPBEAR
bool "Sftp server"
depends on SIMPLE_PACKAGE_DROPBEAR
bool "Sftp server"
depends on SIMPLE_PACKAGE_DROPBEAR
+4 -4
View File
@@ -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
bool "U-Boot"
help
Build "Das U-Boot" Boot Monitor
https://www.denx.de/wiki/U-Boot
+1 -1
View File
@@ -1,2 +1,2 @@
config SIMPLE_PACKAGE_UCLIBC
bool "uclibc"
bool "uclibc"
+2 -2
View File
@@ -1,3 +1,3 @@
config SIMPLE_PACKAGE_ZLIB
bool "Zlib"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
bool "Zlib"
depends on SIMPLE_PACKAGE_UCLIBC || SIMPLE_PACKAGE_GLIBC
+15 -13
View File
@@ -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
config SIMPLE_CROSS_COMPILE
string "Cross Compiler"
default ""
help
write full or relative path to cross compiler
example:
x86_64-buildroot-linux-uclibcgnueabihf
endmenu