diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-02-22 11:08:51 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-03-03 15:58:19 +0100 |
commit | 6b76526f69343d31838528769ffca8365a5638e0 (patch) | |
tree | c4e5b31c588e9eabef6d59a50f8180ecc95f1590 /platforms/image_kernel.in | |
parent | e8c3f9ba464bd81bb42bf07a277b463855b0cfbd (diff) | |
download | ptxdist-6b76526f69343d31838528769ffca8365a5638e0.tar.gz ptxdist-6b76526f69343d31838528769ffca8365a5638e0.tar.xz |
[kernel] prepare for "late" installation of kernel image
This patch moves the installation of the kernel image from the
targetinstall stage into the images stage.
This is a preparation for the "whole rootfs in initrd in kernel image"
use case, where first the root file system is build and bundled into a
cpio and then linked into the kernel image.
We define some new symbols:
- IMAGE_KERNEL:
It's automatically activated if the kernel is build. When active the
kernel is install to "images/linuximage".
- IMAGE_KERNEL_INSTALL_EARLY:
default "y". When active the kernel is copied to "images/linuximage"
during targetinstall.
- IMAGE_KERNEL_INSTALL_LATE:
If selected the kernel is installed later, during the "images" stage.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'platforms/image_kernel.in')
-rw-r--r-- | platforms/image_kernel.in | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/platforms/image_kernel.in b/platforms/image_kernel.in new file mode 100644 index 000000000..0ac048957 --- /dev/null +++ b/platforms/image_kernel.in @@ -0,0 +1,24 @@ +## SECTION=image + +menuconfig IMAGE_KERNEL + bool + prompt "Generate images/linuximage " + depends on KERNEL + help + Install the kernel to "platform-FOO/images/linuximage" + +if IMAGE_KERNEL + +config IMAGE_KERNEL_INSTALL_EARLY + bool + default !IMAGE_KERNEL_INSTALL_LATE + help + If activated the kernel is installed during the kernel's + "targetinstall" stage. + +config IMAGE_KERNEL_INSTALL_LATE + bool + help + Install kernel image during "images". + +endif |