aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorGravatar Erico Nunes <nunes.erico@gmail.com>2018-09-27 00:37:16 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-11-26 20:59:33 +0100
commit2d9566b7b7a6d34a37e88426e483e8ceb8568c8d (patch)
tree152123fba791d541551406b65e206bb0dab0b570 /boot
parentac0719e0869a18537b059b12fcbb3c05399e80fb (diff)
downloadbuildroot-2d9566b7b7a6d34a37e88426e483e8ceb8568c8d.tar.gz
buildroot-2d9566b7b7a6d34a37e88426e483e8ceb8568c8d.tar.bz2
boot/grub2: add option to install tools
Add an option to install grub2 support tools to the target. In the context of Buildroot, some useful target tools provided are grub2-editenv, grub2-reboot, which provide means to manage the grub2, environment, boot order, and others. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/grub2/Config.in9
-rw-r--r--boot/grub2/grub2.mk5
2 files changed, 14 insertions, 0 deletions
diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in
index 9a61b3b633..e33d24f62f 100644
--- a/boot/grub2/Config.in
+++ b/boot/grub2/Config.in
@@ -76,6 +76,15 @@ config BR2_TARGET_GRUB2_BUILTIN_CONFIG
device and other configuration parameters, but however menu
entries cannot be described in this embedded configuration.
+config BR2_TARGET_GRUB2_INSTALL_TOOLS
+ bool "install tools"
+ help
+ Install support tools to interact with GNU GRUB Multiboot
+ boot loader.
+
+ This will also install the Grub 2 loadable modules to the
+ target.
+
endif # BR2_TARGET_GRUB2
comment "grub2 needs a toolchain w/ wchar"
diff --git a/boot/grub2/grub2.mk b/boot/grub2/grub2.mk
index 1b366d0407..bb678ef5de 100644
--- a/boot/grub2/grub2.mk
+++ b/boot/grub2/grub2.mk
@@ -12,7 +12,12 @@ GRUB2_LICENSE_FILES = COPYING
GRUB2_DEPENDENCIES = host-bison host-flex host-grub2
HOST_GRUB2_DEPENDENCIES = host-bison host-flex
GRUB2_INSTALL_IMAGES = YES
+
+ifeq ($(BR2_TARGET_GRUB2_INSTALL_TOOLS),y)
+GRUB2_INSTALL_TARGET = YES
+else
GRUB2_INSTALL_TARGET = NO
+endif
GRUB2_BUILTIN_MODULES = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_MODULES))
GRUB2_BUILTIN_CONFIG = $(call qstrip,$(BR2_TARGET_GRUB2_BUILTIN_CONFIG))