cr50: use single __packed definition

Various parts of Cr50 code and Cr50 related utilities duplicate
definition of __packed available in include/common.h. Let's use the
same definition everywhere.

BRANCH=cr50, cr50-mp
BUG=none
TEST=make buildall succeeds
     verified that linker generated map files for Cr50 RW are the same
     before and after this change.

     built and used gsctoo and rma_reset

Change-Id: Ib91f9bbad1f6822b347f32b393630f592df80d60
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/931929
Reviewed-by: Randall Spangler <rspangler@chromium.org>
(cherry picked from commit 58759f5fbb)
Reviewed-on: https://chromium-review.googlesource.com/942116
This commit is contained in:
Vadim Bendebury 2018-02-22 10:54:23 -08:00 committed by ChromeOS Commit Bot
parent 84a21b4425
commit d90c75e754
5 changed files with 6 additions and 6 deletions

View File

@ -8,6 +8,7 @@
#include <stddef.h>
#include "common.h" /* For __packed. */
/*
* This file contains structures used to facilitate cr50 firmware updates,

View File

@ -13,7 +13,7 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define __packed __attribute__((packed))
#include "rma_auth.h"
#include "curve25519.h"
#include "sha256.h"

View File

@ -20,11 +20,6 @@
#include <termios.h>
#include <unistd.h>
#ifndef __packed
#define __packed __attribute__((packed))
#endif
#include "config.h"
#include "ccd_config.h"

View File

@ -10,6 +10,8 @@
#include <stdint.h>
#include "common.h" /* For __packed. */
/* Current challenge protocol version */
#define RMA_CHALLENGE_VERSION 0

View File

@ -6,6 +6,8 @@
#ifndef __INCLUDE_TPM_VENDOR_CMDS_H
#define __INCLUDE_TPM_VENDOR_CMDS_H
#include "common.h" /* For __packed. */
/*
* This file includes definitions of extended/vendor TPM2 commands and their
* return codes. The definitions are shared between the embedded code and the