Re: [PATCH 53/52] tools/perf/build: Clean up feature_print_code()

From: Jiri Olsa
Date: Wed Oct 09 2013 - 04:38:25 EST


On Wed, Oct 09, 2013 at 08:42:05AM +0200, Ingo Molnar wrote:

SNIP

> >
> > I think the issue might be in the eval handling the $(info $(MSG)).
> > With following change on top of your v2 patchset it works for me.
>
> Indeed - and that works here too. Initially I was trying to solve it by
> forcing expansion:
>
> MSG := ...
>
> but I forgot that expansion does not necessarily force evaluation of the
> expression and that Make can still optimize such assignments away if their
> result is not used by a target, correct?

I saw that the $(info $(MSG)) output was delayed to next
iteration, that's why an extra item (DUMMY) was needed
to display all of them

so I guessed the eval had issues with $(info ...) and put
it away.. not sure what the actual reason was.. we could
go with your explanation ;-)


>
> I've applied your cleanup patch below and added your signoff - is that
> fine with you?

sure, np

thanks,
jirka
--
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/