addd kconfig, ifdef.

Change-Id: Iccdb4add377b4ca894b453483899afc0c5d2d07a