summaryrefslogtreecommitdiff
path: root/config/kernel/linux.in
blob: 405bc37675c9f0dda56ff2f6753e20763da3ddae (plain)
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Linux kernel options

choice
    bool
    prompt "Get kernel headers from:"

config KERNEL_LINUX_HEADERS_INSTALL
    bool
    prompt "kernel's 'headers_install'"
    help
      This will make use of the new headers_install rule in recent kernels.
      This is most probably what you want to use.

config KERNEL_LINUX_HEADERS_SANITISED
    bool
    prompt "Mazur's sanitized headers (OBSOLETE)"
    depends on OBSOLETE
    select KERNEL_LINUX_NEEDS_CONFIG
    help
      M. Mazur used to maintain a tree of sanitised headers, but it is now
      obsoleted by the headers_install rule (above), and has not seen any
      update since 2.6.12

config KERNEL_LINUX_HEADERS_COPY
    bool
    prompt "pure kernel headers (REALLY OBSOLETE)"
    depends on OBSOLETE
    select KERNEL_LINUX_NEEDS_CONFIG
    help
      This will simply copy the kernel headers to the toolchain.

      You do NOT want this. It's badly broken because it leaks kernel internals
      to userspace.

config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    bool
    prompt "Use custom directory"
    help
      If you have some kernel headers lying around, you can enter the path
      below.

endchoice

config KERNEL
    string
    default "linux" if ! KERNEL_LINUX_HEADERS_SANITISED
    default "linux-libc-headers" if KERNEL_LINUX_HEADERS_SANITISED

config KERNEL_VERSION_SEE_EXTRAVERSION
    bool
    prompt "See extra versions"
    default n
    depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
    help
      See extra versions (kernel with 4 numbers, eg 2.6.19.1).

      If you say 'no', you'll only see sub-level, 3-digit versions.
      If you say 'yes', you'll see far more versions!

      It is recommended that you say 'no', unless you _*know*_
      that an extra version fixes a headers bug.

if KERNEL_LINUX_HEADERS_INSTALL
source config/kernel/linux_headers_install.in
endif

if KERNEL_LINUX_HEADERS_COPY
source config/kernel/linux_headers_copy.in
endif

if KERNEL_LINUX_HEADERS_SANITISED
source config/kernel/linux_headers_sanitised.in
endif

config KERNEL_LINUX_HEADERS_CUSTOM_DIR
    string
    prompt "Where are those custom headers?"
    depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    help
      Enter the base directory where the headers are to be found.
      
      Eg. if the headers are in /some/place/include, then enter /some/place.
          This is the same path you entered when you typed:
            make INSTALL_HDR_PATH=/some/place headers_install

if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR

choice
    bool
    prompt "Kernel verbosity:"
    default KERNEL_LINUX_VERBOSITY_0

config KERNEL_LINUX_VERBOSITY_0
    bool
    prompt "Simplified"
    help
      Print simplified command lines.

config KERNEL_LINUX_VERBOSITY_1
    bool
    prompt "Full commands"
    help
      Print full command lines.

config KERNEL_LINUX_VERBOSITY_2
    bool
    prompt "Exec reasons"
    help
      Print the reasons why a make target is rebuild.

endchoice

config KERNEL_LINUX_VERBOSE_LEVEL
    int
    default 0 if KERNEL_LINUX_VERBOSITY_0
    default 1 if KERNEL_LINUX_VERBOSITY_1
    default 2 if KERNEL_LINUX_VERBOSITY_2

config KERNEL_LINUX_NEEDS_CONFIG
    bool
    default n

config KERNEL_LINUX_CONFIG_FILE
    string
    prompt "Configuration file"
    depends on KERNEL_LINUX_NEEDS_CONFIG
    default ""
    help
      Path to a kernel configuration file.
      
      If you don't provide one, then the default configuration for
      your target will be used.

endif