[Buildroot] [PATCH 03/28] linux: make it possible to install the kernel in /boot

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Mon Jul 4 21:48:43 UTC 2011


Thomas, All,

On Monday 04 July 2011 23:33:20 Thomas Petazzoni wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  linux/Config.in |    7 +++++++
>  linux/linux.mk  |    3 +++
>  2 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/linux/Config.in b/linux/Config.in
> index 1f1a69c..c9229a5 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -153,6 +153,13 @@ config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
>  	  Specify the kernel make target to build the kernel that you
>  	  need.
>  
> +config BR2_LINUX_KERNEL_INSTALL_TARGET
> +	bool "Install kernel image to /boot in target"
> +	help
> +	  Select this option to have the kernel image installed to
> +	  /boot in the target root filesystem, as is typically done on
> +	  x86/x86_64 systems.
> +
>  endif # BR2_LINUX_KERNEL
>  
>  endmenu
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 43ca87b..2bb32cb 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -158,6 +158,9 @@ $(LINUX26_DIR)/.stamp_compiled: $(LINUX26_DIR)/.stamp_configured $(LINUX26_DIR)/
>  $(LINUX26_DIR)/.stamp_installed: $(LINUX26_DIR)/.stamp_compiled
>  	@$(call MESSAGE,"Installing kernel")
>  	cp $(LINUX26_IMAGE_PATH) $(BINARIES_DIR)
> +ifeq ($(BR2_LINUX_KERNEL_INSTALL_TARGET),y)
> +	install -m 0644 -D $(LINUX26_IMAGE_PATH) $(TARGET_DIR)/boot/$(LINUX26_IMAGE_NAME)
> +endif

If we install the kernel in /boot, why do we stil install it in
${BINARIES_DIR} ?

It can only be confusing to have the kernel image in two places.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list