diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2017-07-18 21:26:41 +0200 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-07-19 08:30:08 -0700 |
commit | 21086869beba0c6e38275be97af2e689e17820ec (patch) | |
tree | af75e9d90b91e064030a9527d25f5cfb8e23d805 /meta-tlk | |
parent | e76947d3ee70171cda00661d6367b0bc982cfe39 (diff) | |
download | meta-intel-21086869beba0c6e38275be97af2e689e17820ec.tar.gz |
uefi-comboapp.bbclass: support multiple UEFI combo apps + fixes
The original code in intel-iot-refkit allows to create more than one
UEFI combo app and uses that to create one for removable media and one
for fixed media (after installation), with different boot=PARTUUID=xxx
parameters. This way, an installed image never ended up booting from
the install media.
uefi-comboapp.bbclass now supports the same feature, with
create_uefiapp() as the API function that can be used to create
additional UEFI apps and create_uefiapps as the method where the call
can be added.
In addition, several shortcomings are getting addressed:
- A UEFI combo app must be stored under a name that is specific
to the image for which it gets created, otherwise different
image recipes end up overwriting (or using) files from other
images.
- Signing must be done after creating the apps and before deploying
them, otherwise the unsigned apps get copied to the image when
using do_uefiapp_deploy.
- The common code for deployment is now in uefiapp_deploy_at.
- $dest is used instead of ${DEST} because the latter might get
expanded by bitbake.
- Because do_uefiapp always had to run anew to produce the
clean, unsigned input for do_uefiapp_sign, having two different
tasks just added unnecessary complexity. Now all code is in
do_uefiapp.
- Old files matching the output pattern get removed explicitly,
because they might not get overwritten when the optional
app suffix changes between builds, or when the task fails
in the middle.
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-tlk')
0 files changed, 0 insertions, 0 deletions