Spent some more time on this.
It appears that UBOOT build files (Makefiles) do not have a mechanism
to pass the CFLAGS directly from corresponding ebuilds.
We ended up with the following code change:
Patch 1) Modifying the
config.mk file in the Uboot source tree so
that it does not over write CFLAGS and CPPFLAGS
Patch 2) Modifying the Makefile in the Uboot/files/tools directory
Patch 3) Change in the UBOOT ebuilds to pass the CFLAGS.
Obviously the second patch will need more clean up.
We just hard coded the second set of files to include -DQRDC_BOARD in
the CFLAGS and it worked
The third patch is obviously the change in the Uboot source files to
add the machine Id.
Let me clean up little bit and I will push some of these out later.