diff options
| author | Jaewon Lee <jaewon.lee@xilinx.com> | 2020-10-14 16:02:58 -0700 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2020-10-23 12:44:50 -0700 |
| commit | faebb5c98aed8a1ad10b598858073ece6c7f7cdc (patch) | |
| tree | a01192bedd8f953e9eb1074db3a5f4d7210e5d92 /meta-xilinx-bsp/conf | |
| parent | a3f53fdac1215d44de5f5eb50f1d3ded0f966054 (diff) | |
| download | meta-xilinx-faebb5c98aed8a1ad10b598858073ece6c7f7cdc.tar.gz | |
xilinx-board.inc: Introducing inc file to add BOARD/BOARD_VARIANT
Introducing an include file to add levels of hiearchy to PACKAGE_ARCH,
namely BOARD and BOARD_VARIANT
To use this, future confs will need to have the following line:
require conf/machine/include/xilinx-board.inc
Along with BOARD/BOARD_VARIANT definitions
Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Diffstat (limited to 'meta-xilinx-bsp/conf')
| -rw-r--r-- | meta-xilinx-bsp/conf/machine/include/xilinx-board.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/conf/machine/include/xilinx-board.inc b/meta-xilinx-bsp/conf/machine/include/xilinx-board.inc new file mode 100644 index 00000000..ae209fd6 --- /dev/null +++ b/meta-xilinx-bsp/conf/machine/include/xilinx-board.inc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | BOARD ??= "" | ||
| 2 | BOARD_VARIANT ??= "" | ||
| 3 | |||
| 4 | MACHINEOVERRIDES =. "${@['', '${BOARD}:']['${BOARD}' != '']}" | ||
| 5 | MACHINEOVERRIDES =. "${@['', '${BOARD}${BOARD_VARIANT}:']['${BOARD_VARIANT}' != '']}" | ||
| 6 | |||
| 7 | |||
| 8 | SOC_BOARD_ARCH ?= "${BOARD}" | ||
| 9 | SOC_BOARDVARIANT_ARCH ?= "${BOARD}${BOARD_VARIANT}" | ||
| 10 | |||
| 11 | PACKAGE_EXTRA_ARCHS_append = " ${SOC_BOARD_ARCH}" | ||
| 12 | PACKAGE_EXTRA_ARCHS_append = "${@['', ' ${SOC_BOARDVARIANT_ARCH}'][d.getVar('SOC_BOARDVARIANT_ARCH') != d.getVar('SOC_BOARD_ARCH')]}" | ||
