summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@siemens.com>2024-07-15 16:10:38 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-26 12:28:42 +0100
commit1f1150e0edd30b5ab6f66bb79919c607c2c36889 (patch)
tree0d7694663d2e30eb2ac52ec9c8e36d7aa94d4447
parent138a1990e03183eae96a4c2c2f3daced329e7eba (diff)
downloadpoky-1f1150e0edd30b5ab6f66bb79919c607c2c36889.tar.gz
kernel-fitimage: fix intentation
white space changes only. - python part should be 4 spaces, not 8. - use tabs for shell (From OE-Core rev: 000079a973e8c97d496ca721259437880a7ea70d) Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/kernel-fitimage.bbclass64
1 files changed, 32 insertions, 32 deletions
diff --git a/meta/classes-recipe/kernel-fitimage.bbclass b/meta/classes-recipe/kernel-fitimage.bbclass
index 6e6898e5f6..ce52297aec 100644
--- a/meta/classes-recipe/kernel-fitimage.bbclass
+++ b/meta/classes-recipe/kernel-fitimage.bbclass
@@ -29,27 +29,27 @@ KERNEL_IMAGETYPE_REPLACEMENT ?= "${@get_fit_replacement_type(d)}"
29DEPENDS:append = " ${@'u-boot-tools-native dtc-native' if 'fitImage' in (d.getVar('KERNEL_IMAGETYPES') or '').split() else ''}" 29DEPENDS:append = " ${@'u-boot-tools-native dtc-native' if 'fitImage' in (d.getVar('KERNEL_IMAGETYPES') or '').split() else ''}"
30 30
31python __anonymous () { 31python __anonymous () {
32 # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal 32 # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal
33 # to kernel.bbclass . We have to override it, since we pack zImage 33 # to kernel.bbclass . We have to override it, since we pack zImage
34 # (at least for now) into the fitImage . 34 # (at least for now) into the fitImage .
35 typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or "" 35 typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE") or ""
36 if 'fitImage' in typeformake.split(): 36 if 'fitImage' in typeformake.split():
37 d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('fitImage', d.getVar('KERNEL_IMAGETYPE_REPLACEMENT'))) 37 d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('fitImage', d.getVar('KERNEL_IMAGETYPE_REPLACEMENT')))
38 38
39 image = d.getVar('INITRAMFS_IMAGE') 39 image = d.getVar('INITRAMFS_IMAGE')
40 if image: 40 if image:
41 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') 41 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete')
42 42
43 ubootenv = d.getVar('UBOOT_ENV') 43 ubootenv = d.getVar('UBOOT_ENV')
44 if ubootenv: 44 if ubootenv:
45 d.appendVarFlag('do_assemble_fitimage', 'depends', ' virtual/bootloader:do_populate_sysroot') 45 d.appendVarFlag('do_assemble_fitimage', 'depends', ' virtual/bootloader:do_populate_sysroot')
46 46
47 #check if there are any dtb providers 47 #check if there are any dtb providers
48 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb") 48 providerdtb = d.getVar("PREFERRED_PROVIDER_virtual/dtb")
49 if providerdtb: 49 if providerdtb:
50 d.appendVarFlag('do_assemble_fitimage', 'depends', ' virtual/dtb:do_populate_sysroot') 50 d.appendVarFlag('do_assemble_fitimage', 'depends', ' virtual/dtb:do_populate_sysroot')
51 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' virtual/dtb:do_populate_sysroot') 51 d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' virtual/dtb:do_populate_sysroot')
52 d.setVar('EXTERNAL_KERNEL_DEVICETREE', "${RECIPE_SYSROOT}/boot/devicetree") 52 d.setVar('EXTERNAL_KERNEL_DEVICETREE', "${RECIPE_SYSROOT}/boot/devicetree")
53} 53}
54 54
55 55
@@ -480,13 +480,13 @@ fitimage_emit_section_config() {
480 # default node is selected based on dtb ID if it is present, 480 # default node is selected based on dtb ID if it is present,
481 # otherwise its selected based on kernel ID 481 # otherwise its selected based on kernel ID
482 if [ -n "$dtb_image" ]; then 482 if [ -n "$dtb_image" ]; then
483 # Select default node as user specified dtb when 483 # Select default node as user specified dtb when
484 # multiple dtb exists. 484 # multiple dtb exists.
485 if [ -n "$default_dtb_image" ]; then 485 if [ -n "$default_dtb_image" ]; then
486 default_line="default = \"${FIT_CONF_PREFIX}$default_dtb_image\";" 486 default_line="default = \"${FIT_CONF_PREFIX}$default_dtb_image\";"
487 else 487 else
488 default_line="default = \"${FIT_CONF_PREFIX}$dtb_image\";" 488 default_line="default = \"${FIT_CONF_PREFIX}$dtb_image\";"
489 fi 489 fi
490 else 490 else
491 default_line="default = \"${FIT_CONF_PREFIX}$kernel_id\";" 491 default_line="default = \"${FIT_CONF_PREFIX}$kernel_id\";"
492 fi 492 fi
@@ -605,9 +605,9 @@ fitimage_assemble() {
605 DTB_PATH="${KERNEL_OUTPUT_DIR}/$DTB" 605 DTB_PATH="${KERNEL_OUTPUT_DIR}/$DTB"
606 fi 606 fi
607 607
608 # Strip off the path component from the filename 608 # Strip off the path component from the filename
609 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then 609 if "${@'false' if oe.types.boolean(d.getVar('KERNEL_DTBVENDORED')) else 'true'}"; then
610 DTB=`basename $DTB` 610 DTB=`basename $DTB`
611 fi 611 fi
612 612
613 # Set the default dtb image if it exists in the devicetree. 613 # Set the default dtb image if it exists in the devicetree.
@@ -715,8 +715,8 @@ fitimage_assemble() {
715 # kernel-fitimage.bbclass currently only supports a single kernel (no less or 715 # kernel-fitimage.bbclass currently only supports a single kernel (no less or
716 # more) to be added to the FIT image along with 0 or more device trees and 716 # more) to be added to the FIT image along with 0 or more device trees and
717 # 0 or 1 ramdisk. 717 # 0 or 1 ramdisk.
718 # It is also possible to include an initramfs bundle (kernel and rootfs in one binary) 718 # It is also possible to include an initramfs bundle (kernel and rootfs in one binary)
719 # When the initramfs bundle is used ramdisk is disabled. 719 # When the initramfs bundle is used ramdisk is disabled.
720 # If a device tree is to be part of the FIT image, then select 720 # If a device tree is to be part of the FIT image, then select
721 # the default configuration to be used is based on the dtbcount. If there is 721 # the default configuration to be used is based on the dtbcount. If there is
722 # no dtb present than select the default configuation to be based on 722 # no dtb present than select the default configuation to be based on