Disable/Hide "Welcome to grub" message when mender SD image boots up

I created SD image using mender production server. On boot it shows below message,
Welcome to grub
lock: ok
lock: ok

I want to hide this messages when image will boot up.
I can see in mender convert tool it downloads that bootx86.efi file from url, https://d1b0l86ne08fsf.cloudfront.net/grub-mender-grubenv/grub-efi/2.04-grub-mender-grubenv-aa7e8f8c76c6aca6dca1820aaa42dc2cbf9762a1/x86-64/grub-efi-bootx64.efi

@drewmoseley @Furkan @MarekBelisko Any idea how can I disable above logs messages from this bootx86.efi binary ?
Any other alternative solution ?

@Rohita83 I did it some time ago to hide all grub messages with this patch to grub-efi package (it’s yocto not debian mender-convert stuff):

Subject: [PATCH] grub: Don't print lock: OK

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
 grub-core/kern/misc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/grub-core/kern/misc.c b/grub-core/kern/misc.c
index bfa5fe4..f974a6d 100644
--- a/grub-core/kern/misc.c
+++ b/grub-core/kern/misc.c
@@ -124,6 +124,7 @@ grub_printf (const char *fmt, ...)
 int
 grub_printf_ (const char *fmt, ...)
 {
+  return 0;
   va_list ap;
   int ret;

--
2.7.4

@MarekBelisko Thanks for the quick reply. Your patch will help me to fix my issue.
Could you please send me steps to build bootx86.efi binary from source code without using docker ?
I have downloaded source code tar.gz from path ftp://ftp.gnu.org/gnu/grub/.
I want to make change in the code and build binary again.

@Rohita83 sorry I’m using this patch in yocto and I did not recompile grub by myself. Maybe this link can give you some inspiration. Thanks.

@MarekBelisko
Thank you.