]> code.ossystems Code Review - openembedded-core.git/commitdiff
uboot-sign.bbclass: Remove tab indentations in python code
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 1 Jul 2019 03:49:36 +0000 (11:49 +0800)
committerArmin Kuster <akuster808@gmail.com>
Thu, 4 Jul 2019 19:29:54 +0000 (12:29 -0700)
Use 4 spaces to replace a tab.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/uboot-sign.bbclass

index 8ee904e7dfda79c8f043e61f21a39fab79f68626..afaf46fe1490bce4200238d77a2b42236d8be5c2 100644 (file)
@@ -80,16 +80,16 @@ do_concat_dtb () {
 }
 
 python () {
-       uboot_pn = d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'
-       if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == uboot_pn:
-               kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')
+    uboot_pn = d.getVar('PREFERRED_PROVIDER_u-boot') or 'u-boot'
+    if d.getVar('UBOOT_SIGN_ENABLE') == '1' and d.getVar('PN') == uboot_pn:
+        kernel_pn = d.getVar('PREFERRED_PROVIDER_virtual/kernel')
 
-               # u-boot.dtb and u-boot-nodtb.bin are deployed _before_ do_deploy
-               # Thus, do_deploy_setscene will also populate them in DEPLOY_IMAGE_DIR
-               bb.build.addtask('do_deploy_dtb', 'do_deploy', 'do_compile', d)
+        # u-boot.dtb and u-boot-nodtb.bin are deployed _before_ do_deploy
+        # Thus, do_deploy_setscene will also populate them in DEPLOY_IMAGE_DIR
+        bb.build.addtask('do_deploy_dtb', 'do_deploy', 'do_compile', d)
 
-               # do_concat_dtb is scheduled _before_ do_install as it overwrite the
-               # u-boot.bin in both DEPLOYDIR and DEPLOY_IMAGE_DIR.
-               bb.build.addtask('do_concat_dtb', 'do_install', None, d)
-               d.appendVarFlag('do_concat_dtb', 'depends', ' %s:do_assemble_fitimage' % kernel_pn)
+        # do_concat_dtb is scheduled _before_ do_install as it overwrite the
+        # u-boot.bin in both DEPLOYDIR and DEPLOY_IMAGE_DIR.
+        bb.build.addtask('do_concat_dtb', 'do_install', None, d)
+        d.appendVarFlag('do_concat_dtb', 'depends', ' %s:do_assemble_fitimage' % kernel_pn)
 }