@@ -871,6 +871,7 @@ RECIPE_MAINTAINER:pn-vala = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-valgrind = "Mingli Yu <mingli.yu@windriver.com>"
RECIPE_MAINTAINER:pn-vim = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-vim-tiny = "Unassigned <unassigned@yoctoproject.org>"
+RECIPE_MAINTAINER:pn-vim-xxd = "João Marcos Costa <joaomarcos.costa@bootlin.com>"
RECIPE_MAINTAINER:pn-virglrenderer = "Unassigned <unassigned@yoctoproject.org>"
RECIPE_MAINTAINER:pn-volatile-binds = "Chen Qi <Qi.Chen@windriver.com>"
RECIPE_MAINTAINER:pn-vte = "Unassigned <unassigned@yoctoproject.org>"
new file mode 100644
@@ -0,0 +1,29 @@
+SUMMARY = "Hex dump and reverse utility from the Vim source tree"
+DESCRIPTION = "xxd is a small utility usually distributed with Vim that creates hex dumps from binary data and can also convert hex dumps back to their original form."
+SECTION = "console/utils"
+HOMEPAGE = "https://www.vim.org/"
+BUGTRACKER = "https://github.com/vim/vim/issues"
+
+require vim-sources.inc
+
+inherit update-alternatives
+
+PROVIDES += "xxd"
+
+do_compile() {
+ cd ${S}/src/xxd;
+ oe_runmake xxd
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 src/xxd/xxd ${D}${bindir}
+}
+
+RPROVIDES:${PN} += "xxd"
+
+ALTERNATIVE:${PN} = "xxd"
+ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd"
+ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd"
+
+BBCLASSEXTEND = "native nativesdk"
This new recipe's main purpose is to handle xxd in the simplest way possible, stripping it from any needless tasks and/or dependencies that come from the fact it was originally provided by the same recipe as Vim. Not only this recipe is faster to build, but it still provides the very same program for both build-time and run-time, so there should be no migration needed by the recipes depend on xxd. Signed-off-by: João Marcos Costa <joaomarcos.costa@bootlin.com> --- meta/conf/distro/include/maintainers.inc | 1 + meta/recipes-support/vim/vim-xxd_9.2.bb | 29 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 meta/recipes-support/vim/vim-xxd_9.2.bb