Hi Peter, I also wonder much how build system works. I read the kbuild documentation but it is not clear to me. Would you please give us some guidence about algotihmic work of build system? Makefile includes xxx file, the xxx file defines such parameters it then includes yyyy file etc. I hope it would not be too boring to you ? Thanks, -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Peter Teoh Sent: Friday, February 27, 2009 6:58 AM To: loody Cc: kernelnewbies@xxxxxxxxxxxx Subject: Re: Where is obj parameters comes from? it is recursive by nature: In Makefile.build u see the following: PHONY += $(subdir-ym) $(subdir-ym): $(Q)$(MAKE) $(build)=$@ And build is defined in scripts/Kbuild.include: ### # Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj= # Usage: # $(Q)$(MAKE) $(build)=dir build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj and shown in the remarks statement above, the "build" variable is used to construct the whole string: "$(Q)$(MAKE) $(build)=dir". On Thu, Feb 26, 2009 at 3:57 PM, loody <miloody@xxxxxxxxx> wrote: > Dear all: > While compiling the kernel, I find the command like below: > "make -f scripts/Makefile.build obj=arch/mips/kernel". > It seems we build the kernel by passing different obj to > "scripts/Makefile.build" > Where is the for loop to iteratively passing different obj to Makefile.build? > Appreciate your help, > miloody > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Regards, Peter Teoh -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ ************************************************************************ Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi tarafindan almasi amaclanan yetkili gercek ya da tuzel kisinin kullanimi icindir. Eger soz konusu yetkili alici degilseniz bu elektronik postanin icerigini aciklamaniz, kopyalamaniz, yonlendirmeniz ve kullanmaniz hukuka aykiri ve yasaktir, lutfen bu elektronik postayi siliniz. TELLCOM ILETISIM bu mesajin icerdigi bilgilerin dogrulugu veya eksiksiz oldugu konusunda herhangi bir garanti vermemektedir. Bu nedenle bu bilgilerin ne sekilde olursa olsun iceriginden, iletilmesinden, alinmasindan ve saklanmasindan sorumlu degildir. Bu mesajdaki gorusler yalnizca gonderen kisiye aittir ve TELLCOM ILETISIM in goruslerini yansitmayabilir Bu e-posta bilinen butun bilgisayar viruslerine karsi taranmistir. ************************************************************************ This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are hereby notified that any dissemination, forwarding, copying or use of any of the information is illegal and prohibited, and the e-mail should be deleted. TELLCOM ILETISIM makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. The opinions expressed in this message belong to sender alone and may not necessarily reflect the opinions of TELLCOM ILETISIM. This e-mail has been scanned for all known computer viruses. ************************************************************************ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ