Skip to content

Commit a866eda

Browse files
committed
kbuild: doc: remove outdated description of the limitation on -I usage
Kbuild used to manipulate header search paths, enforcing the odd limitation of "no space after -I". Commit cdd750b ("kbuild: remove 'addtree' and 'flags' magic for header search paths") stopped doing that. This limitation no longer exists. Instead, you need to accurately specify the header search path. (In this case, $(src)/include) Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <n.schier@avm.de>
1 parent 1a59bd3 commit a866eda

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Documentation/kbuild/modules.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,9 @@ according to the following rule:
328328
--> filename: Kbuild
329329
obj-m := 8123.o
330330

331-
ccflags-y := -Iinclude
331+
ccflags-y := -I $(src)/include
332332
8123-y := 8123_if.o 8123_pci.o 8123_bin.o
333333

334-
Note that in the assignment there is no space between -I and
335-
the path. This is a limitation of kbuild: there must be no
336-
space present.
337-
338334
4.3 Several Subdirectories
339335
--------------------------
340336

0 commit comments

Comments
 (0)