uboot-tools: fix FIT support and make it optional
authorCarlos Santos <casantos@datacom.ind.br>
Fri, 3 Jun 2016 19:35:39 +0000 (16:35 -0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 7 Jun 2016 21:10:53 +0000 (23:10 +0200)
commitb5d9900842e08e8ac5b9ad43234acf7ec63542ba
tree2f1d0db5fed7e5d647ef7bffeee131b960178d6b
parentd1a2c0ed3c73ea37b506eae0edbbabdb366c2d5f
uboot-tools: fix FIT support and make it optional

Fix several issues regarding the support for Flat Image Trees (FIT).

- Add a patch to really allow turning FIT support on/off, which was not
  possible due to bugs in the code and in the tools Makefile. This patch
  has been sent upstream but not applied there, yet.

- Use independent options to control FIT support on host and target
  packages.

- Subordinate FIT signature support to the activation of FIT support, in
  the target package, not to mkimage installation.

- Add a dependence on the dtc utilities because mkimage needs it when
  FIT is enabled; otherwise mkimage fails like this:

    $ mkimage -f firmware.its firmware.im
    sh: dtc: command not found

- Add BR2_PACKAGE_UBOOT_TOOLS_MKIMAGE_FIT_SIGNATURE_SUPPORT to the
  Config.in.legacy file.

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Config.in.legacy
package/uboot-tools/0003-Make-FIT-support-really-optional.patch [new file with mode: 0644]
package/uboot-tools/Config.in
package/uboot-tools/Config.in.host
package/uboot-tools/uboot-tools.mk