tfa-layerscape: fix fiptool host build
authorPetr Štetiar <ynezz@true.cz>
Wed, 24 Jul 2019 14:00:39 +0000 (14:00 +0000)
committerPetr Štetiar <ynezz@true.cz>
Sat, 27 Jul 2019 05:13:59 +0000 (07:13 +0200)
commit94e9084e1ee586fed993896c71a4327518987152
tree05274fe5c7f45ab76c6e03f5fcac83a06d4ba376
parent0a64b70e4e95d585df3ef79d04cc6e48c8919d7c
tfa-layerscape: fix fiptool host build

fiptool is a host tool, used in a firmware generation pipeline, but it's
not treated as such, leading to the build breakage on the hosts which
don't have {Open,Libre}SSL dev package installed:

 In file included from fiptool.h:16:0,
                 from fiptool.c:19:
 fiptool_platform.h:18:27: fatal error: openssl/sha.h:
 No such file or directory
  #  include <openssl/sha.h>

So this patch promotes fiptool into the host tool with proper host
include and library paths under STAGING_DIR.

Ref: https://github.com/openwrt/openwrt/pull/2267
Signed-off-by: Petr Štetiar <ynezz@true.cz>
(cherry picked from commit b8249cef9fedb1e2e3ed4f1b16382c6815e08df1)
package/boot/tfa-layerscape/Makefile
package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch [new file with mode: 0644]