Hi Vijayakumar Venganti,
Sorry I overlooked your email last week :-( I had the same question before and below is how I got it to work. You need to regenerate Makefile.in file in your grub-core folder. First, you need to modify Makefile.core.am to include your new module; to see how to do this, search in Makefile.core.am for "hello" module. You also need to modify Makefile.core.def; again to see how to do this, search in Makefile.core.def for "hello" module. On another machine (will be referred to as machine B), you need to install m4-1.4.6 at ftp://ftp.gnu.org/gnu/m4/, install autoconf-2.64, install automake-1.11.2. Make sure your $PATH points to the stuff you just installed. Then in your grub2 directory there should be a file named autogen.sh. Copy autogen.sh and tries to run it on machine B. There will be warnings/errors for missing files, depending on the warnings/errors copy files from grub2 folder over to machine B. After autogen.sh runs successfully, copy Makefile.in back to your work environment and from there run your normal build.