4 # Some options are user-selectable ("BPAUTO_USERSEL_*")
6 # Most options, however, follow a few different schemes:
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:
13 # config BPAUTO_BUILD_FOO
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
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
28 # # build if driver needs it (it selects BPAUTO_FOO)
29 # default m if BPAUTO_FOO
31 # # or for build-testing (BPAUTO_USERSEL_BUILD_ALL is enabled)
32 # default m if BPAUTO_USERSEL_BUILD_ALL
37 # This only works as-is if the kernel code is usable on any version,
38 # otherwise the "&& !FOO" part needs to be different.
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:
44 # config BPAUTO_BUILD_KFIFO
46 # depends on KERNEL_2_6_36
49 # C) similarly, a kconfig symbol for an option, e.g.
50 # BPAUTO_OPTION_SOME_FIX (no examples provided) check git log
53 # Variations are obviously possible.
62 This symbol is necessary for the newer kconf tool, it looks
63 for the "option modules" to control the 'm' state.
65 config BPAUTO_BUILD_CORDIC
69 default m if BPAUTO_CORDIC
70 default m if BPAUTO_USERSEL_BUILD_ALL
80 config BPAUTO_BUILD_LEDS
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
87 config BPAUTO_NEW_LEDS
90 config BPAUTO_LEDS_CLASS
93 config BPAUTO_LEDS_TRIGGERS
96 config BPAUTO_USERSEL_BUILD_ALL
97 bool "Build all compat code"
99 This option selects all the compat code options
100 that would otherwise only be selected by drivers.
102 It's only really useful for compat testing, so
103 you probably shouldn't enable it.
105 config BPAUTO_CRYPTO_CCM
106 depends on CRYPTO_AEAD
107 depends on CRYPTO_CTR
110 config BPAUTO_BUILD_CRYPTO_CCM
112 default n if CRYPTO_CCM
113 default y if BPAUTO_CRYPTO_CCM
116 config BPAUTO_CRYPTO_SKCIPHER
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
125 config BPAUTO_WANT_DEV_COREDUMP
128 config BPAUTO_BUILD_WANT_DEV_COREDUMP
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
136 config BPAUTO_RHASHTABLE
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
146 config BPAUTO_BUILD_HDMI
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
152 #c-file drivers/video/hdmi.c
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
162 config BPAUTO_FRAME_VECTOR
165 config BPAUTO_BUILD_FRAME_VECTOR
167 default n if FRAME_VECTOR
168 default y if BPAUTO_FRAME_VECTOR
169 #c-file mm/frame_vector.c
171 config BPAUTO_REFCOUNT
174 depends on KERNEL_4_11
175 #h-file linux/refcount.h
176 #c-file lib/refcount.c
178 config BPAUTO_SYSTEM_DATA_VERIFICATION
181 config BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION
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
188 #h-file linux/oid_registry.h
189 #c-file lib/oid_registry.c
191 config BPAUTO_PUBLIC_KEY
193 #h-file crypto/public_key.h
195 config BPAUTO_ASN1_DECODER
197 #h-file linux/asn1_decoder.h
198 #c-file lib/asn1_decoder.c
202 #h-file crypto/pkcs7.h