Re: kbuild/kconfig for non-Linux projects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.  |
'------------------------------^-------^------------------^--------------------'
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux