summaryrefslogtreecommitdiffstats
path: root/meta/classes/uboot-sign.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/uboot-sign.bbclass')
-rw-r--r--meta/classes/uboot-sign.bbclass11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/uboot-sign.bbclass b/meta/classes/uboot-sign.bbclass
index 982ed46d01..713196df41 100644
--- a/meta/classes/uboot-sign.bbclass
+++ b/meta/classes/uboot-sign.bbclass
@@ -117,15 +117,16 @@ do_install_append() {
117 fi 117 fi
118} 118}
119 119
120do_deploy_prepend_pn-${UBOOT_PN}() {
121 if [ "${UBOOT_SIGN_ENABLE}" = "1" -a -n "${UBOOT_DTB_BINARY}" ]; then
122 concat_dtb
123 fi
124}
125
120python () { 126python () {
121 if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'): 127 if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == d.getVar('UBOOT_PN') and d.getVar('UBOOT_DTB_BINARY'):
122 kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel') 128 kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')
123 129
124 # Make "bitbake u-boot -cdeploy" deploys the signed u-boot.dtb 130 # Make "bitbake u-boot -cdeploy" deploys the signed u-boot.dtb
125 d.appendVarFlag('do_deploy', 'depends', ' %s:do_deploy' % kernel_pn) 131 d.appendVarFlag('do_deploy', 'depends', ' %s:do_deploy' % kernel_pn)
126
127 # kernerl's do_deploy is a litle special, so we can't use
128 # do_deploy_append, otherwise it would override
129 # kernel_do_deploy.
130 d.appendVarFlag('do_deploy', 'prefuncs', ' concat_dtb')
131} 132}