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 <[email protected]> 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 [email protected]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Regards,
Peter Teoh

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to