Lines Matching +full:user +full:- +full:defined
2 -------
17 $(CC) -o $(APP) $(SRC)
23 gcc -o foo foo.c
28 The idea is quite similar in Kconfig - it is possible to describe a Kconfig
34 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
42 Then, Kconfig moves onto the evaluation stage to resolve inter-symbol
43 dependency as explained in kconfig-language.txt.
47 ---------
52 $( ). The parentheses are required even for single-letter variable names; $X is
58 A simply expanded variable is defined using the := assignment operator. Its
62 A recursively expanded variable is defined using the = assignment operator.
69 side was originally defined as a simple variable. Otherwise, its evaluation is
77 "user-defined function" in contrast to "built-in function" listed below).
80 expanded differently if different parameters are passed. Hence, a user-defined
81 function is defined using the = assignment operator. The parameters are
84 In fact, recursively expanded variables and user-defined functions are the same
86 When we say "variable" in a broad sense, it includes "user-defined function".
89 Built-in functions
90 ------------------
92 Like Make, Kconfig provides several built-in functions. Every function takes a
95 In Make, every built-in function takes at least one argument. Kconfig allows
96 zero argument for built-in functions, such as $(fileno), $(lineno). You could
97 consider those as "built-in variable", but it is just a matter of how we call
98 it after all. Let's say "built-in function" here to refer to natively supported
101 Kconfig currently supports the following built-in functions.
103 - $(shell,command)
111 - $(info,text)
116 - $(warning-if,condition,text)
118 The "warning-if" function takes two arguments. If the condition part is "y",
122 - $(error-if,condition,text)
124 The "error-if" function is similar to "warning-if", but it terminates the
127 - $(filename)
132 - $(lineno)
139 ---------------
141 Kconfig adopts Make-like macro language, but the function call syntax is
146 $(func-name arg1,arg2,arg3)
161 $(func-name, arg1, arg2, arg3)
163 In this case, "func-name" will receive " arg1", " arg2", " arg3". The presence
165 Make - for example, $(subst .c, .o, $(sources)) is a typical mistake; it
168 In Make, a user-defined function is referenced by using a built-in function,
171 $(call my-func,arg1,arg2,arg3)
173 Kconfig invokes user-defined functions and built-in functions in the same way.
194 -------
230 default "-mbig-endian" if CPU_BIG_ENDIAN
231 default "-mlittle-endian" if CPU_LITTLE_ENDIAN
234 def_bool $(shell $(srctree)/scripts/gcc-check-flag ENDIAN_FLAG)
241 default $(shell $(srctree)/scripts/gcc-check-flag -mbig-endian) if CPU_BIG_ENDIAN
242 default $(shell $(srctree)/scripts/gcc-check-flag -mlittle-endian) if CPU_LITTLE_ENDIAN