summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2013-03-04 12:26:10 -0500
committerDenys Dmytriyenko <denys@ti.com>2013-03-04 12:26:10 -0500
commit79e90aebdbe897f5686cf86e874cf702cea5f027 (patch)
tree2218fefbbbf0070a37dde8c30ba97f5cef924887
parent85120ef4cbb4642a079cd6db0f78001a85f66611 (diff)
downloadmeta-ti-79e90aebdbe897f5686cf86e874cf702cea5f027.tar.gz
multi-kernel: match oe-core for MODULE_IMAGE_BASE_NAME, set it conditionally
Thanks to Robert P. J. Day, MODULE_IMAGE_BASE_NAME was added to oe-core - only ~3.5 years after it got into Classic-OE and with a typo of MODULE_*, not plural MODULES_*, so match it here and set conditionally. Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-kernel/linux/multi-kernel.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-kernel/linux/multi-kernel.inc b/recipes-kernel/linux/multi-kernel.inc
index 9a0c090b..e696c8be 100644
--- a/recipes-kernel/linux/multi-kernel.inc
+++ b/recipes-kernel/linux/multi-kernel.inc
@@ -26,7 +26,7 @@ SRC_URI += " \
26 file://configs " 26 file://configs "
27 27
28MULTI_CONFIG_BASE_SUFFIX = "multi-config-" 28MULTI_CONFIG_BASE_SUFFIX = "multi-config-"
29MODULES_IMAGE_BASE_NAME = "modules-${PV}-${PR}-${MACHINE}" 29MODULE_IMAGE_BASE_NAME ?= "modules-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
30 30
31do_preparekernel () { 31do_preparekernel () {
32 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE 32 unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
@@ -76,7 +76,7 @@ do_compileconfigs () {
76 install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin 76 install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin
77 77
78 if [ -d "${D}/lib" ]; then 78 if [ -d "${D}/lib" ]; then
79 tar --owner=root --group=root -cvzf ${DEPLOY_DIR_IMAGE}/${MODULES_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz -C ${D} lib 79 tar --owner=root --group=root -cvzf ${DEPLOY_DIR_IMAGE}/${MODULE_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz -C ${D} lib
80 fi 80 fi
81 81
82 # Install the final config alongside the images 82 # Install the final config alongside the images
@@ -87,7 +87,7 @@ do_compileconfigs () {
87 rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin 87 rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin
88 ln -sf ${KERNEL_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin ${KERNEL_IMAGE_SYMLINK_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin 88 ln -sf ${KERNEL_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin ${KERNEL_IMAGE_SYMLINK_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).bin
89 rm -f modules-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz 89 rm -f modules-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz
90 ln -sf ${MODULES_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz modules-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz 90 ln -sf ${MODULE_IMAGE_BASE_NAME}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz modules-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).tgz
91 rm -f config-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config 91 rm -f config-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config
92 ln -sf config-${PV}-${PR}-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config config-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config 92 ln -sf config-${PV}-${PR}-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config config-${MACHINE}.${MULTI_CONFIG_BASE_SUFFIX}$(basename $config).config
93 93
@@ -115,7 +115,7 @@ do_deploy_append () {
115 ln -s config-${PV}-${PR}-${MACHINE}.config config-${MACHINE}.config 115 ln -s config-${PV}-${PR}-${MACHINE}.config config-${MACHINE}.config
116 116
117 rm -f modules-${MACHINE}.tgz 117 rm -f modules-${MACHINE}.tgz
118 ln -sf ${MODULES_IMAGE_BASE_NAME}.tgz modules-${MACHINE}.tgz 118 ln -sf ${MODULE_IMAGE_BASE_NAME}.tgz modules-${MACHINE}.tgz
119 119
120} 120}
121 121