Article 4VT86 how to define your own #define in uboot?

how to define your own #define in uboot?

by
DeanAnderson
from LinuxQuestions.org on (#4VT86)
Hi
In uboot there is directory in main root called "configs" where files *_defconfig are present.
In each *_defconfig file there are defines, for example:
Code:CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN4I=yThen in software in *.c file you can use such existed "define" and based on that decide to compile or not compile line of code:
Code:#ifdef CONFIG_ARM
...
#endifThe problem which I have is that when I set in my_defconfig my own define, for example:
Code:CONFIG_ARM=y
CONFIG_DUPA=yand then when I use in c code:
Code:#ifdef CONFIG_DUPA
...
#endifthis piece of code is not compiled and in fact it should. When I use CONFIG_ARM instead CONFIG_DUPA then the code is compiled. When I compile uboot I firstly execute 'make my_defconfig" and the rest procedure so I am familiar with compilation of uboot. However I don't know how to create define in/based on entry in defconfig. Could anybody help?latest?d=yIl2AUoC8zA latest?i=HiY0djwikHI:RBfUj3VYeec:F7zBnMy latest?i=HiY0djwikHI:RBfUj3VYeec:V_sGLiP latest?d=qj6IDK7rITs latest?i=HiY0djwikHI:RBfUj3VYeec:gIN9vFwHiY0djwikHI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments