If I understand your question properly then you must be asking about in tree build of your loadable module with kernels build process.
Kconfig is responsible for the respective value/loadable module to be visible in menuconfig(I use menuconfig for kernel configuration).
To keep things simple let's follow below:
Create dir on ~/drivers directory nammed mymod.
In ~/drivers/mymod create Kconfig and Makefile files and keep your helloKernelmod.c
In Kconfig keep below content
menu "Menu Name of Your Driver"
config HELLO_MODULE
tristate "Inside Menu Name"
help
This is help/informational content for your module
endmenu
In makefile keep below content
obj-$(CONFIG_HELLO_MODULE) +=helloKernelmod.o
these updates will do the trick and your module will be built.
Add tabs for indentation
For more information go to https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt