Lines Matching +full:two +full:- +full:user

6 -------
9 two languages in one. One language describes dependency graphs consisting of
13 There is clear distinction between the two language stages. For example, you
21 $(CC) -o $(APP) $(SRC)
27 gcc -o foo foo.c
32 The idea is quite similar in Kconfig - it is possible to describe a Kconfig
38 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
46 Then, Kconfig moves onto the evaluation stage to resolve inter-symbol
47 dependency as explained in kconfig-language.rst.
51 ---------
56 $( ). The parentheses are required even for single-letter variable names; $X is
59 There are two types of variables: simply expanded variables and recursively
81 "user-defined function" in contrast to "built-in function" listed below).
84 expanded differently if different parameters are passed. Hence, a user-defined
88 In fact, recursively expanded variables and user-defined functions are the same
90 When we say "variable" in a broad sense, it includes "user-defined function".
93 Built-in functions
94 ------------------
96 Like Make, Kconfig provides several built-in functions. Every function takes a
99 In Make, every built-in function takes at least one argument. Kconfig allows
100 zero argument for built-in functions, such as $(fileno), $(lineno). You could
101 consider those as "built-in variable", but it is just a matter of how we call
102 it after all. Let's say "built-in function" here to refer to natively supported
105 Kconfig currently supports the following built-in functions.
107 - $(shell,command)
115 - $(info,text)
120 - $(warning-if,condition,text)
122 The "warning-if" function takes two arguments. If the condition part is "y",
126 - $(error-if,condition,text)
128 The "error-if" function is similar to "warning-if", but it terminates the
131 - $(filename)
136 - $(lineno)
143 ---------------
145 Kconfig adopts Make-like macro language, but the function call syntax is
150 $(func-name arg1,arg2,arg3)
165 $(func-name, arg1, arg2, arg3)
167 In this case, "func-name" will receive " arg1", " arg2", " arg3". The presence
169 Make - for example, $(subst .c, .o, $(sources)) is a typical mistake; it
172 In Make, a user-defined function is referenced by using a built-in function,
175 $(call my-func,arg1,arg2,arg3)
177 Kconfig invokes user-defined functions and built-in functions in the same way.
190 is an error because it is passing two parameters where the 'shell' function
198 -------
235 default "-mbig-endian" if CPU_BIG_ENDIAN
236 default "-mlittle-endian" if CPU_LITTLE_ENDIAN
239 def_bool $(shell $(srctree)/scripts/gcc-check-flag ENDIAN_FLAG)
246 default $(shell $(srctree)/scripts/gcc-check-flag -mbig-endian) if CPU_BIG_ENDIAN
247 default $(shell $(srctree)/scripts/gcc-check-flag -mlittle-endian) if CPU_LITTLE_ENDIAN