]> git.droids-corp.org - dpdk.git/blobdiff - scripts/gen-config-h.sh
bond: move param parsing in configure step
[dpdk.git] / scripts / gen-config-h.sh
index 86b41ab66a3c1b6be054e057d63c7eb675256341..efd7667a15b95e30caf02f4a865c814e821090fa 100755 (executable)
@@ -34,7 +34,7 @@
 echo "#ifndef __RTE_CONFIG_H"
 echo "#define __RTE_CONFIG_H"
 grep CONFIG_ $1                                                         \
-| grep -v '^#'                                                  \
+| grep -v '^[ \t]*#'                                                    \
 | sed 's,CONFIG_\(.*\)=y.*$,#define \1 1,'                      \
 | sed 's,CONFIG_\(.*\)=n.*$,#undef \1,'                                 \
 | sed 's,CONFIG_\(.*\)=\(.*\)$,#define \1 \2,'                  \