|
| 1 | +# |
| 2 | +# Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. |
| 3 | +# Apache-2.0 |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +MLNX_RSHIM_DRIVER_VERSION = 2.0.19 |
| 19 | +MLNX_RSHIM_ASSETS_GITHUB_URL = https://github.com/Mellanox/sonic-bluefield-packages |
| 20 | +MLNX_RSHIM_ASSETS_RELEASE_TAG = rshim-$(MLNX_RSHIM_DRIVER_VERSION)-$(BLDENV)-$(CONFIGURED_ARCH) |
| 21 | +MLNX_RSHIM_ASSETS_URL = $(MLNX_RSHIM_ASSETS_GITHUB_URL)/releases/download/$(MLNX_RSHIM_ASSETS_RELEASE_TAG) |
| 22 | + |
| 23 | +MLNX_RSHIM = rshim_${MLNX_RSHIM_DRIVER_VERSION}_${CONFIGURED_ARCH}.deb |
| 24 | +$(MLNX_RSHIM)_SRC_PATH = $(PLATFORM_PATH)/rshim |
| 25 | +$(MLNX_RSHIM)_URL = $(MLNX_RSHIM_ASSETS_URL)/$(MLNX_RSHIM) |
| 26 | +$(MLNX_RSHIM)_DEPENDS += $(LINUX_HEADERS) $(LINUX_HEADERS_COMMON) |
| 27 | + |
| 28 | +MLNX_BSD_RSHIM_SRC_BASE_URL = |
| 29 | + |
| 30 | +export MLNX_RSHIM MLNX_BSD_RSHIM_SRC_BASE_URL MLNX_RSHIM_DRIVER_VERSION |
| 31 | + |
| 32 | +ifneq ($(MLNX_BSD_RSHIM_SRC_BASE_URL), ) |
| 33 | +SONIC_MAKE_DEBS += $(MLNX_RSHIM) |
| 34 | +else |
| 35 | +SONIC_ONLINE_DEBS += $(MLNX_RSHIM) |
| 36 | +endif |
0 commit comments