summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass24
1 files changed, 12 insertions, 12 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index ba13e6784d..4974507a94 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -134,25 +134,14 @@ do_bundle_initramfs () {
134 echo "There is kernel image bundled with initramfs: ${B}/${KERNEL_OUTPUT}.initramfs" 134 echo "There is kernel image bundled with initramfs: ${B}/${KERNEL_OUTPUT}.initramfs"
135 install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${D}/boot/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin 135 install -m 0644 ${B}/${KERNEL_OUTPUT}.initramfs ${D}/boot/${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin
136 echo "${B}/${KERNEL_OUTPUT}.initramfs" 136 echo "${B}/${KERNEL_OUTPUT}.initramfs"
137 cd ${B}
138 # Update deploy directory
139 if [ -e "${KERNEL_OUTPUT}.initramfs" ]; then
140 echo "Copying deploy kernel-initramfs image and setting up links..."
141 initramfs_base_name=${INITRAMFS_BASE_NAME}
142 initramfs_symlink_name=${KERNEL_IMAGETYPE}-initramfs-${MACHINE}
143 install -m 0644 ${KERNEL_OUTPUT}.initramfs ${DEPLOY_DIR_IMAGE}/${initramfs_base_name}.bin
144 cd ${DEPLOY_DIR_IMAGE}
145 ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
146 fi
147 fi 137 fi
148} 138}
149do_bundle_initramfs[nostamp] = "1"
150 139
151python do_devshell_prepend () { 140python do_devshell_prepend () {
152 os.environ["LDFLAGS"] = '' 141 os.environ["LDFLAGS"] = ''
153} 142}
154 143
155addtask bundle_initramfs after do_compile before do_build 144addtask bundle_initramfs after do_install before do_deploy
156 145
157kernel_do_compile() { 146kernel_do_compile() {
158 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE 147 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
@@ -479,6 +468,17 @@ kernel_do_deploy() {
479 ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_IMAGETYPE} 468 ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${DEPLOYDIR}/${KERNEL_IMAGETYPE}
480 469
481 cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt 470 cp ${COREBASE}/meta/files/deploydir_readme.txt ${DEPLOYDIR}/README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
471
472 cd ${B}
473 # Update deploy directory
474 if [ -e "${KERNEL_OUTPUT}.initramfs" ]; then
475 echo "Copying deploy kernel-initramfs image and setting up links..."
476 initramfs_base_name=${INITRAMFS_BASE_NAME}
477 initramfs_symlink_name=${KERNEL_IMAGETYPE}-initramfs-${MACHINE}
478 install -m 0644 ${KERNEL_OUTPUT}.initramfs ${DEPLOYDIR}/${initramfs_base_name}.bin
479 cd ${DEPLOYDIR}
480 ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
481 fi
482} 482}
483do_deploy[dirs] = "${DEPLOYDIR} ${B}" 483do_deploy[dirs] = "${DEPLOYDIR} ${B}"
484do_deploy[prefuncs] += "package_get_auto_pr" 484do_deploy[prefuncs] += "package_get_auto_pr"