file: alternatify file

file is also provided by toybox.

(From OE-Core rev: e9a34c0753bb772f26d3ddd7fed3fc234635b172)

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dan McGregor
2018-10-17 15:22:33 -06:00
committed by Richard Purdie
parent 06aa8ccade
commit 82cd4da67f

View File

@@ -21,7 +21,10 @@ SRC_URI = "git://github.com/file/file.git \
SRCREV = "315cef2f699da3c31a54bd3c6c6070680fbaf1f5"
S = "${WORKDIR}/git"
inherit autotools
inherit autotools update-alternatives
ALTERNATIVE_${PN} = "file"
ALTERNATIVE_LINK_NAME[file] = "${bindir}/file"
EXTRA_OEMAKE_append_class-target = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"
EXTRA_OEMAKE_append_class-nativesdk = "-e FILE_COMPILE=${STAGING_BINDIR_NATIVE}/file-native/file"