* [PATCH] kernel-fitimage.bbclass: Deploy fitImage without rootfs
@ 2018-05-23 15:22 Vineeth Chowdary
2018-05-23 17:07 ` Manjukumar Harthikote Matha
0 siblings, 1 reply; 2+ messages in thread
From: Vineeth Chowdary @ 2018-05-23 15:22 UTC (permalink / raw)
To: manjukum, openembedded-core
This patch deploys fitimage without rootfs
(linux.bin + dtb). This fitimage can be used in
case of rootfs on sperate partition.
Signed-off-by: Vineeth Chowdary <vineeth.chowdary@xilinx.com>
---
meta/classes/kernel-fitimage.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass
index 50a91e1..7b93680 100644
--- a/meta/classes/kernel-fitimage.bbclass
+++ b/meta/classes/kernel-fitimage.bbclass
@@ -464,6 +464,9 @@ kernel_do_deploy_append() {
linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}"
linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
install -m 0644 linux.bin ${DEPLOYDIR}/${linux_bin_base_name}.bin
+ fitimage_base_name="fitImage-${PV}-${PR}-${MACHINE}-${DATETIME}"
+ fitimage_symlink_name=fitImage-${MACHINE}
+ install -m 0644 arch/${ARCH}/boot/fitImage ${DEPLOYDIR}/${fitimage_base_name}.bin
if [ -n "${INITRAMFS_IMAGE}" ]; then
echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..."
@@ -478,6 +481,7 @@ kernel_do_deploy_append() {
cd ${DEPLOYDIR}
ln -sf ${its_base_name}.its ${its_symlink_name}.its
ln -sf ${linux_bin_base_name}.bin ${linux_bin_symlink_name}.bin
+ ln -sf ${fitimage_base_name}.bin ${fitimage_symlink_name}.bin
if [ -n "${INITRAMFS_IMAGE}" ]; then
ln -sf ${its_initramfs_base_name}.its ${its_initramfs_symlink_name}.its
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel-fitimage.bbclass: Deploy fitImage without rootfs
2018-05-23 15:22 [PATCH] kernel-fitimage.bbclass: Deploy fitImage without rootfs Vineeth Chowdary
@ 2018-05-23 17:07 ` Manjukumar Harthikote Matha
0 siblings, 0 replies; 2+ messages in thread
From: Manjukumar Harthikote Matha @ 2018-05-23 17:07 UTC (permalink / raw)
To: Vineeth Karumanchi, openembedded-core
> -----Original Message-----
> From: Vineeth Chowdary [mailto:vineeth.chowdary@xilinx.com]
> Sent: Wednesday, May 23, 2018 8:22 AM
> To: Manjukumar Harthikote Matha <MANJUKUM@xilinx.com>; openembedded-
> core@lists.openembedded.org
> Cc: Vineeth Karumanchi <VINEETHC@xilinx.com>
> Subject: [OE-core][PATCH] kernel-fitimage.bbclass: Deploy fitImage without rootfs
>
> This patch deploys fitimage without rootfs (linux.bin + dtb). This fitimage can be
> used in case of rootfs on sperate partition.
>
> Signed-off-by: Vineeth Chowdary <vineeth.chowdary@xilinx.com>
> ---
> meta/classes/kernel-fitimage.bbclass | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-
> fitimage.bbclass
> index 50a91e1..7b93680 100644
> --- a/meta/classes/kernel-fitimage.bbclass
> +++ b/meta/classes/kernel-fitimage.bbclass
> @@ -464,6 +464,9 @@ kernel_do_deploy_append() {
> linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-
> ${MACHINE}-${DATETIME}"
> linux_bin_symlink_name=fitImage-linux.bin-${MACHINE}
> install -m 0644 linux.bin
> ${DEPLOYDIR}/${linux_bin_base_name}.bin
> + fitimage_base_name="fitImage-${PV}-${PR}-${MACHINE}-
> ${DATETIME}"
> + fitimage_symlink_name=fitImage-${MACHINE}
> + install -m 0644 arch/${ARCH}/boot/fitImage
> +${DEPLOYDIR}/${fitimage_base_name}.bin
>
> if [ -n "${INITRAMFS_IMAGE}" ]; then
> echo "Copying fit-image-${INITRAMFS_IMAGE}.its source
> file..."
> @@ -478,6 +481,7 @@ kernel_do_deploy_append() {
> cd ${DEPLOYDIR}
> ln -sf ${its_base_name}.its ${its_symlink_name}.its
> ln -sf ${linux_bin_base_name}.bin ${linux_bin_symlink_name}.bin
> + ln -sf ${fitimage_base_name}.bin ${fitimage_symlink_name}.bin
>
> if [ -n "${INITRAMFS_IMAGE}" ]; then
> ln -sf ${its_initramfs_base_name}.its
> ${its_initramfs_symlink_name}.its
> --
Acked-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Thanks,
Manju
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-23 18:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-23 15:22 [PATCH] kernel-fitimage.bbclass: Deploy fitImage without rootfs Vineeth Chowdary
2018-05-23 17:07 ` Manjukumar Harthikote Matha
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.