Skip to content

Commit 604e2e2

Browse files
committed
Allow building for devices without GPIO.
1 parent 86e2a19 commit 604e2e2

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

lib/sw_services/xilskey/data/xilskey.mld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ BEGIN LIBRARY xilskey
5757
OPTION REQUIRES_OS = (standalone freertos10_xilinx);
5858
OPTION APP_LINKER_FLAGS = "-Wl,--start-group,-lxilskey,-lxil,-lgcc,-lc,--end-group";
5959
OPTION desc = "Xilinx Secure Key Library supports programming efuse and bbram ";
60-
OPTION VERSION = 6.6;
60+
OPTION VERSION = 6.66;
6161
OPTION NAME = xilskey;
62+
PARAM name = device_with_gpio, desc = "Allows to build a subset of the library when there's no GPIO driver available", type = bool, default = true;
6263
END LIBRARY

lib/sw_services/xilskey/data/xilskey.tcl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ proc xgen_opts_file {libhandle} {
6969
set hw_processor [common::get_property HW_INSTANCE $proc_instance]
7070

7171
set proc_type [common::get_property IP_NAME [hsi::get_cells -hier $hw_processor]];
72+
set device_with_gpio [common::get_property CONFIG.device_with_gpio $libhandle]
7273

7374
set file_handle [::hsi::utils::open_include_file "xparameters.h"]
7475

@@ -87,6 +88,20 @@ proc xgen_opts_file {libhandle} {
8788
}
8889
}
8990

91+
if {$device_with_gpio == false} {
92+
file delete -force ./src/xilskey_epl.c
93+
file delete -force ./src/xilskey_js.h
94+
file delete -force ./src/xilskey_jscmd.c
95+
file delete -force ./src/xilskey_jscmd.h
96+
file delete -force ./src/xilskey_jslib.c
97+
file delete -force ./src/xilskey_jslib.h
98+
file delete -force ./src/xilskey_jtag.h
99+
file delete -force ./src/xilskey_bbram.c
100+
file delete -force ./src/xilskey_bbramps_zynqmp.c
101+
file delete -force ./src/include/xilskey_bbram.h
102+
file delete -force ./src/include/xilskey_epl.h
103+
}
104+
90105
if {$proc_type == "psu_pmu"} {
91106
file delete -force ./src/xilskey_epl.c
92107
file delete -force ./src/xilskey_eps.c

0 commit comments

Comments
 (0)