examples: detect default build directory
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 27 Mar 2019 13:58:05 +0000 (13:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 30 Mar 2019 00:12:15 +0000 (01:12 +0100)
commite9c659426416c95c4469b16e6bcc7700f1898278
tree6cf3bb6af1365ad059548bd90b17f2e033f51429
parentff1e35fb5f8330f89d13f58c9fb767b5bd188940
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 218c4e68c1d9 ("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>
65 files changed:
examples/Makefile
examples/bbdev_app/Makefile
examples/bond/Makefile
examples/cmdline/Makefile
examples/distributor/Makefile
examples/ethtool/Makefile
examples/ethtool/ethtool-app/Makefile
examples/ethtool/lib/Makefile
examples/eventdev_pipeline/Makefile
examples/exception_path/Makefile
examples/fips_validation/Makefile
examples/flow_classify/Makefile
examples/flow_filtering/Makefile
examples/helloworld/Makefile
examples/ip_fragmentation/Makefile
examples/ip_pipeline/Makefile
examples/ip_reassembly/Makefile
examples/ipsec-secgw/Makefile
examples/ipv4_multicast/Makefile
examples/kni/Makefile
examples/l2fwd-cat/Makefile
examples/l2fwd-crypto/Makefile
examples/l2fwd-jobstats/Makefile
examples/l2fwd-keepalive/Makefile
examples/l2fwd-keepalive/ka-agent/Makefile
examples/l2fwd/Makefile
examples/l3fwd-acl/Makefile
examples/l3fwd-power/Makefile
examples/l3fwd-vf/Makefile
examples/l3fwd/Makefile
examples/link_status_interrupt/Makefile
examples/load_balancer/Makefile
examples/multi_process/Makefile
examples/multi_process/client_server_mp/Makefile
examples/multi_process/client_server_mp/mp_server/Makefile
examples/multi_process/hotplug_mp/Makefile
examples/multi_process/simple_mp/Makefile
examples/multi_process/symmetric_mp/Makefile
examples/netmap_compat/Makefile
examples/netmap_compat/bridge/Makefile
examples/packet_ordering/Makefile
examples/performance-thread/Makefile
examples/performance-thread/l3fwd-thread/Makefile
examples/performance-thread/pthread_shim/Makefile
examples/ptpclient/Makefile
examples/qos_meter/Makefile
examples/qos_sched/Makefile
examples/quota_watermark/Makefile
examples/quota_watermark/qw/Makefile
examples/quota_watermark/qwctl/Makefile
examples/rxtx_callbacks/Makefile
examples/server_node_efd/Makefile
examples/server_node_efd/server/Makefile
examples/service_cores/Makefile
examples/skeleton/Makefile
examples/tep_termination/Makefile
examples/timer/Makefile
examples/vdpa/Makefile
examples/vhost/Makefile
examples/vhost_crypto/Makefile
examples/vhost_scsi/Makefile
examples/vm_power_manager/Makefile
examples/vm_power_manager/guest_cli/Makefile
examples/vmdq/Makefile
examples/vmdq_dcb/Makefile