X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fethtool%2FMakefile;h=d3b97bb50b51e0299e01c8155424e4c25725bdeb;hb=611faa5f46cc67449f272e14450fc6a0a275767d;hp=2b40b4b617fd3b3e7be840c73b06afb70c4df9fe;hpb=3998e2a07220844d3f3c17f76a781ced3efe0de0;p=dpdk.git diff --git a/examples/ethtool/Makefile b/examples/ethtool/Makefile index 2b40b4b617..d3b97bb50b 100644 --- a/examples/ethtool/Makefile +++ b/examples/ethtool/Makefile @@ -5,13 +5,13 @@ ifeq ($(RTE_SDK),) $(error "Please define RTE_SDK environment variable") endif -# Default target, can be overwritten by command line or environment -RTE_TARGET ?= x86_64-native-linuxapp-gcc +# Default target, detect a build directory, by looking for a path with a .config +RTE_TARGET ?= $(notdir $(abspath $(dir $(firstword $(wildcard $(RTE_SDK)/*/.config))))) include $(RTE_SDK)/mk/rte.vars.mk -ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") -$(info This application can only operate in a linuxapp environment, \ +ifneq ($(CONFIG_RTE_EXEC_ENV_LINUX),y) +$(info This application can only operate in a linux environment, \ please change the definition of the RTE_TARGET environment variable) else