[Buildroot] [PATCH 01/10] New, simpler, infrastructure for building the Linux kernel

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Jun 20 19:22:19 UTC 2010


Hello,

On Sun, 20 Jun 2010 19:51:23 +0200
Peter Korsgaard <jacmet at uclibc.org> wrote:

> Ok - Notice that there isn't anything stopping people from using a -rc
> version (and there shouldn't be) - E.G.
> 
> http://www.kernel.org/pub/linux/kernel/v2.6/testing/linux-2.6.35-rc3.tar.bz2

Nothing prevents people from doing this, but in that case they have to
use the "Custom tarball" option and give the full URL.

The "Custom version" only works with versions that are available
directly in http://www.kernel.org/pub/linux/kernel/v2.6/.

>  Thomas> Isn't this what I'm doing already ?
> 
> No, you were doing:
> 
> +# Compilation
> +$(LINUX26_DIR)/.stamp_compiled: $(LINUX26_DIR)/.stamp_configured
> +	@$(call MESSAGE,"Compiling kernel")
> +	$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D)
> +ifeq ($(BR2_LINUX_KERNEL_UIMAGE),y)
> +	$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(@D) uImage
> +endif
> +	$(Q)touch $@
> 
> E.G. just make (followed by make uImage if uImage is selected).
> 
> I guess we should do:
> 
> make <format>
> if modules:
>    make modules
>    make modules-install

I have separate build and install steps. Would something like the
following be OK for you ?

 * build step
	make <format>
	if modules:
		make modules

 * install step
	cp .... $(BINARIES_DIR)
	if modules:
		make modules_install

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list