-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: generic: xlnx: Enable CMake handling for System Device Tree Flow
For AMD-Xilinx tooling, there is a new System Device Tree (SDT) BSP with different symbols for GIC than the classic BSP. This causes issues when linking Libmetal against the SDT Flow BSP. Note that there is a planned deprecation of the classic BSP. For AMD-Xilinx System Device Tree (SDT) Flow, one of the files provided by BSP is bspconfig.h. This file provides reference to the symbols that describe GIC Device ID and GIC distributor Base Address. AMD-Xilinx tools that use the SDT Flow BSP will provide symbol 'SDT' to signal that the SDT Flow BSP is present. If SDT symbol is present then the Libmetal build will include the new header "lib/system/generic/xlnx/sdt.h" to preserve library build. Signed-off-by: Ben Levinsky <ben.levinsky@amd.com>
- Loading branch information
1 parent
f3f365d
commit b81fa1e
Showing
3 changed files
with
38 additions
and
0 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
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,27 @@ | ||
/* | ||
* Copyright (c) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/* | ||
* @file generic/xlnx/sdt.h | ||
* @brief Xilinx-AMD Specific symbols for System Device Tree Flow | ||
*/ | ||
|
||
#ifndef __METAL_GENERIC_SYS_XLNX_SDT_H__ | ||
#define __METAL_GENERIC_SYS_XLNX_SDT_H__ | ||
|
||
/* The Xilinx-AMD System Device Tree (SDT) Flow BSP provides this file. */ | ||
#ifdef SDT | ||
#include "bspconfig.h" | ||
#endif | ||
|
||
#ifdef XPAR_SCUGIC_SINGLE_DEVICE_ID | ||
#define XPAR_SCUGIC_0_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID | ||
#endif | ||
|
||
#ifdef XPAR_SCUGIC_DIST_BASEADDR | ||
#define XPAR_SCUGIC_0_DIST_BASEADDR XPAR_SCUGIC_DIST_BASEADDR | ||
#endif | ||
#endif /* __METAL_GENERIC_SYS_XLNX_SDT_H__ */ |
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