summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/vim.in14
-rw-r--r--rules/vim.make5
2 files changed, 17 insertions, 2 deletions
diff --git a/rules/vim.in b/rules/vim.in
index d76d0f362..f09b93b47 100644
--- a/rules/vim.in
+++ b/rules/vim.in
@@ -1,13 +1,23 @@
## SECTION=editors
-config VIM
+menuconfig VIM
tristate
select LIBC_DL
select LIBC_M
select GCCLIBS_GCC_S
select NCURSES
- prompt "vim"
+ prompt "vim "
help
Vim is an advanced text editor that seeks to provide the
power of the de-facto Unix editor 'Vi', with a more complete
feature set.
+
+if VIM
+
+config VIM_VIM
+ bool "Vim Editor"
+
+config VIM_XXD
+ bool "XXD"
+
+endif
diff --git a/rules/vim.make b/rules/vim.make
index a734fe2ed..6965e2537 100644
--- a/rules/vim.make
+++ b/rules/vim.make
@@ -108,13 +108,18 @@ $(STATEDIR)/vim.targetinstall:
@$(call install_fixup, vim,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, vim,DESCRIPTION,missing)
+ifdef PTXCONF_VIM_VIM
@$(call install_copy, vim, 0, 0, 0755, -, /usr/bin/vim)
@$(foreach link, $(VIM_LINKS), \
$(call install_link, vim, vim, /usr/bin/$(link));)
@$(call install_tree, vim, 0, 0, -, /usr/share/vim)
+endif
+ifdef PTXCONF_VIM_XXD
+ @$(call install_copy, vim, 0, 0, 0755, $(VIM_DIR)/$(VIM_SUBDIR)/xxd/xxd, /usr/bin/vim)
+endif
@$(call install_finish, vim)
@$(call touch)