diff options
author | Petr Štetiar <ynezz@true.cz> | 2021-07-05 11:54:26 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-10-05 16:20:10 +0200 |
commit | 8cc9a74a3f6bf363645efda6db417f8dadd3d844 (patch) | |
tree | 68f1648a077df8e49328f087eccaf94c2e47d1e8 /tools/firmware-utils/src/seama.h | |
parent | f82c93b93c0a021921ac7a30ba6e7a090c7ddd1c (diff) | |
download | upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.tar.gz upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.tar.bz2 upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.zip |
firmware-utils: update to version 2021-10-05
Includes following changes:
db65821f006c cmake: fix missing install target
3a0cfc856991 Add initial GitLab CI support
8f47adea6f87 Add missing includes for byte swap operations
fbafae9f8037 Convert to CMake based project
Additionaly moves source code into separate Git project repository and
converts the package build to utilize CMake.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
[rmilecki: rebase, update to the latest repo git & rm -r src]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/seama.h')
-rw-r--r-- | tools/firmware-utils/src/seama.h | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/tools/firmware-utils/src/seama.h b/tools/firmware-utils/src/seama.h deleted file mode 100644 index bc58338a62..0000000000 --- a/tools/firmware-utils/src/seama.h +++ /dev/null @@ -1,94 +0,0 @@ -// SPDX-License-Identifier: LGPL-2.1-or-later -/* vi: set sw=4 ts=4: */ -/* - * (SEA)ttle i(MA)ge is the image which used in project seattle. - * - * Created by David Hsieh <david_hsieh@alphanetworks.com> - * Copyright (C) 2008-2009 Alpha Networks, Inc. - */ - -#ifndef __SEAMA_HEADER_FILE__ -#define __SEAMA_HEADER_FILE__ - -#include <stdint.h> - -#define SEAMA_MAGIC 0x5EA3A417 - -/* - * SEAMA looks like the following map. - * All the data of the header should be in network byte order. - * - * +-------------+-------------+------------ - * | SEAMA magic | ^ - * +-------------+-------------+ | - * | reserved | meta size | | - * +-------------+-------------+ header - * | image size (0 bytes) | | - * +-------------+-------------+ | - * ~ Meta data ~ v - * +-------------+-------------+------------ - * | SEAMA magic | ^ ^ - * +-------------+-------------+ | | - * | reserved | meta size | | | - * +-------------+-------------+ | | - * | image size | | | - * +-------------+-------------+ header | - * | | | | - * | 16 bytes of MD5 digest | | | - * | | | | - * | | | | - * +-------------+-------------+ | | - * ~ Meta data ~ v | - * +-------------+-------------+------- | - * | | | - * | Image of the 1st entity | | - * ~ ~ 1st entity - * | | | - * | | v - * +-------------+-------------+------------- - * | SEAMA magic | ^ ^ - * +-------------+-------------+ | | - * | reserved | meta size | | | - * +-------------+-------------+ | | - * | image size | | | - * +-------------+-------------+ header | - * | | | | - * | 16 bytes of MD5 digest | | | - * | | | | - * | | | | - * +-------------+-------------+ | | - * ~ Meta data ~ v | - * +-------------+-------------+------- | - * | | | - * | Image of the 2nd entity | | - * ~ ~ 2nd entity - * | | | - * | | v - * +-------------+-------------+------------- - */ - - -/* - * SEAMA header - * - * |<-------- 32 bits -------->| - * +-------------+-------------+ - * | SEAMA magic | - * +-------------+-------------+ - * | reserved | meta size | - * +-------------+-------------+ - * | image size | - * +-------------+-------------+ - */ -/* seama header */ -typedef struct seama_hdr seamahdr_t; -struct seama_hdr -{ - uint32_t magic; /* should always be SEAMA_MAGIC. */ - uint16_t reserved; /* reserved for */ - uint16_t metasize; /* size of the META data */ - uint32_t size; /* size of the image */ -} __attribute__ ((packed)); - - -#endif |