bond: move param parsing in configure step
[dpdk.git] / scripts / gen-config-h.sh
index 86b41ab..efd7667 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,'                  \