summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>2005-07-28 17:56:17 +0200
committerSam Ravnborg <sam@mars.(none)>2005-07-28 22:58:21 +0200
commit49490571bcfe24d279a66ba24198e8ba299fe58f (patch)
tree785dbe57e3c066761cea42b97cedb4504e08ce7b /Documentation
parent61d9cdf2a9ccb9e4770d7723db8b18b8952778ce (diff)
downloadop-kernel-dev-49490571bcfe24d279a66ba24198e8ba299fe58f.zip
op-kernel-dev-49490571bcfe24d279a66ba24198e8ba299fe58f.tar.gz
[PATCH] kbuild: describe Kbuild pitfall
Whitespace is significant for make, and I just fought against this... so please apply this patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/kbuild/makefiles.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt
index 2616a58..9a15865 100644
--- a/Documentation/kbuild/makefiles.txt
+++ b/Documentation/kbuild/makefiles.txt
@@ -872,7 +872,13 @@ When kbuild executes the following steps are followed (roughly):
Assignments to $(targets) are without $(obj)/ prefix.
if_changed may be used in conjunction with custom commands as
defined in 6.7 "Custom kbuild commands".
+
Note: It is a typical mistake to forget the FORCE prerequisite.
+ Another common pitfall is that whitespace is sometimes
+ significant; for instance, the below will fail (note the extra space
+ after the comma):
+ target: source(s) FORCE
+ #WRONG!# $(call if_changed, ld/objcopy/gzip)
ld
Link target. Often LDFLAGS_$@ is used to set specific options to ld.
OpenPOWER on IntegriCloud