blob: b65ae1361f52b4d5c62be0e1aacf3a5565f11c95 [file] [log] [blame]
Yulong Peif9a17482023-01-05 02:26:32 +00001# Copyright (c) 2023 Intel and/or its affiliates.
2# Copyright (c) 2018 Cisco and/or its affiliates.
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:
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15xdp-tools_version := 1.2.9
16xdp-tools_tarball := xdp-tools-$(xdp-tools_version).tar.gz
17xdp-tools_tarball_md5sum_1.2.9:= 6e4a49ceea8354bb7bb3b55990e9aed7
18xdp-tools_tarball_md5sum := $(xdp-tools_tarball_md5sum_$(xdp-tools_version))
19xdp-tools_tarball_strip_dirs := 1
20xdp-tools_url := https://github.com/xdp-project/xdp-tools/releases/download/v$(xdp-tools_version)/$(xdp-tools_tarball)
21
22define xdp-tools_config_cmds
23 @true
24endef
25
26define xdp-tools_build_cmds
27 @cd ${xdp-tools_src_dir} && make V=1 BUILD_STATIC_ONLY=y > $(xdp-tools_build_log)
28endef
29
30define xdp-tools_install_cmds
31 @rm -f $(xdp-tools_install_log)
32 @cd ${xdp-tools_src_dir} && \
33 make -C lib/libbpf/src install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
34 @cd ${xdp-tools_src_dir} && \
35 make libxdp_install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
36endef
37
38$(eval $(call package,xdp-tools))