summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2014-11-28 16:42:44 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-11-28 17:05:02 +0100
commit545051540e3f4489cfd6e6584ee555bf0dd1b93c (patch)
treefd7baac003a8d0c1db5f4ff16d3cbb82b21eaa5c /scripts
parent2d3ba696546497430af6a42d434f2b75c50e784f (diff)
downloaddpdk-545051540e3f4489cfd6e6584ee555bf0dd1b93c.zip
dpdk-545051540e3f4489cfd6e6584ee555bf0dd1b93c.tar.gz
dpdk-545051540e3f4489cfd6e6584ee555bf0dd1b93c.tar.xz
scripts: fix newline in configuration with bsd sed
Use of \n in sed expression is not portable and triggered an invalid configuration on BSD (at least). Replace with an explicit newline. Reported-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: David Marchand <david.marchand@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-config-h.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gen-config-h.sh b/scripts/gen-config-h.sh
index 2fac08c..d36efd6 100755
--- a/scripts/gen-config-h.sh
+++ b/scripts/gen-config-h.sh
@@ -35,9 +35,11 @@ echo "#ifndef __RTE_CONFIG_H"
echo "#define __RTE_CONFIG_H"
grep CONFIG_ $1 |
grep -v '^[ \t]*#' |
-sed 's,CONFIG_\(.*\)=y.*$,#undef \1\n#define \1 1,' |
+sed 's,CONFIG_\(.*\)=y.*$,#undef \1\
+#define \1 1,' |
sed 's,CONFIG_\(.*\)=n.*$,#undef \1,' |
-sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\n#define \1 \2,' |
+sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\
+#define \1 \2,' |
sed 's,\# CONFIG_\(.*\) is not set$,#undef \1,'
echo "#endif /* __RTE_CONFIG_H */"