successful compilation of u - boot 1.3.2 for omap3530beagle

in last blog i was looking i2c_write routine solution ,which i got
from Mr Jadon .thanks for that.

to make a copilation for omap3530beagle i made following change,
however i have some doubt this is right way or not.

1) i copid common/env_nand.c from beagle(1.1.4)
2)i made a change in include/configs/omap3530beagle.h something like
this way..
  // #define CONFIG_DRIVER_OMAP34XX_I2C 1 into..
  #define CONFIG_DRIVER_OMAP24XX_I2C 1
just make 24xx in place of 34xx

3) and in these following files
drivers/mtd/nand/nand.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
drivers/mtd/nand/nand_ecc.c
drivers/mtd/nand/nand_ids.c
make a change something like this
//#if defined(CONFIG_CMD_NAND) && !
defined(CFG_NAND_LEGACY) ...into

#if (CONFIG_COMMANDS & CFG_CMD_NAND) && !defined(CFG_NAND_LEGACY)

thank you
shashi ranjan
sunil kumar