Skip to content

wic: Allow to user defined files as config for bootloaders

[email protected] openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Previous version just allowed the have the complete path for the file. Now it will search for the file in the canned-wks folders for all the layers that are part of the project.
- Include an example wks file in canned-wks folder.
- Include an example configuration in canned-wks folder.
- Include the changes in the documentation.
- Include test in self-test.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6wic: Prepare wicboot to allow custom bootloader configscripts/lib/wic/kickstart/__init__.py scripts/lib/wic/kickstart/custom_commands/wicboot.py+12 -00 replies
2/6wic/utils/misc.py: Added function to search for files in canned-wksscripts/lib/wic/utils/misc.py+39 -00 replies
3/6wic: Allow to use a custom config for bootloadersscripts/lib/wic/plugins/source/bootimg-efi.py scripts/lib/wic/plugins/source/bootimg-pcbios.py+93 -460 replies
4/6wic/help.py: Document the new option "configfile"scripts/lib/wic/help.py+6 -00 replies
5/6directdisk-bootloader-config.wks: Add example for custom bootloader configscripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks+21 -00 replies
6/6selftest/wic.py: Add test for custom bootloader configmeta/lib/oeqa/selftest/wic.py+8 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/6] wic: Allow to user defined files as config for bootloaders

From: Mariano Lopez <[email protected]>

These patches add a new option for the bootloaders. This new option allows to use a custom configuration file as the bootloader config with the "configfile" variable in the bootloader line. This is very useful when there is need to create a multiboot image or when there is need to use scripting in the bootloader.

Changes in v2

- Previous version just allowed the have the complete path for the file. Now it will search for the file in the canned-wks folders for all the layers that are part of the project.
- Include an example wks file in canned-wks folder.
- Include an example configuration in canned-wks folder.
- Include the changes in the documentation.
- Include test in self-test.

The following changes since commit 03f15e51998a3ef65a5b68cb7cbf724f4388c289:

sstate: Ensure siginfo and sig files are also touched (2015-11-25 08:09:00 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib mariano/bug8728
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=mariano/bug8728

Mariano Lopez (6):
wic: Prepare wicboot to allow custom bootloader config wic/utils/misc.py: Added function to search for files in canned-wks
wic: Allow to use a custom config for bootloaders wic/help.py: Document the new option "configfile" directdisk-bootloader-config.wks: Add example for custom bootloader
config
selftest/wic.py: Add test for custom bootloader config

 meta/lib/oeqa/selftest/wic.py                      |  8 +++
 .../canned-wks/directdisk-bootloader-config.cfg    | 11 ++++
 .../canned-wks/directdisk-bootloader-config.wks    | 10 +++
 scripts/lib/wic/help.py                            |  6 ++
 scripts/lib/wic/kickstart/__init__.py              |  7 +++
 .../lib/wic/kickstart/custom_commands/wicboot.py   |  5 ++
 scripts/lib/wic/plugins/source/bootimg-efi.py      | 67 ++++++++++++++------
 scripts/lib/wic/plugins/source/bootimg-pcbios.py   | 72 +++++++++++++---------
 scripts/lib/wic/utils/misc.py                      | 39 ++++++++++++
 9 files changed, 179 insertions(+), 46 deletions(-)
 create mode 100644 scripts/lib/wic/canned-wks/directdisk-bootloader-config.cfg
 create mode 100644 scripts/lib/wic/canned-wks/directdisk-bootloader-config.wks
Signature · 1 line
1.8.4.5