summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2018-10-17 15:22:33 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 16:47:59 +0100
commite9a34c0753bb772f26d3ddd7fed3fc234635b172 (patch)
tree91cae4b156bb9bd605fa6826ad4307109e3e215f
parent887a062ca139014ae6dfd1919e0ff9a5ef4db35e (diff)
downloadopenembedded-core-contrib-e9a34c0753bb772f26d3ddd7fed3fc234635b172.tar.gz
openembedded-core-contrib-e9a34c0753bb772f26d3ddd7fed3fc234635b172.tar.bz2
openembedded-core-contrib-e9a34c0753bb772f26d3ddd7fed3fc234635b172.zip
file: alternatify file
file is also provided by toybox. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/file/file_5.34.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-devtools/file/file_5.34.bb b/meta/recipes-devtools/file/file_5.34.bb
index 6612b71000..5d92913cb0 100644
--- a/meta/recipes-devtools/file/file_5.34.bb
+++ b/meta/recipes-devtools/file/file_5.34.bb
@@ -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"