help in fusing grub.cfg into grub-efi-bootx64.efi

Job ID: 35428821

Budget: €30 – €250 EUR

I have a project built on top of the Yocto project with many recipes building an entire os
this os uses grub in order to boot and its booting perfectly using grub.cfg and grub-efi-bootx64.efi
I tried to fuse the grub.cfg into grub-efi-bootx64.efi in order to have one single file instead of having both
and used ``` grub-mkimage -v -c ../grub.cfg -p ${EFIDIR} -d ./grub-core/ \
-O ${GRUB_TARGET}-efi -o ./${GRUB_IMAGE_PREFIX}${GRUB_IMAGE} \
${GRUB_MKIMAGE_MODULES}```
the merge is done with some problems and I'm not able to boot so I need help figuring what's happening to the file and why it's not getting parsed correctly inside of the binary. to boot successfully
Related categories: C Programming Linux Embedded Systems Yocto