meta-freescale/classes
Max Krummenacher 16a356ef0d fsl-kernel-localversion: fix SRCREV_machine and AUTOREV use cases
Depending on how one uses the Yocto kernel classes the kernels hash
is defined in either "SRCREV_machine" or "SRCREV". If "SRCREV_machine"
is in use, "SRCREV" stays at its bitbake default "INVALID".

If the "SRCREV_machine" or "SRCREV" is set to "AUTOREV" that value is
replaced by "AUTOINC".

If using "SRCREV_machine" and/or "AUTOREV" do_kernel_localversion fails

| run.do_kernel_localversion:158 exit 128 from 'head=`git --git-dir=.../.git rev-parse --verify --short INVALID 2> /dev/null`'

Cope with both use cases.

Fixes: 41537394 ("classes: make localversion classes deterministic")
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2023-12-04 15:16:51 +01:00
..
fsl-dynamic-packagearch.bbclass classes/fsl-dynamic-packagearch: Add multilib support 2022-09-16 19:50:13 +00:00
fsl-eula-unpack.bbclass EULA,SCR: Update for NXP release 6.1.36-2.1.0 2023-10-30 14:29:11 -07:00
fsl-kernel-localversion.bbclass fsl-kernel-localversion: fix SRCREV_machine and AUTOREV use cases 2023-12-04 15:16:51 +01:00
fsl-u-boot-localversion.bbclass classes: make localversion classes deterministic 2023-11-28 12:05:41 +01:00
fsl-vivante-kernel-driver-handler.bbclass fsl-vivante-kernel-driver-handler.bbclass: Fix multilib support 2022-01-25 09:55:52 -03:00
image_populate_mfgtool.bbclass classes/image_populate_mfgtool: fix basehash value change 2023-04-14 16:10:42 -03:00
image_types_fsl.bbclass image_types_fsl.bbclass: Drop use of IMAGE_NAME_SUFFIX 2023-11-09 19:49:03 -08:00
imx-boot-container.bbclass imx-boot-container: Create only one imx-boot 2023-09-22 17:08:10 -03:00
kernel-imximage.bbclass layer: Convert to new override syntax 2021-08-12 10:08:24 -07:00
machine-overrides-extender.bbclass Ensure we fail if old SoC overrides are in use 2022-03-03 10:41:35 -03:00
mfgtool-initramfs-image.bbclass mfgtool-initramfs-image: IMAGE_NAME_SUFFIX should by empty for initramfs 2023-07-05 17:06:25 +00:00
qoriq_build_64bit_kernel.bbclass layer: Convert to new override syntax 2021-08-12 10:08:24 -07:00
use-imx-headers.bbclass Generalize overrides subsystem for NXP and Mainline support 2022-02-21 20:06:28 -03:00
use-imx-security-controller-firmware.bbclass imx-base.inc: Implement generic SOC revision design 2023-08-21 11:48:06 -07:00
uuu_bootloader_tag.bbclass imx-boot,u-boot-imx: Add bootloader image size to SD card image 2022-01-19 15:50:12 -06:00