meta-bsp/dm7080: merge into meta-dreambox
[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                 install -m 0644 ${KERNEL_EXTRA_OUTPUT} ${D}${KERNEL_SRC_PATH}/${KERNEL_EXTRA_IMAGETYPE}
7         fi
8 }
9
10 KERNEL_EXTRA_IMAGETYPE ?= "${KERNEL_ALT_IMAGETYPE}"
11 KERNEL_EXTRA_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_EXTRA_IMAGETYPE}"
12 KERNEL_EXTRA_IMAGE_BASE_NAME ?= "${KERNEL_EXTRA_IMAGETYPE}-${PKGE}-${PKGV}-${PKGR}-${MACHINE}-${DATETIME}"
13 KERNEL_EXTRA_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
14 KERNEL_EXTRA_IMAGE_SYMLINK_NAME ?= "${KERNEL_EXTRA_IMAGETYPE}-${MACHINE}"
15 KERNEL_EXTRA_INSTALL ?= "0"
16
17 do_deploy_append() {
18         if [ -n "${KERNEL_EXTRA_IMAGETYPE}" ] && [ "${KERNEL_OUTPUT}" != "${KERNEL_EXTRA_OUTPUT}" ] && [ -f "${KERNEL_EXTRA_OUTPUT}" ]; then
19                 install -m 0644 ${KERNEL_EXTRA_OUTPUT} ${DEPLOYDIR}/${KERNEL_EXTRA_IMAGE_BASE_NAME}.bin
20                 ln -sf ${KERNEL_EXTRA_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_EXTRA_IMAGE_SYMLINK_NAME}.bin
21         fi
22 }