summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDaniel Klauer <daniel.klauer@gin.de>2020-06-30 13:38:53 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-30 23:03:02 +0100
commitacfda8e923fe73333da9353fc9cba8b35470a8ef (patch)
treea3da7cada14281586b9dcdff791b761b75cc9adf /meta
parent82693af8bbbad71155851e682f2d14832dd981b9 (diff)
downloadpoky-acfda8e923fe73333da9353fc9cba8b35470a8ef.tar.gz
uboot-sign: Refactor do_deploy prefunc to do_deploy_prepend
When inherited by the u-boot recipe (UBOOT_PN), uboot-sign.bbclass adds a concat_dtb step, which places additional files into ${DEPLOYDIR} before do_deploy. By turning this from a prefunc into a part of the normal do_deploy function, it becomes possible to use do_deploy[cleandirs] = "${DEPLOYDIR}" in the future, without deleting the files produced by concat_dtb. As before, care is taken to not interfere with the kernel's do_deploy definition, since concat_dtb was only needed for u-boot. (From OE-Core rev: 17619c1a41fa961afc317e4aafab9cdc4ff14a49) Signed-off-by: Daniel Klauer <daniel.klauer@gin.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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}