-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
4,530 additions
and
1,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- a/config/Config-kernel.in | ||
+++ b/config/Config-kernel.in | ||
@@ -364,6 +364,7 @@ config KERNEL_DEBUG_INFO | ||
config KERNEL_DEBUG_INFO_BTF | ||
|
||
bool "Enable additional BTF type information" | ||
+ default y if (TARGET_armsr || TARGET_bcm27xx || TARGET_ipq806x_chromium || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) | ||
depends on !HOST_OS_MACOS | ||
depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED | ||
select DWARVES | ||
@@ -374,9 +375,20 @@ config KERNEL_DEBUG_INFO_BTF | ||
|
||
Required to run BPF CO-RE applications. | ||
|
||
+config KERNEL_MODULE_ALLOW_BTF_MISMATCH | ||
+ bool "Allow loading modules with non-matching BTF type info" | ||
+ depends on KERNEL_DEBUG_INFO_BTF | ||
+ default y | ||
+ help | ||
+ For modules whose split BTF does not match vmlinux, load without | ||
+ BTF rather than refusing to load. The default behavior with | ||
+ module BTF enabled is to reject modules with such mismatches; | ||
+ this option will still load module BTF where possible but ignore | ||
+ it when a mismatch is found. | ||
+ | ||
config KERNEL_DEBUG_INFO_REDUCED | ||
bool "Reduce debugging information" | ||
- default y | ||
+ default y if !(TARGET_armsr || TARGET_bcm27xx || TARGET_ipq806x_chromium || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) | ||
depends on KERNEL_DEBUG_INFO | ||
help | ||
If you say Y here gcc is instructed to generate less debugging | ||
@@ -464,17 +476,28 @@ config KERNEL_KPROBE_EVENTS | ||
config KERNEL_BPF_EVENTS | ||
bool "Compile the kernel with BPF event support" | ||
select KERNEL_KPROBES | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
help | ||
Allows to attach BPF programs to kprobe, uprobe and tracepoint events. | ||
This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY | ||
for sending data from BPF programs to user-space for post-processing | ||
or logging. | ||
|
||
+config KERNEL_PROBE_EVENTS_BTF_ARGS | ||
+ bool | ||
+ depends on KERNEL_KPROBE_EVENTS && KERNEL_DEBUG_INFO_BTF | ||
+ default n | ||
+ | ||
config KERNEL_BPF_KPROBE_OVERRIDE | ||
bool | ||
depends on KERNEL_KPROBES | ||
default n | ||
|
||
+config KERNEL_BPF_STREAM_PARSER | ||
+ bool "Allow a TCP stream parser to be used with BPF_MAP_TYPE_SOCKMAP" | ||
+ depends on KERNEL_CGROUP_BPF | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
+ | ||
config KERNEL_AIO | ||
bool "Compile the kernel with asynchronous IO support" | ||
default y if !SMALL_FLASH | ||
@@ -1100,6 +1123,7 @@ config KERNEL_NET_L3_MASTER_DEV | ||
|
||
config KERNEL_XDP_SOCKETS | ||
bool "XDP sockets support" | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
help | ||
XDP sockets allows a channel between XDP programs and | ||
userspace applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- a/config/Config-kernel.in | ||
+++ b/config/Config-kernel.in | ||
@@ -426,6 +426,7 @@ config KERNEL_DEBUG_INFO | ||
|
||
config KERNEL_DEBUG_INFO_BTF | ||
bool "Enable additional BTF type information" | ||
+ default y if (TARGET_armsr || TARGET_bcm27xx || TARGET_ipq806x_chromium || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) | ||
depends on !HOST_OS_MACOS | ||
depends on KERNEL_DEBUG_INFO && !KERNEL_DEBUG_INFO_REDUCED | ||
select DWARVES | ||
@@ -443,6 +444,7 @@ config KERNEL_DEBUG_INFO_BTF_MODULES | ||
config KERNEL_MODULE_ALLOW_BTF_MISMATCH | ||
bool "Allow loading modules with non-matching BTF type info" | ||
depends on KERNEL_DEBUG_INFO_BTF_MODULES | ||
+ default y | ||
help | ||
For modules whose split BTF does not match vmlinux, load without | ||
BTF rather than refusing to load. The default behavior with | ||
@@ -452,7 +454,7 @@ config KERNEL_MODULE_ALLOW_BTF_MISMATCH | ||
|
||
config KERNEL_DEBUG_INFO_REDUCED | ||
bool "Reduce debugging information" | ||
- default y | ||
+ default y if !(TARGET_armsr || TARGET_bcm27xx || TARGET_ipq806x_chromium || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) | ||
depends on KERNEL_DEBUG_INFO | ||
help | ||
If you say Y here gcc is instructed to generate less debugging | ||
@@ -540,17 +542,28 @@ config KERNEL_KPROBE_EVENTS | ||
config KERNEL_BPF_EVENTS | ||
bool "Compile the kernel with BPF event support" | ||
select KERNEL_KPROBES | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
help | ||
Allows to attach BPF programs to kprobe, uprobe and tracepoint events. | ||
This is required to use BPF maps of type BPF_MAP_TYPE_PERF_EVENT_ARRAY | ||
for sending data from BPF programs to user-space for post-processing | ||
or logging. | ||
|
||
+config KERNEL_PROBE_EVENTS_BTF_ARGS | ||
+ bool | ||
+ depends on KERNEL_KPROBE_EVENTS && KERNEL_DEBUG_INFO_BTF | ||
+ default n | ||
+ | ||
config KERNEL_BPF_KPROBE_OVERRIDE | ||
bool | ||
depends on KERNEL_KPROBES | ||
default n | ||
|
||
+config KERNEL_BPF_STREAM_PARSER | ||
+ bool "Allow a TCP stream parser to be used with BPF_MAP_TYPE_SOCKMAP" | ||
+ depends on KERNEL_CGROUP_BPF | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
+ | ||
config KERNEL_AIO | ||
bool "Compile the kernel with asynchronous IO support" | ||
default y if !SMALL_FLASH | ||
@@ -1189,6 +1202,7 @@ config KERNEL_NET_L3_MASTER_DEV | ||
|
||
config KERNEL_XDP_SOCKETS | ||
bool "XDP sockets support" | ||
+ default y if KERNEL_DEBUG_INFO_BTF | ||
help | ||
XDP sockets allows a channel between XDP programs and | ||
userspace applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- a/package/libs/openssl/Config.in | ||
+++ b/package/libs/openssl/Config.in | ||
@@ -4,7 +4,7 @@ comment "Build Options" | ||
|
||
config OPENSSL_OPTIMIZE_SPEED | ||
bool | ||
- default y if x86_64 || i386 | ||
+ default y | ||
prompt "Enable optimization for speed instead of size" | ||
select OPENSSL_WITH_ASM | ||
help | ||
@@ -38,9 +38,9 @@ config OPENSSL_WITH_ASM | ||
|
||
config OPENSSL_WITH_SSE2 | ||
bool | ||
- default y if !TARGET_x86_legacy && !TARGET_x86_geode | ||
+ default y if x86_64 || i386 && !TARGET_x86_legacy | ||
prompt "Enable use of x86 SSE2 instructions" | ||
- depends on OPENSSL_WITH_ASM && i386 | ||
+ depends on OPENSSL_WITH_ASM && x86_64 || i386 | ||
help | ||
Use of SSE2 instructions greatly increase performance with a | ||
minimum increase in package size, but it will bring no benefit | ||
@@ -133,7 +133,7 @@ config OPENSSL_WITH_CHACHA_POLY1305 | ||
|
||
config OPENSSL_PREFER_CHACHA_OVER_GCM | ||
bool | ||
- default y if !x86_64 && !aarch64 | ||
+ default y if !x86_64 | ||
prompt "Prefer ChaCha20-Poly1305 over AES-GCM by default" | ||
depends on OPENSSL_WITH_CHACHA_POLY1305 | ||
help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
|
||
CONFIG_TARGET_ipq50xx=y | ||
CONFIG_TARGET_ipq50xx_arm=y | ||
CONFIG_TARGET_MULTI_PROFILE=y | ||
CONFIG_TARGET_ALL_PROFILES=y | ||
|
||
CONFIG_PACKAGE_luci-ssl=y # uhttpd服务 | ||
|
||
CONFIG_PACKAGE_luci-ssl=y # uhttpd服务 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.