1 # Copyright (c) 2017 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
20 path: "{{ dpdk_dest }}"
26 dest: "{{ dpdk_dest }}"
28 checksum: "{{ dpdk_md5[dpdk_version] }}"
29 register: package_result
30 until: package_result is succeeded
35 src: "{{ dpdk_dest }}/{{ dpdk_file }}"
36 dest: "{{ dpdk_dest }}/"
39 - name: cleanup tar file to save space
41 path: "{{ dpdk_dest }}/{{ dpdk_file }}"
44 - name: find unzipped DPDK folder
46 paths: "{{ dpdk_dest }}"
47 patterns: "^dpdk-.*{{ dpdk_version }}$"
50 register: dpdk_folder_match
53 msg: "Cannot find unzipped DPDK folder or more than one found"
54 when: dpdk_folder_match.matched != 1
57 dpdk_path: "{{ dpdk_folder_match.files[0].path }}"
60 RTE_SDK: "{{ dpdk_path }}"
63 RTE_TARGET: "{{ dpdk_make_arch }}"