util/cbfstool: Fix build with armv7-eabi cross compiler
commitd42eb37be4b0c33d403b2d8b9e39a39f83d9f5a3
authorPatrick Georgi <pgeorgi@google.com>
Tue, 1 Aug 2017 09:29:40 +0000 (1 11:29 +0200)
committerPatrick Georgi <pgeorgi@google.com>
Wed, 2 Aug 2017 09:55:11 +0000 (2 09:55 +0000)
treeb7fcb35b1bb3a11364a240ca6eef61892f96beef
parent8656914cda9a43df8abd9aa56f73cb179da0570d
util/cbfstool: Fix build with armv7-eabi cross compiler

We recently changed all PACKED, __PACKED, __attribute__((packed)) ... to
__packed to gain some consistency. In cbfstool we use compiler.h to
provide that where necessary.

The cross compiler I use doesn't provide __packed by itself, but liblz4
doesn't compensate for that. Therefore include compiler.h, and to avoid
adding dependencies to non-liblz4 code, do so through the command line.

Change-Id: I581e45639ac3e103af7c16793e8effe2e632dec7
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/20836
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
util/cbfstool/Makefile.inc