* [Buildroot] [PATCH] boot/uboot: add BR2_TARGET_UBOOT_NEEDS_VIM option
@ 2022-11-08 14:43 Jerry Kooyman via buildroot
2022-11-22 22:12 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Jerry Kooyman via buildroot @ 2022-11-08 14:43 UTC (permalink / raw)
To: buildroot; +Cc: Jerry Kooyman
From: Jerry Kooyman <jerry.kooyman@entrust.com>
A host dependency to vim is required if the
U-Boot board configuration has CONFIG_USE_DEFAULT_ENV_FILE enabled. So
introduce a new BR U-Boot config option BR2_TARGET_UBOOT_NEEDS_VIM
to solve this problem.
---
boot/uboot/Config.in | 8 ++++++++
boot/uboot/uboot.mk | 4 ++++
2 files changed, 12 insertions(+)
diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
index 557472b58b..b0f546000e 100644
--- a/boot/uboot/Config.in
+++ b/boot/uboot/Config.in
@@ -198,6 +198,14 @@ config BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX
This is typically the case when the board configuration
has CONFIG_TOOLS_MKEFICAPSULE enabled.
+config BR2_TARGET_UBOOT_NEEDS_VIM
+ bool "U-Boot needs vim"
+ help
+ Select this option if your U-Boot board configuration
+ requires vim to be available on the host. This is
+ typically the case when the board configuration has
+ CONFIG_USE_DEFAULT_ENV_FILE enabled.
+
config BR2_TARGET_UBOOT_NEEDS_ATF_BL31
bool "U-Boot needs ATF BL31"
depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index 0439ec5e4b..a64d3a2c2c 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -235,6 +235,10 @@ ifeq ($(BR2_TARGET_UBOOT_NEEDS_UTIL_LINUX),y)
UBOOT_DEPENDENCIES += host-util-linux
endif
+ifeq ($(BR2_TARGET_UBOOT_NEEDS_VIM),y)
+UBOOT_DEPENDENCIES += host-vim
+endif
+
# prior to u-boot 2013.10 the license info was in COPYING. Copy it so
# legal-info finds it
define UBOOT_COPY_OLD_LICENSE_FILE
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH] boot/uboot: add BR2_TARGET_UBOOT_NEEDS_VIM option
2022-11-08 14:43 [Buildroot] [PATCH] boot/uboot: add BR2_TARGET_UBOOT_NEEDS_VIM option Jerry Kooyman via buildroot
@ 2022-11-22 22:12 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-11-22 22:12 UTC (permalink / raw)
To: Jerry Kooyman via buildroot; +Cc: jerry.kooyman
Hello Jerry,
On Tue, 8 Nov 2022 08:43:07 -0600
Jerry Kooyman via buildroot <buildroot@buildroot.org> wrote:
> From: Jerry Kooyman <jerry.kooyman@entrust.com>
>
> A host dependency to vim is required if the
> U-Boot board configuration has CONFIG_USE_DEFAULT_ENV_FILE enabled. So
> introduce a new BR U-Boot config option BR2_TARGET_UBOOT_NEEDS_VIM
> to solve this problem.
Thanks for the patch! First of all, in order for your patch to be
merged, we need it to carry a Signed-off-by line with your name and
email, like this:
Signed-off-by: Your Name <your.email@domain.com>
as the last line of your commit log.
> +config BR2_TARGET_UBOOT_NEEDS_VIM
> + bool "U-Boot needs vim"
I am wondering if we shouldn't make this:
config BR2_TARGET_UBOOT_NEEDS_XXD
bool "U-Boot needs xxd"
because really what U-Boot needs is xxd... which happens to be provided
by host-vim.
Indeed, if I see U-Boot failing to build because xxd is missing, if I'm
not familiar with this, I will have hard time realizing that what is
needed is this BR2_TARGET_UBOOT_NEEDS_VIM option.
In order to avoid building host-vim, which needs host-ncurses, we could
also package a standalone version of xxd, such as
https://github.com/ckormanyos/xxd. But that clearly isn't a
requirement, I will be happy to take a modified patch from you that has
the option renamed to BR2_TARGET_UBOOT_NEEDS_XXD.
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-22 22:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 14:43 [Buildroot] [PATCH] boot/uboot: add BR2_TARGET_UBOOT_NEEDS_VIM option Jerry Kooyman via buildroot
2022-11-22 22:12 ` Thomas Petazzoni via buildroot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.