2024-01-27 01:37:39 +01:00
|
|
|
GNSS_CFLAGS = [
|
|
|
|
"-Werror",
|
2022-09-09 20:01:05 +02:00
|
|
|
"-Wformat",
|
|
|
|
"-Wformat-extra-args",
|
|
|
|
"-Wunused-label",
|
|
|
|
"-Wunused-variable",
|
|
|
|
"-Wunused-function",
|
|
|
|
"-Wimplicit-fallthrough",
|
|
|
|
"-Wno-unused-parameter",
|
2023-06-07 22:28:37 +02:00
|
|
|
"-Wno-undefined-bool-conversion",
|
2024-01-27 01:37:39 +01:00
|
|
|
]
|
|
|
|
|
2024-02-27 23:45:03 +01:00
|
|
|
soong_config_module_type {
|
|
|
|
name: "qtilocation_cc_defaults",
|
|
|
|
module_type: "cc_defaults",
|
|
|
|
config_namespace: "qtilocation",
|
|
|
|
bool_variables: [
|
|
|
|
"feature_nhz",
|
|
|
|
],
|
|
|
|
properties: [
|
|
|
|
"cflags",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
qtilocation_cc_defaults {
|
|
|
|
name: "qtilocation_common_defaults",
|
|
|
|
cflags: GNSS_CFLAGS,
|
|
|
|
soong_config_variables: {
|
|
|
|
feature_nhz: {
|
|
|
|
cflags: ["-DFEATURE_NHZ_ENABLED"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-01-27 01:37:39 +01:00
|
|
|
/* Activate the following for debug purposes only,
|
|
|
|
comment out for production */
|
|
|
|
GNSS_SANITIZE_DIAG = {
|
|
|
|
/*
|
|
|
|
diag: {
|
|
|
|
cfi: true,
|
|
|
|
misc_undefined: [
|
|
|
|
"bounds",
|
|
|
|
"null",
|
|
|
|
"unreachable",
|
|
|
|
"integer",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
*/
|
|
|
|
}
|