2013-08-18 04:03:43

by [email protected]

[permalink] [raw]
Subject: howto make define seen in all files?

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__


Attachments:
linux-3.2.48-deterministic-build.diff (3.53 kB)

2013-08-19 20:26:51

by Michal Marek

[permalink] [raw]
Subject: Re: howto make define seen in all files?

Dne 18.8.2013 05:56, [email protected] 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