X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fethtool%2Flib%2FMakefile;fp=examples%2Fethtool%2Flib%2FMakefile;h=9da7dc3ba2177cd789aa7e59bc4eb4aa03260f47;hb=e9c659426416c95c4469b16e6bcc7700f1898278;hp=70e00eee8bcab11805dea0cf72d97c25b9bc5b57;hpb=ff1e35fb5f8330f89d13f58c9fb767b5bd188940;p=dpdk.git diff --git a/examples/ethtool/lib/Makefile b/examples/ethtool/lib/Makefile index 70e00eee8b..9da7dc3ba2 100644 --- a/examples/ethtool/lib/Makefile +++ b/examples/ethtool/lib/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