]> code.ossystems Code Review - openembedded-core.git/commit
wic: Add --offset argument for partitions
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 2 Jun 2020 13:42:05 +0000 (08:42 -0500)
committerSteve Sakoman <steve@sakoman.com>
Wed, 30 Sep 2020 15:22:26 +0000 (05:22 -1000)
commit897aaff8961f7fe83634a3b0b94e19b43aea5857
tree2f188038297bcc3d6af5af211a48efb548da210f
parent348c666b2dca230308c8462dac2117b04cca6ae7
wic: Add --offset argument for partitions

Add support for an --offset argument when defining a partition. Many
SoCs require that boot partitions be located at specific offsets. Prior
to this argument, most WKS files were using the --align attribute to
specify the location of these fixed partitions but this is not ideal
because in the event that the partition couldn't be placed in the
specified location, wic would move it to the next sector with that
alignment, often preventing the device from booting. Unlike the --align
argument, wic will fail if a partition cannot be placed at the exact
offset specified with --offset.

Changes in V2:
* Fixed a small typo that prevented test_fixed_size_error from passing

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 467f84e12b96bc977d57575023517dd6f8ef7f29)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/wic.py
scripts/lib/wic/ksparser.py
scripts/lib/wic/partition.py
scripts/lib/wic/plugins/imager/direct.py