diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-03-30 09:59:58 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-01 08:14:58 +0100 |
commit | c09a0631b5b9d9d2a271771918fb003f5a9700f6 (patch) | |
tree | 1fb8f598ad2556ca53406593e1f8de9087cb667d /meta/classes/kernel-fitimage.bbclass | |
parent | 63c605b8413a8cd1f29926d3e604b14a9c275ca2 (diff) | |
download | poky-c09a0631b5b9d9d2a271771918fb003f5a9700f6.tar.gz |
kernel.bbclass: introduce INITRAMFS_IMAGE_NAME
It defaults to ${INITRAMFS_IMAGE}-${MACHINE} if INITRAMFS_IMAGE is not
empty.
This allows the end users to be able to override the initramfs image
name with a customized value.
(From OE-Core rev: e788fb2b894852f71b1c545abde71b45b9f230dc)
Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
-rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 8ae2eb6df5..2630b47316 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass | |||
@@ -370,7 +370,7 @@ fitimage_assemble() { | |||
370 | if [ "x${ramdiskcount}" = "x1" ] ; then | 370 | if [ "x${ramdiskcount}" = "x1" ] ; then |
371 | # Find and use the first initramfs image archive type we find | 371 | # Find and use the first initramfs image archive type we find |
372 | for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz cpio; do | 372 | for img in cpio.lz4 cpio.lzo cpio.lzma cpio.xz cpio.gz cpio; do |
373 | initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.${img}" | 373 | initramfs_path="${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE_NAME}.${img}" |
374 | echo "Using $initramfs_path" | 374 | echo "Using $initramfs_path" |
375 | if [ -e "${initramfs_path}" ]; then | 375 | if [ -e "${initramfs_path}" ]; then |
376 | fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" "${initramfs_path}" | 376 | fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" "${initramfs_path}" |
@@ -459,11 +459,11 @@ kernel_do_deploy_append() { | |||
459 | 459 | ||
460 | if [ -n "${INITRAMFS_IMAGE}" ]; then | 460 | if [ -n "${INITRAMFS_IMAGE}" ]; then |
461 | echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..." | 461 | echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..." |
462 | its_initramfs_base_name="fitImage-its-${INITRAMFS_IMAGE}-${PV}-${PR}-${MACHINE}-${DATETIME}" | 462 | its_initramfs_base_name="fitImage-its-${INITRAMFS_IMAGE_NAME}-${PV}-${PR}-${DATETIME}" |
463 | its_initramfs_symlink_name=fitImage-its-${INITRAMFS_IMAGE}-${MACHINE} | 463 | its_initramfs_symlink_name=fitImage-its-${INITRAMFS_IMAGE_NAME} |
464 | install -m 0644 fit-image-${INITRAMFS_IMAGE}.its ${DEPLOYDIR}/${its_initramfs_base_name}.its | 464 | install -m 0644 fit-image-${INITRAMFS_IMAGE}.its ${DEPLOYDIR}/${its_initramfs_base_name}.its |
465 | fit_initramfs_base_name="fitImage-${INITRAMFS_IMAGE}-${PV}-${PR}-${MACHINE}-${DATETIME}" | 465 | fit_initramfs_base_name="fitImage-${INITRAMFS_IMAGE_NAME}-${PV}-${PR}-${DATETIME}" |
466 | fit_initramfs_symlink_name=fitImage-${INITRAMFS_IMAGE}-${MACHINE} | 466 | fit_initramfs_symlink_name=fitImage-${INITRAMFS_IMAGE_NAME} |
467 | install -m 0644 arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} ${DEPLOYDIR}/${fit_initramfs_base_name}.bin | 467 | install -m 0644 arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} ${DEPLOYDIR}/${fit_initramfs_base_name}.bin |
468 | fi | 468 | fi |
469 | 469 | ||