mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
wic: bootimg-efi: fix error handling
If we check for empty variables, it does not make sense to print their content in case they are empty. Additionally, the error message in the 'kernel' check attempted to print the wrong variable ('target') which was not even defined, yet. Also, raising WicError doesn't require an extra newline. (From OE-Core rev: f31cf475d0235f42d73aeec07694f79b9937fd76) Signed-off-by: Enrico Jörns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4f600110ee
commit
1d5b4d19c7
|
@ -428,10 +428,10 @@ class BootimgEFIPlugin(SourcePlugin):
|
|||
elif source_params['loader'] == 'uefi-kernel':
|
||||
kernel = get_bitbake_var("KERNEL_IMAGETYPE")
|
||||
if not kernel:
|
||||
raise WicError("Empty KERNEL_IMAGETYPE %s\n" % target)
|
||||
raise WicError("Empty KERNEL_IMAGETYPE")
|
||||
target = get_bitbake_var("TARGET_SYS")
|
||||
if not target:
|
||||
raise WicError("Unknown arch (TARGET_SYS) %s\n" % target)
|
||||
raise WicError("Empty TARGET_SYS")
|
||||
|
||||
if re.match("x86_64", target):
|
||||
kernel_efi_image = "bootx64.efi"
|
||||
|
|
Loading…
Reference in New Issue
Block a user