[Buildroot] [PATCH 5/5] buildroot: initramfs: Generate vmImage without builtin initramfs rootfs.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Aug 11 18:13:35 UTC 2012


Le Tue, 7 Aug 2012 17:09:37 +0800,
Sonic Zhang <sonic.adi at gmail.com> a écrit :

> From: Sonic Zhang <sonic.zhang at analog.com>
> 
> This is for developer's convenience when debugging via initramfs uImage.
> 
> Signed-off-by: Sonic Zhang <sonic.zhang at analog.com>

What is the problem being solved here? Could you expand a bit on the
"why" this is needed? When you make changes to the root filesystem and
do "make", the initramfs is regenerated, and the kernel image is
regenerated as well with the current Buildroot, so I'm not sure what
this patch is solving.

> +	$(if $(BR2_TARGET_ROOTFS_INITRAMFS),
> +		cp $(LINUX_IMAGE_PATH) $(KERNEL_ARCH_PATH)/boot/vmImage)

I'm confused. What is this vmImage thing that you are copying back into
the kernel tree here...

>  define LINUX_INSTALL_IMAGES_CMDS
>  	cp $(LINUX_IMAGE_PATH) $(BINARIES_DIR)
> +	$(if $(BR2_TARGET_ROOTFS_INITRAMFS),
> +		cp $(KERNEL_ARCH_PATH)/boot/vmImage $(BINARIES_DIR))

and installing to output/images here?

Thanks,

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