Re: kbuild/kconfig for non-Linux projects

Yann E. MORIN
2011-10-02T11:14:29Z

Alexander, All,

On Sunday 02 October 2011 12:56:46 Alexander Kriegisch wrote:
> Okay, another developer in our project found the place where to
> configure this (Arnaud, please correct us if this is wrong):
>
>
> --- scripts/kconfig/lkc.h
> +++ scripts/kconfig/lkc.h
> @@ -42,7 +42,7 @@
> #define N_(text) (text)
>
> #ifndef CONFIG_
> -#define CONFIG_ "CONFIG_"
> +#define CONFIG_ ""
> #endif
>
> #define TF_COMMAND 0x0001

The proper way to do it is to pass it to the compiler with the -D option:
-DCONFIG_=\"\"

You should put it in your Makefile, in the proper CFLAGS (or CPPFLAGS).

If you change the code, you may have /merge/ issues later if you have to
resync again.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'