X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fethtool%2FMakefile;h=d3b97bb50b51e0299e01c8155424e4c25725bdeb;hb=6fd44a47a73e8de649ed8636e4972ef18e81aeae;hp=27908bb63b8a6191dce4f8f9535351a1e02eb629;hpb=218c4e68c1d9bd4a9281bc1dc4d0ab89859083bf;p=dpdk.git diff --git a/examples/ethtool/Makefile b/examples/ethtool/Makefile index 27908bb63b..d3b97bb50b 100644 --- a/examples/ethtool/Makefile +++ b/examples/ethtool/Makefile @@ -5,8 +5,8 @@ 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-linux-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