xzcat: treat as host prerequisite and build if needed
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>
Fri, 2 Aug 2013 09:05:15 +0000 (11:05 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 6 Sep 2013 21:30:36 +0000 (23:30 +0200)
commitd1f325f554cab7912e9221e91aba5b8aa97b1e3c
tree2432166fbacae86cc78d18a8b782d4680ad69ab1
parentf8d89f051032a8835bdb77edec518e73170006c1
xzcat: treat as host prerequisite and build if needed

If xzcat is not present on the host system, buildroot bails out early asking
the developer to install it (xzcat is now a DL_TOOLS_DEPENDENCY)
Conversely, when BR2_TARGET_ROOTFS_CPIO_XZ is enabled, then host-xz is a
build dependency, and no manual action is required from the developer.

Because the second approach is nicer, also build host-xz when xzcat is not
available, using the host-prerequisite and suitable-host-pkg mechanisms,
already used for tar.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-generic.mk
support/dependencies/check-host-xzcat.mk [new file with mode: 0644]
support/dependencies/check-host-xzcat.sh [new file with mode: 0755]