summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2012-11-20 17:19:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-19 17:54:51 +0000
commit79f31adabf1b90d27832b65a56734464370dba9c (patch)
tree3f4f2a63a39636c91786459470dedf03ae6e4f01 /meta/classes/kernel.bbclass
parente3ce4737e565ab20eaa7168b1522391def3d5513 (diff)
downloadpoky-79f31adabf1b90d27832b65a56734464370dba9c.tar.gz
kernel.bbclass: use the same versioning schema for modules.tgz and provide link to latest
* so it will work look KERNEL_IMAGE * also we were recreating modules.tgz with every kernel build, but overwritting the same output file (From OE-Core rev: 73f242a61f913a0b0cd88265cd9ff6bcf3924623) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 8e13662382..c5e054d3ce 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -497,6 +497,10 @@ KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PV}-${PR}-${MACHINE}-${DATETIME
497# Don't include the DATETIME variable in the sstate package signatures 497# Don't include the DATETIME variable in the sstate package signatures
498KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME" 498KERNEL_IMAGE_BASE_NAME[vardepsexclude] = "DATETIME"
499KERNEL_IMAGE_SYMLINK_NAME ?= "${KERNEL_IMAGETYPE}-${MACHINE}" 499KERNEL_IMAGE_SYMLINK_NAME ?= "${KERNEL_IMAGETYPE}-${MACHINE}"
500MODULE_TARBALL_BASE_NAME ?= "modules-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}.tgz"
501# Don't include the DATETIME variable in the sstate package signatures
502MODULE_TARBALL_BASE_NAME[vardepsexclude] = "DATETIME"
503MODULE_TARBALL_SYMLINK_NAME ?= "modules-${MACHINE}.tgz"
500 504
501do_uboot_mkimage() { 505do_uboot_mkimage() {
502 if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then 506 if test "x${KERNEL_IMAGETYPE}" = "xuImage" ; then
@@ -526,7 +530,8 @@ addtask uboot_mkimage before do_install after do_compile
526kernel_do_deploy() { 530kernel_do_deploy() {
527 install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin 531 install -m 0644 ${KERNEL_OUTPUT} ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.bin
528 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then 532 if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
529 tar -cvzf ${DEPLOYDIR}/modules-${KERNEL_VERSION}-${PR}-${MACHINE}.tgz -C ${D} lib 533 tar -cvzf ${DEPLOYDIR}/${MODULE_TARBALL_BASE_NAME} -C ${D} lib
534 ln -sf ${MODULE_TARBALL_BASE_NAME}.bin ${MODULE_TARBALL_SYMLINK_NAME}
530 fi 535 fi
531 536
532 cd ${DEPLOYDIR} 537 cd ${DEPLOYDIR}