Browse Source

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>
Dan McGregor 6 years ago
parent
commit
82cd4da67f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      meta/recipes-devtools/file/file_5.34.bb

+ 4 - 1
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"