soong_config_module_type { name: "ufsbsg_cc_defaults", module_type: "cc_defaults", config_namespace: "ufsbsg", variables: ["ufsframework"], properties: ["cflags"], } soong_config_string_variable { name: "ufsframework", values: ["sg", "bsg"], } ufsbsg_cc_defaults { name: "ufsbsg_defaults", soong_config_variables: { ufsframework: { bsg : { cflags : ["-D_BSG_FRAMEWORK_KERNEL_HEADERS"], }, }, }, } cc_library { name: "libgptutils.xiaomi_sm8450", vendor: true, recovery_available: true, defaults: ["ufsbsg_defaults"], srcs: [ "gpt-utils.cpp", "recovery-ufs-bsg.cpp", ], shared_libs: [ "libcutils", "liblog", "libz", ], cflags: [ "-Wall", "-Wno-unused-parameter", ], sanitize: { cfi: false, }, owner: "qti", export_include_dirs: ["."], header_libs: [ "qti_kernel_headers", "device_kernel_headers", ], }