Skip to content
Snippets Groups Projects
Commit 3470caa7 authored by Vivek Dutta's avatar Vivek Dutta
Browse files

Fix compilation

parent 44289f5d
Branches
No related tags found
1 merge request!21Fix compilation
Pipeline #189735 passed
variables:
SOURCE_FOLDER: "src"
CFLAGS: "-DBBF_VENDOR_PREFIX=\\\"X_IOPSYS_EU_\\\""
SYSMNGR_VENDOR_CONFIG_FILE: 'y'
SYSMNGR_MEMORY_STATUS: 'y'
SYSMNGR_PROCESS_STATUS: 'y'
......@@ -11,6 +10,7 @@ variables:
SYSMNGR_VENDOR_EXTENSIONS: 'y'
SYSMNGR_FWBANK_UBUS_SUPPORT: 'y'
SYSMNGR_TEMPERATURE_STATUS: 'y'
SYSMNGR_VENDOR_EXTENSIONS: 'y'
include:
- project: 'iopsys/gitlab-ci-pipeline'
......
......@@ -39,7 +39,7 @@ endif
ifeq ($(SYSMNGR_VENDOR_EXTENSIONS),y)
PROG_CFLAGS += -DSYSMNGR_VENDOR_EXTENSIONS
ifeq ($(CUSTOM_PREFIX),)
ifeq ($(filter -DCUSTOM_PREFIX=%,$(PROG_CFLAGS)),)
PROG_CFLAGS += -DCUSTOM_PREFIX=\"X_IOPSYS_EU_\"
endif
endif
......
......@@ -516,7 +516,9 @@ static operation_args firmware_image_download_args = {
"CheckSumAlgorithm",
"CheckSum",
"CommandKey",
BBF_VENDOR_PREFIX"KeepConfig",
#ifdef SYSMNGR_VENDOR_EXTENSIONS
CUSTOM_PREFIX"KeepConfig",
#endif
NULL
}
};
......@@ -555,8 +557,10 @@ static int operate_DeviceInfoFirmwareImage_Download(char *refparam, struct dmctx
char *checksum_algorithm = dmjson_get_value((json_object *)value, 1, "CheckSumAlgorithm");
char *checksum = dmjson_get_value((json_object *)value, 1, "CheckSum");
char *commandKey = dmjson_get_value((json_object *)value, 1, "CommandKey");
char *keep_config = dmjson_get_value((json_object *)value, 1, BBF_VENDOR_PREFIX"KeepConfig");
char *keep_config = NULL;
#ifdef SYSMNGR_VENDOR_EXTENSIONS
keep_config = dmjson_get_value((json_object *)value, 1, CUSTOM_PREFIX"KeepConfig");
#endif
char *bank_id = get_fwbank_option_value(data, "id");
int res = bbf_fw_image_download(url, auto_activate, username, password, file_size, checksum_algorithm, checksum, bank_id, command, obj_path, commandKey, keep_config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment