linux-dreambox-3.4: adjust the initramfs image's name
[opendreambox.git] / meta-dreambox / recipes-kernel / linux / linux-extra-image.inc
1 do_install_append() {
2         if [ -n "${KERNEL_EXTRA_IMAGETYPE}" ] && [ "${KERNEL_OUTPUT}" != "${KERNEL_EXTRA_OUTPUT}" ] && [ -f "${KERNEL_EXTRA_OUTPUT}" ]; then
3                 if [ ${KERNEL_EXTRA_INSTALL} = "1" ]; then
4                         install -m 0644 ${KERNEL_EXTRA_OUTPUT} ${D}/${KERNEL_IMAGEDEST}/${KERNEL_EXTRA_IMAGETYPE}-${KERNEL_VERSION}
5                 fi
6         fi
7 }
8
9 KERNEL_EXTRA_IMAGETYPE ?= "${KERNEL_ALT_IMAGETYPE}"
10 KERNEL_EXTRA_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_EXTRA_IMAGETYPE}"
11 KERNEL_EXTRA_IMAGE_BASE_NAME ?= "${KERNEL_EXTRA_IMAGETYPE}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
12 KERNEL_EXTRA_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
13 KERNEL_EXTRA_IMAGE_SYMLINK_NAME ?= "${KERNEL_EXTRA_IMAGETYPE}-${MACHINE}"
14 KERNEL_EXTRA_INSTALL ?= "0"
15
16 do_deploy_append() {
17         if [ -n "${KERNEL_EXTRA_IMAGETYPE}" ] && [ "${KERNEL_OUTPUT}" != "${KERNEL_EXTRA_OUTPUT}" ] && [ -f "${KERNEL_EXTRA_OUTPUT}" ]; then
18                 install -m 0644 ${KERNEL_EXTRA_OUTPUT} ${DEPLOYDIR}/${KERNEL_EXTRA_IMAGE_BASE_NAME}.bin
19                 ln -sf ${KERNEL_EXTRA_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_EXTRA_IMAGE_SYMLINK_NAME}.bin
20         fi
21 }