-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts: copy branch specific headers set last
Copy the set of headers, specific for currently used branch, or create symlinks for them in the script run last. Run other sockapi configurations before the scripts fixing ool consistency as further executed scripts need exports from sockapi configurations. Fixes: d74da29 ("scripts: run sockapi configuration scripts last") OL-Redmine-Id: 13098 Signed-off-by: Alexander Kuzminov <alexander.kuzminov@oktetlabs.ru> Reviewed-by: Damir Mansurov <damir.mansurov@oktetlabs.ru>
- Loading branch information
1 parent
8bb89a5
commit 04c3e6c
Showing
3 changed files
with
37 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# (c) Copyright 2023 OKTET Labs Ltd., 2004 - 2022 Xilinx, Inc. All rights reserved. | ||
|
||
# Copy/create symlinks for the set of Onload headers, specific for currently | ||
# used branch | ||
for header in extensions.h extensions_zc.h extensions_timestamping.h\ | ||
extensions_zc_hlrx.h test_intf.h; do | ||
dst_name="${SOCKAPI_TS_LIBDIR}/talib_sockapi_ts/${header}" | ||
if [[ "$SFC_ONLOAD_LOCAL" == "yes" ]]; then | ||
local_file="${SFC_ONLOAD_EXT_HEADERS}/${header}" | ||
target="${SOCKAPI_TS_LIBDIR}/talib_sockapi_ts/copied_headers/${header}" | ||
for ignored_header in "${IGNORED_ONLOAD_HEADERS[@]}"; do | ||
if [[ "${header}" == "${ignored_header}" ]]; then | ||
HEADER_IS_IGNORED="yes" | ||
break | ||
fi | ||
done | ||
if [[ "${HEADER_IS_IGNORED}" == "yes" ]]; then | ||
echo "INFO: file $header does not exist" | ||
else | ||
rsync_from "$TE_IUT" "$local_file" "$target" | ||
fi | ||
HEADER_IS_IGNORED= | ||
else | ||
target="${SFC_ONLOAD_EXT_HEADERS}/${header}" | ||
fi | ||
if test -f "$target"; then | ||
ln_sf_safe "$target" "$dst_name" | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters