Skip to content

Commit 186b1fd

Browse files
Appana Durga Kedareswara raomichalsimek
authored andcommitted
scripts: west: lopper: support configurable board Kconfig.defconfig for mbv32
Enable dynamic Kconfig.defconfig file override based on hardware design configuration. Previously, the file was hardcoded, but lopper now supports design-specific configuration files that vary based on the hardware setup. This change allows the lopper command to select the appropriate Kconfig.defconfig file for mbv32 platforms based on the actual hardware design rather than using a fixed configuration. Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> Message-ID: <20251012073759.3437560-3-appana.durga.kedareswara.rao@amd.com>
1 parent a101a9c commit 186b1fd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

scripts/west_commands/lopper_command.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ def _process_microblaze_riscv(self, workspace: Path, ws_dir: str, sdt: Path,
272272
'workspace_kconfig_soc': Path(ws_dir) / "soc" / "xlnx" / "mbv32" / "Kconfig",
273273
'generated_kconfig_soc': workspace / "Kconfig",
274274
'generated_board_dt': workspace / "board.overlay",
275-
'workspace_board_overlay': Path(ws_dir) / "boards" / "amd" / "mbv32" / "mbv32.overlay"
275+
'workspace_board_overlay': Path(ws_dir) / "boards" / "amd" / "mbv32" / "mbv32.overlay",
276+
'workspace_board_defconfig': Path(ws_dir) / "boards" / "amd" / "mbv32" / "Kconfig.defconfig",
277+
'generated_board_defconfig': workspace / "board_Kconfig.defconfig"
276278
}
277279

278280
lops_file = lops_dir / "lop-microblaze-riscv.dts"
@@ -292,7 +294,8 @@ def _process_microblaze_riscv(self, workspace: Path, ws_dir: str, sdt: Path,
292294
self._copy_files([
293295
(paths['generated_dts'], paths['workspace_dts']),
294296
(paths['generated_kconfig_defconfig'], paths['workspace_kconfig_defconfig']),
295-
(paths['generated_kconfig_soc'], paths['workspace_kconfig_soc'])
297+
(paths['generated_kconfig_soc'], paths['workspace_kconfig_soc']),
298+
(paths['generated_board_defconfig'], paths['workspace_board_defconfig'])
296299
])
297300

298301
if zephyr_board_dts:

0 commit comments

Comments
 (0)