2012-09-04 12:54:00 +00:00
|
|
|
#!/bin/sh
|
2017-12-19 15:49:00 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright(c) 2010-2014 Intel Corporation
|
2012-09-04 12:54:00 +00:00
|
|
|
|
2013-11-08 02:00:00 +00:00
|
|
|
echo "#ifndef __RTE_CONFIG_H"
|
|
|
|
echo "#define __RTE_CONFIG_H"
|
2014-11-27 11:29:05 +00:00
|
|
|
grep CONFIG_ $1 |
|
|
|
|
grep -v '^[ \t]*#' |
|
2014-11-28 15:42:44 +00:00
|
|
|
sed 's,CONFIG_\(.*\)=y.*$,#undef \1\
|
|
|
|
#define \1 1,' |
|
2014-11-27 11:29:05 +00:00
|
|
|
sed 's,CONFIG_\(.*\)=n.*$,#undef \1,' |
|
2014-11-28 15:42:44 +00:00
|
|
|
sed 's,CONFIG_\(.*\)=\(.*\)$,#undef \1\
|
|
|
|
#define \1 \2,' |
|
2014-11-27 11:29:05 +00:00
|
|
|
sed 's,\# CONFIG_\(.*\) is not set$,#undef \1,'
|
2013-11-08 02:00:00 +00:00
|
|
|
echo "#endif /* __RTE_CONFIG_H */"
|