diff options
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-partition.py')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-partition.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index 58f6da72c3..1071d1af3f 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py | |||
@@ -32,6 +32,7 @@ class BootimgPartitionPlugin(SourcePlugin): | |||
32 | """ | 32 | """ |
33 | 33 | ||
34 | name = 'bootimg-partition' | 34 | name = 'bootimg-partition' |
35 | image_boot_files_var_name = 'IMAGE_BOOT_FILES' | ||
35 | 36 | ||
36 | @classmethod | 37 | @classmethod |
37 | def do_configure_partition(cls, part, source_params, cr, cr_workdir, | 38 | def do_configure_partition(cls, part, source_params, cr, cr_workdir, |
@@ -56,12 +57,12 @@ class BootimgPartitionPlugin(SourcePlugin): | |||
56 | else: | 57 | else: |
57 | var = "" | 58 | var = "" |
58 | 59 | ||
59 | boot_files = get_bitbake_var("IMAGE_BOOT_FILES" + var) | 60 | boot_files = get_bitbake_var(cls.image_boot_files_var_name + var) |
60 | if boot_files is not None: | 61 | if boot_files is not None: |
61 | break | 62 | break |
62 | 63 | ||
63 | if boot_files is None: | 64 | if boot_files is None: |
64 | raise WicError('No boot files defined, IMAGE_BOOT_FILES unset for entry #%d' % part.lineno) | 65 | raise WicError('No boot files defined, %s unset for entry #%d' % (cls.image_boot_files_var_name, part.lineno)) |
65 | 66 | ||
66 | logger.debug('Boot files: %s', boot_files) | 67 | logger.debug('Boot files: %s', boot_files) |
67 | 68 | ||