backports: add signature verification code
[openwrt/staging/blogic.git] / backport / compat / Kconfig
1 #
2 # backport Kconfig
3 #
4 # Some options are user-selectable ("BPAUTO_USERSEL_*")
5 #
6 # Most options, however, follow a few different schemes:
7 #
8 # A) An option that is selected by drivers ("select FOO") will be
9 # changed to "select BPAUTO_FOO" (if the option BPAUTO_FOO
10 # exists). The option BPAUTO_FOO then controls setting of the
11 # BPAUTO_BUILD_FOO option, which is a module, like this:
12 #
13 # config BPAUTO_BUILD_FOO
14 # tristate
15 # # or bool
16 #
17 # # not possible on kernel < X.Y, build will fail if any
18 # # drivers are allowed to build on kernels < X.Y
19 # depends on KERNEL_X_Y
20 #
21 # # don't build the backport code if FOO is in the kernel
22 # # already, but only if the kernel version is also >= X.Z;
23 # # this is an example of backporting where the version of
24 # # the FOO subsystem that we need is only available from
25 # # kernel version X.Z
26 # depends on !FOO || KERNEL_X_Z
27 #
28 # # build if driver needs it (it selects BPAUTO_FOO)
29 # default m if BPAUTO_FOO
30 #
31 # # or for build-testing (BPAUTO_USERSEL_BUILD_ALL is enabled)
32 # default m if BPAUTO_USERSEL_BUILD_ALL
33 #
34 # config BPAUTO_FOO
35 # bool
36 #
37 # This only works as-is if the kernel code is usable on any version,
38 # otherwise the "&& !FOO" part needs to be different.
39 #
40 #
41 # B) An option for code always present on some kernels (e.g. KFIFO).
42 # This simply depends on/sets the default based on the version:
43 #
44 # config BPAUTO_BUILD_KFIFO
45 # def_bool y
46 # depends on KERNEL_2_6_36
47 #
48 #
49 # C) similarly, a kconfig symbol for an option, e.g.
50 # BPAUTO_OPTION_SOME_FIX (no examples provided) check git log
51 #
52 #
53 # Variations are obviously possible.
54 #
55
56 config BP_MODULES
57 option modules
58 bool
59 default MODULES
60
61 help
62 This symbol is necessary for the newer kconf tool, it looks
63 for the "option modules" to control the 'm' state.
64
65 config BPAUTO_BUILD_CORDIC
66 tristate
67 depends on !CORDIC
68 depends on KERNEL_3_1
69 default m if BPAUTO_CORDIC
70 default m if BPAUTO_USERSEL_BUILD_ALL
71 #module-name cordic
72 #c-file lib/cordic.c
73
74 config BPAUTO_CORDIC
75 bool
76
77 config BPAUTO_MII
78 bool
79
80 config BPAUTO_BUILD_LEDS
81 bool
82 depends on !NEW_LEDS || LEDS_CLASS=n || !LEDS_TRIGGERS
83 default y if BPAUTO_NEW_LEDS
84 default y if BPAUTO_LEDS_CLASS
85 default y if BPAUTO_LEDS_TRIGGERS
86
87 config BPAUTO_NEW_LEDS
88 bool
89
90 config BPAUTO_LEDS_CLASS
91 bool
92
93 config BPAUTO_LEDS_TRIGGERS
94 bool
95
96 config BPAUTO_USERSEL_BUILD_ALL
97 bool "Build all compat code"
98 help
99 This option selects all the compat code options
100 that would otherwise only be selected by drivers.
101
102 It's only really useful for compat testing, so
103 you probably shouldn't enable it.
104
105 config BPAUTO_CRYPTO_CCM
106 depends on CRYPTO_AEAD
107 depends on CRYPTO_CTR
108 bool
109
110 config BPAUTO_BUILD_CRYPTO_CCM
111 bool
112 default n if CRYPTO_CCM
113 default y if BPAUTO_CRYPTO_CCM
114 #c-file crypto/ccm.c
115
116 config BPAUTO_CRYPTO_SKCIPHER
117 tristate
118 depends on KERNEL_4_3
119 default y if BACKPORTED_LIB80211_CRYPT_WEP
120 default y if BACKPORTED_LIB80211_CRYPT_TKIP
121 default y if BACKPORTED_BT
122 #c-file crypto/skcipher.c
123 #module-name skcipher
124
125 config BPAUTO_WANT_DEV_COREDUMP
126 bool
127
128 config BPAUTO_BUILD_WANT_DEV_COREDUMP
129 bool
130 default n if DEV_COREDUMP
131 default n if DISABLE_DEV_COREDUMP
132 default y if BPAUTO_WANT_DEV_COREDUMP
133 #h-file linux/devcoredump.h
134 #c-file drivers/base/devcoredump.c
135
136 config BPAUTO_RHASHTABLE
137 bool
138 # current API of rhashtable was introduced in version 4.9
139 # (the one including rhltable)
140 depends on KERNEL_4_9
141 # not very nice - but better than always having it
142 default y if BACKPORTED_MAC80211
143 #h-file linux/rhashtable.h
144 #c-file lib/rhashtable.c
145
146 config BPAUTO_BUILD_HDMI
147 bool
148 # the hdmi driver got some new apis like hdmi_infoframe_unpack() in
149 # kernel 4.0 which are used by some drivers
150 depends on KERNEL_4_0
151 #h-file linux/hdmi.h
152 #c-file drivers/video/hdmi.c
153
154 config BPAUTO_HDMI
155 bool
156 select BPAUTO_BUILD_HDMI if KERNEL_4_0
157 # these drivers are using the new features of the hdmi driver.
158 default y if BACKPORTED_VIDEO_ADV7511
159 default y if BACKPORTED_VIDEO_ADV7604
160 default y if BACKPORTED_VIDEO_ADV7842
161
162 config BPAUTO_FRAME_VECTOR
163 bool
164
165 config BPAUTO_BUILD_FRAME_VECTOR
166 bool
167 default n if FRAME_VECTOR
168 default y if BPAUTO_FRAME_VECTOR
169 #c-file mm/frame_vector.c
170
171 config BPAUTO_REFCOUNT
172 bool
173 default y
174 depends on KERNEL_4_11
175 #h-file linux/refcount.h
176 #c-file lib/refcount.c
177
178 config BPAUTO_SYSTEM_DATA_VERIFICATION
179 bool
180
181 config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION
182 bool
183 default y if BPAUTO_SYSTEM_DATA_VERIFICATION
184 depends on KERNEL_4_7 || !SYSTEM_DATA_VERIFICATION
185 select BPAUTO_ASN1_DECODER
186 select BPAUTO_PUBLIC_KEY
187 select BPAUTO_PKCS7
188 #h-file linux/oid_registry.h
189 #c-file lib/oid_registry.c
190
191 config BPAUTO_PUBLIC_KEY
192 bool
193 #h-file crypto/public_key.h
194
195 config BPAUTO_ASN1_DECODER
196 bool
197 #h-file linux/asn1_decoder.h
198 #c-file lib/asn1_decoder.c
199
200 config BPAUTO_PKCS7
201 bool
202 #h-file crypto/pkcs7.h