blob: b9285971f4248d0dbf50dbc3d9791c17f1391f66 [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
Renato Botelho do Couto893daca2024-06-05 18:11:46 +000027 @cd ${xdp-tools_src_dir} && $(MAKE) V=1 BUILD_STATIC_ONLY=y > $(xdp-tools_build_log)
Yulong Peif9a17482023-01-05 02:26:32 +000028endef
29
30define xdp-tools_install_cmds
31 @rm -f $(xdp-tools_install_log)
32 @cd ${xdp-tools_src_dir} && \
Renato Botelho do Couto893daca2024-06-05 18:11:46 +000033 $(MAKE) -C lib/libbpf/src install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
Yulong Peif9a17482023-01-05 02:26:32 +000034 @cd ${xdp-tools_src_dir} && \
Renato Botelho do Couto893daca2024-06-05 18:11:46 +000035 $(MAKE) libxdp_install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log)
Yulong Peif9a17482023-01-05 02:26:32 +000036endef
37
38$(eval $(call package,xdp-tools))