diff options
| author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-02-03 19:16:59 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-04 12:57:36 +0000 |
| commit | 94b805f1b4b9df596ab6275c6cd2dcada50c2ba4 (patch) | |
| tree | 0707123986c84347f7e85cde43db6b1f40b9fc95 /scripts/lib/mic/plugins/source | |
| parent | e663d2f5c10ca2c71b287c5af19f74b0de0d7c7c (diff) | |
| download | poky-94b805f1b4b9df596ab6275c6cd2dcada50c2ba4.tar.gz | |
wic: Hook up BootimgEFIPlugin and BootimgPcbiosPlugin plugins
Remove all the Wic_PartData and DirectImageCreator code now
implemented by the BootimgEFIPlugin and BootimgPcbiosPlugin plugins,
as well as all the special-cased boot_type code, significantly
cleaning up the code.
Replace the calling code with general-purpose plugin invocations, in
essence calling the appropriate implementations at run-time based on
the --source value in effect.
Change the directdisk.wks and mkefidisk.wks scripts to make use of the
new plugins.
(From OE-Core rev: 43558610a5793888ff2b18bd3a27c7ab558e5ad0)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/mic/plugins/source')
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-efi.py | 6 | ||||
| -rw-r--r-- | scripts/lib/mic/plugins/source/bootimg-pcbios.py | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/lib/mic/plugins/source/bootimg-efi.py b/scripts/lib/mic/plugins/source/bootimg-efi.py index f2bd071aff..3e0997bacf 100644 --- a/scripts/lib/mic/plugins/source/bootimg-efi.py +++ b/scripts/lib/mic/plugins/source/bootimg-efi.py | |||
| @@ -107,7 +107,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 107 | if not bootimg_dir: | 107 | if not bootimg_dir: |
| 108 | msger.error("Couldn't find HDDDIR, exiting\n") | 108 | msger.error("Couldn't find HDDDIR, exiting\n") |
| 109 | # just so the result notes display it | 109 | # just so the result notes display it |
| 110 | cr.bootimg_dir = bootimg_dir | 110 | cr.set_bootimg_dir(bootimg_dir) |
| 111 | 111 | ||
| 112 | staging_kernel_dir = kernel_dir | 112 | staging_kernel_dir = kernel_dir |
| 113 | staging_data_dir = bootimg_dir | 113 | staging_data_dir = bootimg_dir |
| @@ -155,7 +155,7 @@ class BootimgEFIPlugin(SourcePlugin): | |||
| 155 | rc, out = exec_cmd(du_cmd) | 155 | rc, out = exec_cmd(du_cmd) |
| 156 | bootimg_size = out.split()[0] | 156 | bootimg_size = out.split()[0] |
| 157 | 157 | ||
| 158 | part.size = bootimg_size | 158 | part.set_size(bootimg_size) |
| 159 | part.source_file = bootimg | 159 | part.set_source_file(bootimg) |
| 160 | 160 | ||
| 161 | 161 | ||
diff --git a/scripts/lib/mic/plugins/source/bootimg-pcbios.py b/scripts/lib/mic/plugins/source/bootimg-pcbios.py index 1da2a41fa7..3cd446f052 100644 --- a/scripts/lib/mic/plugins/source/bootimg-pcbios.py +++ b/scripts/lib/mic/plugins/source/bootimg-pcbios.py | |||
| @@ -135,7 +135,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 135 | if not bootimg_dir: | 135 | if not bootimg_dir: |
| 136 | msger.error("Couldn't find STAGING_DATADIR, exiting\n") | 136 | msger.error("Couldn't find STAGING_DATADIR, exiting\n") |
| 137 | # just so the result notes display it | 137 | # just so the result notes display it |
| 138 | cr.bootimg_dir = bootimg_dir | 138 | cr.set_bootimg_dir(bootimg_dir) |
| 139 | 139 | ||
| 140 | staging_kernel_dir = kernel_dir | 140 | staging_kernel_dir = kernel_dir |
| 141 | staging_data_dir = bootimg_dir | 141 | staging_data_dir = bootimg_dir |
| @@ -181,7 +181,7 @@ class BootimgPcbiosPlugin(SourcePlugin): | |||
| 181 | rc, out = exec_cmd(du_cmd) | 181 | rc, out = exec_cmd(du_cmd) |
| 182 | bootimg_size = out.split()[0] | 182 | bootimg_size = out.split()[0] |
| 183 | 183 | ||
| 184 | part.size = bootimg_size | 184 | part.set_size(bootimg_size) |
| 185 | part.source_file = bootimg | 185 | part.set_source_file(bootimg) |
| 186 | 186 | ||
| 187 | 187 | ||
