[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread David Marchand
On Fri, Nov 28, 2014 at 3:59 PM, Bruce Richardson < bruce.richardson at intel.com> wrote: > Yes, it's ugly, but it's probably more resilient. I'm looking forward to > getting > an option C. > Option C and D are ugly as well (using some bashism like $' ' or using an intermediate variable with a ne

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread David Marchand
On Fri, Nov 28, 2014 at 3:43 PM, Bruce Richardson < bruce.richardson at intel.com> wrote: > This proposed fix also works. I don't mind whether my patch proposal or > this > fix gets applied - gen-config-h.sh is not a commonly modified script > anyway. > I prefer my ugliness ;-) But Thomas just pr

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread David Marchand
Hello Bruce, On Fri, Nov 28, 2014 at 2:56 PM, Bruce Richardson < bruce.richardson at intel.com> wrote: > On Thu, Nov 27, 2014 at 10:17:22AM -0800, Thomas Monjalon wrote: > > > When redefining the same symbol in configuration (basically after an > inclusion), > > > we need to undefine the previous

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread Bruce Richardson
On Fri, Nov 28, 2014 at 03:49:29PM +0100, David Marchand wrote: > On Fri, Nov 28, 2014 at 3:43 PM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > This proposed fix also works. I don't mind whether my patch proposal or > > this > > fix gets applied - gen-config-h.sh is not a commo

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread Bruce Richardson
On Fri, Nov 28, 2014 at 03:06:11PM +0100, David Marchand wrote: > Hello Bruce, > > On Fri, Nov 28, 2014 at 2:56 PM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > On Thu, Nov 27, 2014 at 10:17:22AM -0800, Thomas Monjalon wrote: > > > > When redefining the same symbol in configur

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread Bruce Richardson
On Fri, Nov 28, 2014 at 03:06:11PM +0100, David Marchand wrote: > Hello Bruce, > > On Fri, Nov 28, 2014 at 2:56 PM, Bruce Richardson < > bruce.richardson at intel.com> wrote: > > > On Thu, Nov 27, 2014 at 10:17:22AM -0800, Thomas Monjalon wrote: > > > > When redefining the same symbol in configur

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread Bruce Richardson
On Thu, Nov 27, 2014 at 10:17:22AM -0800, Thomas Monjalon wrote: > > When redefining the same symbol in configuration (basically after an > > inclusion), > > we need to undefine the previous symbol to avoid "redefined" errors. > > > > Signed-off-by: David Marchand > > Acked-by: Thomas Monjalon

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-28 Thread Bruce Richardson
On Thu, Nov 27, 2014 at 12:29:05PM +0100, David Marchand wrote: > When redefining the same symbol in configuration (basically after an > inclusion), > we need to undefine the previous symbol to avoid "redefined" errors. > > Signed-off-by: David Marchand Though I see this patch is already replie

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-27 Thread David Marchand
When redefining the same symbol in configuration (basically after an inclusion), we need to undefine the previous symbol to avoid "redefined" errors. Signed-off-by: David Marchand --- scripts/gen-config-h.sh | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scrip

[dpdk-dev] [PATCH] scripts: fix symbol overriding in configuration files

2014-11-27 Thread Thomas Monjalon
> When redefining the same symbol in configuration (basically after an > inclusion), > we need to undefine the previous symbol to avoid "redefined" errors. > > Signed-off-by: David Marchand Acked-by: Thomas Monjalon Applied Thanks -- Thomas