numam-dpdk/examples
Bruce Richardson e9c6594264 examples: detect default build directory
Most examples have in their makefiles a default RTE_TARGET directory to be
used in case RTE_TARGET is not set. Rather than just using a hard-coded
default, we can instead detect what the build directory is relative to
RTE_SDK directory.

This fixes a potential issue for anyone who continues to build using
"make install T=x86_64-native-linuxapp-gcc" and skips setting RTE_TARGET
explicitly, instead relying on the fact that they were building in a
directory which corresponded to the example default path - which was
changed to "x86_64-native-linux-gcc" by commit 218c4e68c1 ("mk: use
linux and freebsd in config names").

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
2019-03-30 01:12:15 +01:00
..
bbdev_app examples: detect default build directory 2019-03-30 01:12:15 +01:00
bond examples: detect default build directory 2019-03-30 01:12:15 +01:00
bpf examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
cmdline examples: detect default build directory 2019-03-30 01:12:15 +01:00
distributor examples: detect default build directory 2019-03-30 01:12:15 +01:00
ethtool examples: detect default build directory 2019-03-30 01:12:15 +01:00
eventdev_pipeline examples: detect default build directory 2019-03-30 01:12:15 +01:00
exception_path examples: detect default build directory 2019-03-30 01:12:15 +01:00
fips_validation examples: detect default build directory 2019-03-30 01:12:15 +01:00
flow_classify examples: detect default build directory 2019-03-30 01:12:15 +01:00
flow_filtering examples: detect default build directory 2019-03-30 01:12:15 +01:00
helloworld examples: detect default build directory 2019-03-30 01:12:15 +01:00
ip_fragmentation examples: detect default build directory 2019-03-30 01:12:15 +01:00
ip_pipeline examples: detect default build directory 2019-03-30 01:12:15 +01:00
ip_reassembly examples: detect default build directory 2019-03-30 01:12:15 +01:00
ipsec-secgw examples: detect default build directory 2019-03-30 01:12:15 +01:00
ipv4_multicast examples: detect default build directory 2019-03-30 01:12:15 +01:00
kni examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-cat examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-crypto examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-jobstats examples: detect default build directory 2019-03-30 01:12:15 +01:00
l2fwd-keepalive examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd-acl examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd-power examples: detect default build directory 2019-03-30 01:12:15 +01:00
l3fwd-vf examples: detect default build directory 2019-03-30 01:12:15 +01:00
link_status_interrupt examples: detect default build directory 2019-03-30 01:12:15 +01:00
load_balancer examples: detect default build directory 2019-03-30 01:12:15 +01:00
multi_process examples: detect default build directory 2019-03-30 01:12:15 +01:00
netmap_compat examples: detect default build directory 2019-03-30 01:12:15 +01:00
packet_ordering examples: detect default build directory 2019-03-30 01:12:15 +01:00
performance-thread examples: detect default build directory 2019-03-30 01:12:15 +01:00
ptpclient examples: detect default build directory 2019-03-30 01:12:15 +01:00
qos_meter examples: detect default build directory 2019-03-30 01:12:15 +01:00
qos_sched examples: detect default build directory 2019-03-30 01:12:15 +01:00
quota_watermark examples: detect default build directory 2019-03-30 01:12:15 +01:00
rxtx_callbacks examples: detect default build directory 2019-03-30 01:12:15 +01:00
server_node_efd examples: detect default build directory 2019-03-30 01:12:15 +01:00
service_cores examples: detect default build directory 2019-03-30 01:12:15 +01:00
skeleton examples: detect default build directory 2019-03-30 01:12:15 +01:00
tep_termination examples: detect default build directory 2019-03-30 01:12:15 +01:00
timer examples: detect default build directory 2019-03-30 01:12:15 +01:00
vdpa examples: detect default build directory 2019-03-30 01:12:15 +01:00
vhost examples: detect default build directory 2019-03-30 01:12:15 +01:00
vhost_crypto examples: detect default build directory 2019-03-30 01:12:15 +01:00
vhost_scsi examples: detect default build directory 2019-03-30 01:12:15 +01:00
vm_power_manager examples: detect default build directory 2019-03-30 01:12:15 +01:00
vmdq examples: detect default build directory 2019-03-30 01:12:15 +01:00
vmdq_dcb examples: detect default build directory 2019-03-30 01:12:15 +01:00
Makefile examples: detect default build directory 2019-03-30 01:12:15 +01:00
meson.build mk: build with _GNU_SOURCE defined by default 2018-10-22 11:28:27 +02:00