]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kbuild: doc: remove outdated description of the limitation on -I usage
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 17 Sep 2024 14:16:31 +0000 (23:16 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 23 Sep 2024 18:07:21 +0000 (03:07 +0900)
Kbuild used to manipulate header search paths, enforcing the odd
limitation of "no space after -I".

Commit cdd750bfb1f7 ("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>
Documentation/kbuild/modules.rst

index 268ebbd2ab74095913b36dfc4d5e1e62c08af1c5..7eceb9a65e9cf60ce557df644d71c0c240060fa7 100644 (file)
@@ -328,13 +328,9 @@ according to the following rule:
                --> filename: Kbuild
                obj-m := 8123.o
 
-               ccflags-y := -Iinclude
+               ccflags-y := -I $(src)/include
                8123-y := 8123_if.o 8123_pci.o 8123_bin.o
 
-       Note that in the assignment there is no space between -I and
-       the path. This is a limitation of kbuild: there must be no
-       space present.
-
 4.3 Several Subdirectories
 --------------------------