diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-02 11:51:28 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-10-02 11:51:28 -0500 |
| commit | dc5b88335d667b3268191b2c95f5ffb22337f524 (patch) | |
| tree | e392060da85ce71ad75d81a63fbf277474e6eb84 /drivers/message | |
| parent | e22be929760c9adf3d24472c52643134f604649c (diff) | |
kbuild: Don't cd into subdirs during build
Instead of using make -C <subdir>, just use make -f <subdir>/Makefile.
This means we now call gcc/ld/... always from the topdir.
Advantages are:
o We don't need to use -I$(TOPDIR)/include and the like, just
-Iinclude works.
o __FILE__ gives the correct relative path from the topdir instead
of an absolute path, as it did before for included headers
o gcc errors/warnings give the correct relative path from the topdir
o takes us a step closer to a non-recursive build (though that's probably
as close as it gets)
The changes to Rules.make were done in a way which only uses the new way
for the standard recursive build (which remains recursive, just without
cd), all the archs do make -C arch/$(ARCH)/boot ..., which should keep
working as before. However, of course this should be converted eventually,
it's possible to do so piecemeal arch by arch.
It seems to work fine for most of the standard kernel. Potential places
which need changing are added -I flags to the command line, which now
need to have the path relative to the topdir and explicit rules for
generating files, which need to properly use $(obj) / $(src) to work
correctly.
Diffstat (limited to 'drivers/message')
| -rw-r--r-- | drivers/message/fusion/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/fusion/Makefile b/drivers/message/fusion/Makefile index d71cd2d6c424..d623659f4bb0 100644 --- a/drivers/message/fusion/Makefile +++ b/drivers/message/fusion/Makefile @@ -13,7 +13,7 @@ # # sparc64 #EXTRA_CFLAGS += -gstabs+ -EXTRA_CFLAGS += -I. ${MPT_CFLAGS} +EXTRA_CFLAGS += ${MPT_CFLAGS} # Fusion MPT drivers; recognized debug defines... # MPT general: |
