mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* KBuild problem (or difference) in 2.6.14-rc3
@ 2005-10-10 22:43 Mark Rustad
  2005-10-12 16:57 ` Mark Rustad
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Rustad @ 2005-10-10 22:43 UTC (permalink / raw)
  To: linux-kernel

I have noticed a change in Kbuild behavior when going from 2.6.13.x  
to 2.6.14-rc3. I build kernels with a separate objects directory. It  
has been my practice since beginning with 2.6 kernels last year, to  
put changed files into the objects directory structure to override an  
unmodified source tree. Starting with 2.6.14, I find that Makefiles  
in the objects directory structure area not used. I find that source  
and Kconfig files do override as they used to, but Makefiles do not.

I don't really know if this new behavior is intended or not, but it  
sure messes my kernel build methodology up. It looks to me like the  
problem was introduced by changes in scripts/Makefile.build. I think  
that this is the change causing me trouble:

--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -10,8 +10,11 @@ __build:
# Read .config if it exist, otherwise ignore
  -include .config

-include $(if $(wildcard $(obj)/Kbuild), $(obj)/Kbuild, $(obj)/Makefile)
+# The filename Kbuild has precedence over Makefile
+kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
+include $(if $(wildcard $(kbuild-dir)/Kbuild), $(kbuild-dir)/Kbuild,  
$(kbuild-dir)/Makefile)

+include scripts/Kbuild.include
  include scripts/Makefile.lib

  ifdef host-progs

Does anyone know if this change in behavior was intended? I realize  
that I may be doing something a little bit unusual, but I have been  
doing things this way very successfully since at least 2.6.5.

-- 
Mark Rustad, MRustad@mac.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-16 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 22:43 KBuild problem (or difference) in 2.6.14-rc3 Mark Rustad
2005-10-12 16:57 ` Mark Rustad
2005-10-14 14:23 ` [PATCH 2.6.14-rc4] kbuild: once again use Makefiles in obj tree Mark Rustad
2005-10-16 21:15   ` Sam Ravnborg
2005-10-14 14:28 ` [PATCH 2.6.14-rc4] kbuild: Eliminate build error when KALLSYMS not defined Mark Rustad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®