diff options
| author | Pali Rohár <[email protected]> | 2021-07-23 11:13:56 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2021-07-31 09:49:31 +0200 |
| commit | 37cb9c15d70d638d77bf9b8e50e06132efea7cff (patch) | |
| tree | 5c990f43014f24707785a6e5e9a23c3378b1c3b6 /scripts/basic/Makefile | |
| parent | 8ab9c6be690e037589a7f0305ce76b3907f9c295 (diff) | |
tools: kwbimage: Simplify aligning and calculating checksum
The return value of kwbimage_generate() is used for aligning the data
part of kwbimage. Use it for calculating proper 4 byte alignment as is
required by BootROM and also use it for allocating additional 4 bytes
for the 32-bit data checksum.
This simplifies the alignment code to be only at one place (in function
kwbimage_generate) and also simplifies setting checksum as it can be
directly updated in memory.
Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
Tested-by: Chris Packham <[email protected]>
Diffstat (limited to 'scripts/basic/Makefile')
0 files changed, 0 insertions, 0 deletions
