gps: refine gps build system
- remove override directive - separate gps configuration files for each device Bug: 291186485 Test: build pass and configuration files are correct Change-Id: I907d5e04c267753ce25e5de5f5080536df7e7041
This commit is contained in:
parent
036e25d0bf
commit
3087d9a54b
12 changed files with 261 additions and 16 deletions
99
location/Android.bp
Normal file
99
location/Android.bp
Normal file
|
@ -0,0 +1,99 @@
|
|||
soong_namespace {}
|
||||
|
||||
package {
|
||||
default_applicable_licenses: ["device_google_comet_license"],
|
||||
}
|
||||
|
||||
soong_config_module_type {
|
||||
name: "gps_prebuilt_etc",
|
||||
module_type: "prebuilt_etc",
|
||||
config_namespace: "gpssdk",
|
||||
variables: [
|
||||
"gpsconf",
|
||||
],
|
||||
properties: [
|
||||
"src",
|
||||
],
|
||||
}
|
||||
|
||||
soong_config_string_variable {
|
||||
name: "gpsconf",
|
||||
values: [
|
||||
"userdebug",
|
||||
"user",
|
||||
"factory",
|
||||
],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "gps.cer",
|
||||
src: "gps.cer",
|
||||
relative_install_path: "gnss",
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
gps_prebuilt_etc {
|
||||
name: "gps.xml",
|
||||
soong_config_variables: {
|
||||
gpsconf: {
|
||||
user: {
|
||||
src: "user/gps.xml",
|
||||
},
|
||||
userdebug: {
|
||||
src: "userdebug/gps.xml",
|
||||
},
|
||||
factory: {
|
||||
src: "factory/gps.xml",
|
||||
},
|
||||
conditions_default: {
|
||||
src: "user/gps.xml",
|
||||
}
|
||||
},
|
||||
},
|
||||
relative_install_path: "gnss",
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
gps_prebuilt_etc {
|
||||
name: "lhd.conf",
|
||||
soong_config_variables: {
|
||||
gpsconf: {
|
||||
user: {
|
||||
src: "user/lhd.conf",
|
||||
},
|
||||
userdebug: {
|
||||
src: "userdebug/lhd.conf",
|
||||
},
|
||||
factory: {
|
||||
src: "factory/lhd.conf",
|
||||
},
|
||||
conditions_default: {
|
||||
src: "user/lhd.conf",
|
||||
}
|
||||
},
|
||||
},
|
||||
relative_install_path: "gnss",
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
gps_prebuilt_etc {
|
||||
name: "scd.conf",
|
||||
soong_config_variables: {
|
||||
gpsconf: {
|
||||
user: {
|
||||
src: "user/scd.conf",
|
||||
},
|
||||
userdebug: {
|
||||
src: "userdebug/scd.conf",
|
||||
},
|
||||
factory: {
|
||||
src: "factory/scd.conf",
|
||||
},
|
||||
conditions_default: {
|
||||
src: "user/scd.conf",
|
||||
}
|
||||
},
|
||||
},
|
||||
relative_install_path: "gnss",
|
||||
vendor: true,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue