summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/imager/direct.py
diff options
context:
space:
mode:
authorRuss Dill <russ.dill@nikolamotor.com>2022-04-20 20:58:19 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-04 13:07:33 +0100
commit6adc3aa634a152a10355aa0e12105fd919f420f6 (patch)
treed4766c8643d8ce1b1c622d88bc977a8e2c51983b /scripts/lib/wic/plugins/imager/direct.py
parentef36e735aea8752e92238386c8432cbba104f9d7 (diff)
downloadpoky-6adc3aa634a152a10355aa0e12105fd919f420f6.tar.gz
kernel-yocto.bbclass: Fixup do_kernel_configcheck usage of KMETA
The do_kernel_configcheck task requires a meta directory, normally set by ${KMETA}. The meta directory is taken as a relative path from ${S}: outfile = "{}/{}/cfg/mismatch.txt".format( s, kmeta ) However, when checking for the presence of ${KMETA} the current working directory is searched. This will almost always fail and "kgit --meta" is used instead. If the user does have a path in their current working directory that matches the ${KMETA} variable but the path is not present within the kernel source directory, the build will fail if it tries to write config errors/ warnings to that path. If ${KMETA} is not set, the same problem exists with the hard-coded "meta" directory. Fix these issues by checking for ${KMETA} within ${S} rather than the current working directory. Additionally, drop the hardcoded backup directory "meta" as it hasn't been functioning and probably has no users (From OE-Core rev: c322272a51d923cda9b0e5e388e32b7dd3a6bd22) Signed-off-by: Russ Dill <russ.dill@nikolamotor.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> (cherry picked from commit f4a3e80a4a6f4f709d09940dcaf45b2b00654496) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
0 files changed, 0 insertions, 0 deletions