Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 1 | # 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 | |
| 15 | xdp-tools_version := 1.2.9 |
| 16 | xdp-tools_tarball := xdp-tools-$(xdp-tools_version).tar.gz |
| 17 | xdp-tools_tarball_md5sum_1.2.9:= 6e4a49ceea8354bb7bb3b55990e9aed7 |
| 18 | xdp-tools_tarball_md5sum := $(xdp-tools_tarball_md5sum_$(xdp-tools_version)) |
| 19 | xdp-tools_tarball_strip_dirs := 1 |
| 20 | xdp-tools_url := https://github.com/xdp-project/xdp-tools/releases/download/v$(xdp-tools_version)/$(xdp-tools_tarball) |
| 21 | |
| 22 | define xdp-tools_config_cmds |
| 23 | @true |
| 24 | endef |
| 25 | |
| 26 | define xdp-tools_build_cmds |
Renato Botelho do Couto | 893daca | 2024-06-05 18:11:46 +0000 | [diff] [blame] | 27 | @cd ${xdp-tools_src_dir} && $(MAKE) V=1 BUILD_STATIC_ONLY=y > $(xdp-tools_build_log) |
Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 28 | endef |
| 29 | |
| 30 | define xdp-tools_install_cmds |
| 31 | @rm -f $(xdp-tools_install_log) |
| 32 | @cd ${xdp-tools_src_dir} && \ |
Renato Botelho do Couto | 893daca | 2024-06-05 18:11:46 +0000 | [diff] [blame] | 33 | $(MAKE) -C lib/libbpf/src install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log) |
Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 34 | @cd ${xdp-tools_src_dir} && \ |
Renato Botelho do Couto | 893daca | 2024-06-05 18:11:46 +0000 | [diff] [blame] | 35 | $(MAKE) libxdp_install V=1 BUILD_STATIC_ONLY=y PREFIX='' DESTDIR='$(xdp-tools_install_dir)' >> $(xdp-tools_install_log) |
Yulong Pei | f9a1748 | 2023-01-05 02:26:32 +0000 | [diff] [blame] | 36 | endef |
| 37 | |
| 38 | $(eval $(call package,xdp-tools)) |