-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathKconfig
86 lines (77 loc) · 2.49 KB
/
Kconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
menu "ELF Loader"
choice
prompt "Select ELF Loading Method"
default ELFLOADER_MEMORY_POINTER
config ELFLOADER_POSIX
bool "Use file descriptors and operations like fread()"
help
Operates directly out of flash using POSIX.
config ELFLOADER_MEMORY_POINTER
bool "Operate on memory pointers"
help
Reader reads entire ELF file into memory and passes in a pointer
to the beginning of the contents. 1~2 orders of magnitude faster
than POSIX, but requires more RAM.
endchoice
choice
prompt "Symbol Search Method"
default ELFLOADER_SEARCH_LINEAR
config ELFLOADER_SEARCH_LINEAR
bool "Linear search through exported symbols"
help
Input symbols from HOST can be in any order, but takes O(n) to find
a symbol.
config ELFLOADER_SEARCH_BINARY
bool "Binary search through exported symbols"
help
Input symbols from HOST must be in alphabetical order.
Takes O(log(n)) to find a symbol.
endchoice
config ELFLOADER_PROFILER_EN
bool
prompt "Enable ELF Loader Profiling"
default n
help
Enable profiling tools. Takes up additional memory and some CPU cycles.
config ELFLOADER_CACHE_SHSTRTAB
bool
depends on ELFLOADER_POSIX
prompt "Cache Section Header StringTable to Memory"
default y
help
Allocates memory to cache the .shstrtab section to memory. In tests,
this occupies ~4KB of memory (depends on number of symbols and name
length, just provided here for a magnitude estimate) and made loading
500mS faster.
config ELFLOADER_CACHE_SECTIONS
bool
depends on ELFLOADER_POSIX
prompt "Cache Sections as they are read"
default y
help
Allocates memory for every section read to reduce repeated flash reads.
Frees these sections after loading is complete.
config ELFLOADER_CACHE_LOCALITY
bool
depends on ELFLOADER_POSIX
prompt "Read ahead as filesystem is accessed"
default y
help
help text here.
config ELFLOADER_CACHE_LOCALITY_CHUNK_SIZE
int
depends on ELFLOADER_CACHE_LOCALITY
prompt "Read ahead as filesystem is accessed"
default 1024
range 128 65536
help
chunk size for read ahead in bytes.
config ELFLOADER_CACHE_LOCALITY_CHUNK_N
int
depends on ELFLOADER_CACHE_LOCALITY
prompt "Number of chunks to cache"
default 5
range 0 255
help
number of chunks to cache.
endmenu