Re: howto make define seen in all files?

From: Michal Marek
Date: Mon Aug 19 2013 - 16:26:55 EST


Dne 18.8.2013 05:56, lkml@xxxxxxxxxxx napsal(a):
> Hi, I want to provide a general defined macro like __MY__TIME__ (for
> determinictic build) and that symbol should be seen as #define or -D... to gcc
> in all files;
>
> Value of __MY_TIME__ is determined once, at start of build.
>
> I was using file scripts/mkcompile_h as in the attached .diff patch, worked in
> 3.2.48 but in 3.2.50 files do not see the value _MY_BUILD__TIME__

Just drop the remaining occurrences of __TIME__ and __DATA__, it's not
worth the hassle to define new macros.

Michal

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/