cpio: install to /bin and after busybox
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 2 Oct 2015 13:43:49 +0000 (10:43 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 2 Oct 2015 14:33:07 +0000 (16:33 +0200)
As the usual rule consider full-blown packages superior to busybox,
hence build after it.
Also install cpio to /bin to override the busybox-provided one.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/cpio/cpio.mk

index ca8463e8fd5081e6d39242c15e4ffa6e3e037990..1576127968a7674e81937750589d1e56041c7995 100644 (file)
@@ -6,6 +6,8 @@
 
 CPIO_VERSION = 2.12
 CPIO_SITE = http://ftp.gnu.org/gnu/cpio
+CPIO_CONF_OPTS = --bindir=/bin
+CPIO_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox)
 CPIO_LICENSE = GPLv3+
 CPIO_LICENSE_FILES = COPYING