Followed below steps to compile the grub2 latest code.
[1] ./autogen.sh
[2] ./configure --with-platform=efi
[3] make
....
gcry_twofish.marker gcry_whirlpool.marker; do \
b=`basename $pp .marker`; \
if grep 'VIDEO_LIST_MARKER' $pp >/dev/null 2>&1; then \
echo $b; \
fi; \
done) | sort -u > video.lst
cp lib/libgcrypt-grub/cipher/crypto.lst crypto.lst
make[3]: *** No rule to make target '../grub-core/extra_deps.lst', needed by 'syminfo.lst'. Stop.
make[3]: Leaving directory '/home/sumeet/grub-2.12/grub-core'
make[2]: *** [Makefile:28855: all] Error 2
make[2]: Leaving directory '/home/sumeet/grub-2.12/grub-core'
make[1]: *** [Makefile:12131: all-recursive] Error 1
make[1]: Leaving directory '/home/sumeet/grub-2.12'
make: *** [Makefile:3958: all] Error 2