summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2026-07-12 05:06:36 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2026-07-12 05:06:36 -0300
commit97b58d1c9e0f850441ac1f0df8c517729721e8c8 (patch)
treeda9edae80715378a83fa407f816443cc30b620d0 /classes
parent96b4f44279d022af8930f01d4a09c12df0be07e4 (diff)
downloadmeta-freescale-97b58d1c9e0f850441ac1f0df8c517729721e8c8.tar.gz
global: Replace tabs with spaces in task bodies
Convert leading-tab indentation to spaces in shell task bodies across the layer. Generated mechanically by oelint-adv's auto-fix for a single rule (oelint.tabs.notabs), isolated to one commit. Verified safe: every change is leading indentation of shell/BitBake code (no mid-line tabs, and none of the affected files contain heredocs where a tab would be significant), so there is no functional change. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/fsl-kernel-localversion.bbclass44
-rw-r--r--classes/fsl-u-boot-localversion.bbclass40
-rw-r--r--classes/image_types_fsl.bbclass6
-rw-r--r--classes/kernel-imximage.bbclass54
4 files changed, 72 insertions, 72 deletions
diff --git a/classes/fsl-kernel-localversion.bbclass b/classes/fsl-kernel-localversion.bbclass
index 479d113e8..9b44fe194 100644
--- a/classes/fsl-kernel-localversion.bbclass
+++ b/classes/fsl-kernel-localversion.bbclass
@@ -18,30 +18,30 @@ LINUX_VERSION_EXTENSION ?= "${@bb.utils.contains('SCMVERSION', 'y', '', '${LOCAL
18do_kernel_localversion[dirs] += "${S} ${B}" 18do_kernel_localversion[dirs] += "${S} ${B}"
19do_kernel_localversion() { 19do_kernel_localversion() {
20 20
21 # Fallback for recipes not able to use LINUX_VERSION_EXTENSION 21 # Fallback for recipes not able to use LINUX_VERSION_EXTENSION
22 if [ "${@bb.data.inherits_class('kernel-yocto', d)}" = "False" ]; then 22 if [ "${@bb.data.inherits_class('kernel-yocto', d)}" = "False" ]; then
23 echo 'CONFIG_LOCALVERSION="${LOCALVERSION}"' >> ${B}/.config 23 echo 'CONFIG_LOCALVERSION="${LOCALVERSION}"' >> ${B}/.config
24 fi 24 fi
25 25
26 if [ "${SCMVERSION}" = "y" ]; then 26 if [ "${SCMVERSION}" = "y" ]; then
27 # Add GIT revision to the local version 27 # Add GIT revision to the local version
28 if [ "${SRCREV}" = "INVALID" ]; then 28 if [ "${SRCREV}" = "INVALID" ]; then
29 hash=${SRCREV_machine} 29 hash=${SRCREV_machine}
30 else 30 else
31 hash=${SRCREV} 31 hash=${SRCREV}
32 fi 32 fi
33 if [ "$hash" = "AUTOINC" ]; then 33 if [ "$hash" = "AUTOINC" ]; then
34 branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD` 34 branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD`
35 head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null` 35 head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null`
36 else 36 else
37 head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null` 37 head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null`
38 fi 38 fi
39 patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null` 39 patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null`
40 printf "%s%s%s%s" +g $head +p $patches > ${S}/.scmversion 40 printf "%s%s%s%s" +g $head +p $patches > ${S}/.scmversion
41 41
42 sed -i -e "/CONFIG_LOCALVERSION_AUTO[ =]/d" ${B}/.config 42 sed -i -e "/CONFIG_LOCALVERSION_AUTO[ =]/d" ${B}/.config
43 echo "CONFIG_LOCALVERSION_AUTO=y" >> ${B}/.config 43 echo "CONFIG_LOCALVERSION_AUTO=y" >> ${B}/.config
44 fi 44 fi
45} 45}
46 46
47addtask kernel_localversion before do_configure after do_patch do_kernel_configme 47addtask kernel_localversion before do_configure after do_patch do_kernel_configme
diff --git a/classes/fsl-u-boot-localversion.bbclass b/classes/fsl-u-boot-localversion.bbclass
index df4ac5fbf..c867c9f85 100644
--- a/classes/fsl-u-boot-localversion.bbclass
+++ b/classes/fsl-u-boot-localversion.bbclass
@@ -15,24 +15,24 @@ LOCALVERSION ??= "+fslc"
15UBOOT_LOCALVERSION = "${LOCALVERSION}" 15UBOOT_LOCALVERSION = "${LOCALVERSION}"
16 16
17do_compile:prepend() { 17do_compile:prepend() {
18 if [ "${SCMVERSION}" = "y" ]; then 18 if [ "${SCMVERSION}" = "y" ]; then
19 # Add GIT revision to the local version 19 # Add GIT revision to the local version
20 if [ "${SRCREV}" = "INVALID" ]; then 20 if [ "${SRCREV}" = "INVALID" ]; then
21 hash=${SRCREV_machine} 21 hash=${SRCREV_machine}
22 else 22 else
23 hash=${SRCREV} 23 hash=${SRCREV}
24 fi 24 fi
25 if [ "$hash" = "AUTOINC" ]; then 25 if [ "$hash" = "AUTOINC" ]; then
26 branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD` 26 branch=`git --git-dir=${S}/.git symbolic-ref --short -q HEAD`
27 head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null` 27 head=`git --git-dir=${S}/.git rev-parse --verify --short origin/${branch} 2> /dev/null`
28 else 28 else
29 head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null` 29 head=`git --git-dir=${S}/.git rev-parse --verify --short $hash 2> /dev/null`
30 fi 30 fi
31 patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null` 31 patches=`git --git-dir=${S}/.git rev-list --count $head..HEAD 2> /dev/null`
32 printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${S}/.scmversion 32 printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${S}/.scmversion
33 printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${B}/.scmversion 33 printf "%s%s%s%s%s" "${UBOOT_LOCALVERSION}" +g $head +p $patches > ${B}/.scmversion
34 else 34 else
35 printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion 35 printf "%s" "${UBOOT_LOCALVERSION}" > ${S}/.scmversion
36 printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion 36 printf "%s" "${UBOOT_LOCALVERSION}" > ${B}/.scmversion
37 fi 37 fi
38} 38}
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 63a10f303..65b6a5dbd 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -38,7 +38,7 @@ do_image_wic[depends] += " \
38 38
39# We need to apply a fixup inside of the partition table 39# We need to apply a fixup inside of the partition table
40IMAGE_CMD:wic:append:mxs-generic-bsp() { 40IMAGE_CMD:wic:append:mxs-generic-bsp() {
41 # Change partition type for mxs processor family 41 # Change partition type for mxs processor family
42 bbnote "Setting partition type to 0x53 as required for mxs' SoC family." 42 bbnote "Setting partition type to 0x53 as required for mxs' SoC family."
43 echo -n S | dd of=$out.wic bs=1 count=1 seek=450 conv=notrunc 43 echo -n S | dd of=$out.wic bs=1 count=1 seek=450 conv=notrunc
44} 44}
diff --git a/classes/kernel-imximage.bbclass b/classes/kernel-imximage.bbclass
index d432ebb83..999840f69 100644
--- a/classes/kernel-imximage.bbclass
+++ b/classes/kernel-imximage.bbclass
@@ -22,39 +22,39 @@ DEPENDS:append = " u-boot-mkimage-native"
22IMXIMAGE_ENTRYPOINT ?= "${UBOOT_ENTRYPOINT}" 22IMXIMAGE_ENTRYPOINT ?= "${UBOOT_ENTRYPOINT}"
23 23
24imx_mkimage() { 24imx_mkimage() {
25 uboot-mkimage -n $1 -T imximage -e ${IMXIMAGE_ENTRYPOINT} -d $2 $2.imx 25 uboot-mkimage -n $1 -T imximage -e ${IMXIMAGE_ENTRYPOINT} -d $2 $2.imx
26} 26}
27 27
28gen_imximage() { 28gen_imximage() {
29 if [ -z "${IMXIMAGE_ENTRYPOINT}" ]; then 29 if [ -z "${IMXIMAGE_ENTRYPOINT}" ]; then
30 bbfatal "IMXIMAGE_ENTRYPOINT must have a valid value" 30 bbfatal "IMXIMAGE_ENTRYPOINT must have a valid value"
31 fi 31 fi
32 32
33 for DTB in ${KERNEL_DEVICETREE}; do 33 for DTB in ${KERNEL_DEVICETREE}; do
34 DTB=`normalize_dtb "${DTB}"` 34 DTB=`normalize_dtb "${DTB}"`
35 DTB_EXT=${DTB##*.} 35 DTB_EXT=${DTB##*.}
36 DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"` 36 DTB_BASE_NAME=`basename ${DTB} ."${DTB_EXT}"`
37 base_name="zImage-"${KERNEL_IMAGE_BASE_NAME} 37 base_name="zImage-"${KERNEL_IMAGE_BASE_NAME}
38 symlink_name="zImage-"${KERNEL_IMAGE_SYMLINK_NAME} 38 symlink_name="zImage-"${KERNEL_IMAGE_SYMLINK_NAME}
39 DTB_NAME=`echo ${base_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` 39 DTB_NAME=`echo ${base_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
40 DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` 40 DTB_SYMLINK_NAME=`echo ${symlink_name} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"`
41 for DCD in dcd-${DTB}.cfg dcd.cfg; do 41 for DCD in dcd-${DTB}.cfg dcd.cfg; do
42 if [ -e "${WORKDIR}/${DCD}" ]; then 42 if [ -e "${WORKDIR}/${DCD}" ]; then
43 if [ -e ${DEPLOYDIR}/${DTB_NAME}.${DTB_EXT}.bin ]; then 43 if [ -e ${DEPLOYDIR}/${DTB_NAME}.${DTB_EXT}.bin ]; then
44 imx_mkimage ${WORKDIR}/${DCD} ${DEPLOYDIR}/${DTB_NAME}.${DTB_EXT}.bin 44 imx_mkimage ${WORKDIR}/${DCD} ${DEPLOYDIR}/${DTB_NAME}.${DTB_EXT}.bin
45 ln -sf ${DTB_NAME}.${DTB_EXT}.bin.imx ${DEPLOYDIR}/$type-${DTB_BASE_NAME}.${DTB_EXT}.bin.imx 45 ln -sf ${DTB_NAME}.${DTB_EXT}.bin.imx ${DEPLOYDIR}/$type-${DTB_BASE_NAME}.${DTB_EXT}.bin.imx
46 fi 46 fi
47 47
48 if [ -e ${DEPLOYDIR}/zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin ]; then 48 if [ -e ${DEPLOYDIR}/zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin ]; then
49 imx_mkimage ${WORKDIR}/${DCD} ${DEPLOYDIR}/zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin 49 imx_mkimage ${WORKDIR}/${DCD} ${DEPLOYDIR}/zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin
50 ln -sf zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin.imx \ 50 ln -sf zImage-${INITRAMFS_BASE_NAME}-${DTB_BASE_NAME}.${DTB_EXT}.bin.imx \
51 ${DEPLOYDIR}/zImage-initramfs-${DTB_BASE_NAME}.${DTB_EXT}-${MACHINE}.bin.imx 51 ${DEPLOYDIR}/zImage-initramfs-${DTB_BASE_NAME}.${DTB_EXT}-${MACHINE}.bin.imx
52 fi 52 fi
53 fi 53 fi
54 done 54 done
55 done 55 done
56} 56}
57 57
58do_deploy:append() { 58do_deploy:append() {
59 gen_imximage 59 gen_imximage
60} 60}