From 0db4d4124f9eb6f14c89dc31104f273ae259c39c Mon Sep 17 00:00:00 2001 From: André Apitzsch Date: Wed, 8 Dec 2021 17:22:42 +0100 Subject: python: Read number of ports from grc file in image builder --- host/python/uhd/imgbuilder/image_builder.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/python') diff --git a/host/python/uhd/imgbuilder/image_builder.py b/host/python/uhd/imgbuilder/image_builder.py index 059d40599..9475ed84a 100644 --- a/host/python/uhd/imgbuilder/image_builder.py +++ b/host/python/uhd/imgbuilder/image_builder.py @@ -550,6 +550,10 @@ def convert_to_image_config(grc, grc_config_path): result["noc_blocks"][block["name"]] = { "block_desc": block["parameters"]["desc"] } + if "nports" in block["parameters"]: + result["noc_blocks"][block["name"]]["parameters"] = { + "NUM_PORTS": block["parameters"]["nports"] + } device_clocks = { port["id"]: port for port in grc_blocks[device['id']]["outputs"] -- cgit v1.2.3