Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <susan34> hi. is it possible to select a choice as dependency ? if in a new .mk, i do select BR2_PACKAGE_QT5 and select BR2_PACKAGE_QT5BASE_SQLITE_SYSTEM, i get an error because default choice of QT5 is SQLITE_NONE
- and i don't manage to tell to buildroot what i want
- <y_morin> susan34: No, it is not possible to select an entry of a choice; one can only ever depend on it.
- <susan34> ok. is it a normal technical choice that i don't understand or for the moment a limitation (is it wanted or not in fact)
- <y_morin> susan34: That's a limitation/feature of the kconfig language.
- <susan34> ok.
- thanks, it works if i put both,qt5 and SQLITE_SYSTEM as depends on.
- <y_morin> susan34: Selecting a choice entry is not possible. Consider A and B two entries of the same choice, and C and D two totally unrelated options. What if C selects A and D selects B, and C and D are both enabled at the same time?
- <y_morin> It does not make sense, so the language does not support that.
- (one may argue that a SAT solver would help in this situation, but there is no such SAT in kconfig)
- <susan34> it has the sense you give to it. for example, depends on A && depends on !A is supported but has no sense
- but however my aim goal was to understand or know if something was possible. thanks for youranswer.
- <y_morin> susan34: No, having two options of the _same_ choice enabled at the same time does not make sense (or they would not be in the same choice to begin with)
- <susan34> yes, i agree, but in my case, it's not what i wanted. but my only solutionfor the moment is to put it in the _defconfig file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement