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.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index fa598cff7f..3630042dbd 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -45,10 +45,11 @@ python __anonymous () {
45 45
46 for type in types.split(): 46 for type in types.split():
47 typelower = type.lower() 47 typelower = type.lower()
48 imagedest = d.getVar('KERNEL_IMAGEDEST')
48 49
49 d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower) 50 d.appendVar('PACKAGES', ' ' + 'kernel-image-' + typelower)
50 51
51 d.setVar('FILES_kernel-image-' + typelower, '/boot/' + type + '-${KERNEL_VERSION_NAME}') 52 d.setVar('FILES_kernel-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}')
52 53
53 d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower) 54 d.appendVar('RDEPENDS_kernel-image', ' ' + 'kernel-image-' + typelower)
54 55
@@ -56,9 +57,8 @@ python __anonymous () {
56 57
57 d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1') 58 d.setVar('ALLOW_EMPTY_kernel-image-' + typelower, '1')
58 59
59 imagedest = d.getVar('KERNEL_IMAGEDEST')
60 priority = d.getVar('KERNEL_PRIORITY') 60 priority = d.getVar('KERNEL_PRIORITY')
61 postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n' 61 postinst = '#!/bin/sh\n' + 'update-alternatives --install /' + imagedest + '/' + type + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} ' + priority + ' || true' + '\n'
62 d.setVar('pkg_postinst_kernel-image-' + typelower, postinst) 62 d.setVar('pkg_postinst_kernel-image-' + typelower, postinst)
63 63
64 postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n' 64 postrm = '#!/bin/sh\n' + 'update-alternatives --remove' + ' ' + type + ' ' + type + '-${KERNEL_VERSION_NAME} || true' + '\n'