MODULE_CFLAGS += -I$(RTE_OUTPUT)/include -I$(SRCDIR)/ethtool/ixgbe -I$(SRCDIR)/ethtool/igb
MODULE_CFLAGS += -include $(RTE_OUTPUT)/include/rte_config.h
MODULE_CFLAGS += -Wall -Werror
-MODULE_CFLAGS += -include $(RTE_OUTPUT)/include/rte_config.h
# this lib needs main eal
DEPDIRS-y += lib/librte_eal/linuxapp/eal
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+echo "#ifndef __RTE_CONFIG_H"
+echo "#define __RTE_CONFIG_H"
grep CONFIG_ $1 \
| grep -v '^#' \
| sed 's,CONFIG_\(.*\)=y.*$,#define \1 1,' \
| sed 's,CONFIG_\(.*\)=n.*$,#undef \1,' \
| sed 's,CONFIG_\(.*\)=\(.*\)$,#define \1 \2,' \
| sed 's,\# CONFIG_\(.*\) is not set$,#undef \1,'
+echo "#endif /* __RTE_CONFIG_H */"
+