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>
Thu, 25 Jul 2019 05:48:10 +0000 (07:48 +0200)
commitb8249cef9fedb1e2e3ed4f1b16382c6815e08df1
tree18b878e2e3d9e577e1fac00cbb91e559e945bce1
parentfe928c7a81810fd84210a5e9594b7fa8ce1064ce
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>
package/boot/tfa-layerscape/Makefile
package/boot/tfa-layerscape/patches/001-fiptool-hostbuild-fixes.patch [new file with mode: 0644]