blob: 71c1cea86329eb6199f4a62c1b0050bc7d10e295 [file] [log] [blame] [edit]
#
# Copyright 2018 The ChromiumOS Authors
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
touch: &touch
$fw_root: "/lib/firmware"
$fw_dest: "/opt/google/touch/firmware"
audio: &audio
main:
$cras_root: "/etc/cras"
$ucm_root: "/usr/share/alsa/ucm"
$fw_root: "/lib/firmware"
$card: "a-card"
cras-config-dir: "{{$name}}"
ucm-suffix: "{{$name}}"
$volume: "{{cras-config-dir}}/{{$card}}"
$dsp-ini: "{{cras-config-dir}}/dsp.ini"
$hifi-conf: "{{$card}}.{{ucm-suffix}}/HiFi.conf"
$alsa-conf: "{{$card}}.{{ucm-suffix}}/{{$card}}.{{ucm-suffix}}.conf"
$topology-bin: "{{$topology-name}}-tplg.bin"
files:
- source: "cras-config/{{$volume}}"
destination: "{{$cras_root}}/{{$volume}}"
- source: "cras-config/{{$dsp-ini}}"
destination: "{{$cras_root}}/{{$dsp-ini}}"
- source: "ucm-config/{{$hifi-conf}}"
destination: "{{$ucm_root}}/{{$hifi-conf}}"
- source: "ucm-config/{{$alsa-conf}}"
destination: "{{$ucm_root}}/{{$alsa-conf}}"
- source: "topology/{{$topology-bin}}"
destination: "{{$fw_root}}/{{$topology-bin}}"
some_base_config: &some_base_config
name: "{{$name}}"
arc:
hardware-features:
build-path: "some/hardware_features.xml"
system-path: "/etc/some_hardware_features.xml"
media-profiles:
build-path: "some/media_profiles.xml"
system-path: "/etc/some_media_profiles.xml"
media-codecs:
build-path: "some/media_codecs_c2.xml"
system-path: "/etc/some_media_codecs_c2.xml"
media-codecs-performance:
build-path: "some/media_codecs_performance_c2.xml"
system-path: "/etc/some_media_codecs_performance_c2.xml"
build-properties:
product: "{{$name}}"
device: "{{$name}}_cheets"
metrics-tag: "abc123"
camera:
count: 1
firmware:
bcs-overlay: "overlay-some-private"
build-targets:
coreboot: "some"
ec: "some"
depthcharge: "some"
libpayload: "some"
u-boot: "some"
ec-ro-image: "bcs://Some_EC.1111.11.1.tbz2"
ec-rw-image: "bcs://Some_EC_RW.1111.11.1.tbz2"
has-ec-component-manifest: True
main-ro-image: "bcs://Some.1111.11.1.tbz2"
main-rw-image: "bcs://Some_RW.1111.11.1.tbz2"
fingerprint:
board: "bloonchipper"
ro-version: "VERSION1"
power:
allow-ambient-eq: "1"
charging-ports: |
CROS_USB_PD_CHARGER0 LEFT
CROS_USB_PD_CHARGER1 RIGHT
cutoff-power-ua: "-1"
hibernate-power-ua: "-1"
keyboard-backlight-no-als-brightness: "98.7"
low-battery-shutdown-percent: "100.0"
power-supply-full-factor: "0.0"
set-wifi-transmit-power-for-tablet-mode: "1"
smart-discharge-to-zero-hr: "-1"
suspend-to-idle: "0"
touchpad-wakeup: "1"
ui: &ui_common
apps:
extra-web-apps-dir: "{{$name}}"
power-button:
edge: "left"
position: "0.3"
oem-id: "{{$oem-id}}"
some_config: &some_config
<<: *some_base_config
audio:
<<: *audio
$topology-name: "some"
demo-mode:
highlights-extension-id: "iggildboghmjpbjcpmobahnkmoefkike"
screensaver-extension-id: "gdobaoeekhiklaljmhladjfdfkigampc"
firmware-signing:
key-id: "{{$key-id}}"
signature-id: "{{$name}}"
hardware-properties:
form-factor: CONVERTIBLE
recovery-input: POWER_BUTTON
is-lid-convertible: true
identity:
platform-name: "Some"
frid: "{{$frid}}"
sku-id: "{{$sku-id}}"
modem:
firmware-variant: "some"
wedge-reboot-delay-ms : "20000"
wallpaper: "some"
$oem-id: "0"
$frid: "Some"
some_whitelabel_config: &some_whitelabel_config
<<: *some_base_config
brand-code: "{{$brand-code}}"
identity:
platform-name: "Some"
frid: "Google_Some"
sku-id: "{{$sku-id}}"
whitelabel-tag: "{{$whitelabel-tag}}"
firmware-signing:
key-id: "{{$key-id}}"
signature-id: "{{$name}}-{{$whitelabel-tag}}"
sig-id-in-customization-id: True
hardware-properties:
form-factor: CHROMEBOX
is-lid-convertible: false
$oem-id: "1"
multi_whitelabel_config: &multi_whitelabel_config
<<: *some_base_config
brand-code: "{{$brand-code}}"
identity:
platform-name: "Multi"
frid: "Google_Multi{{$firmware-suffix}}"
sku-id: "{{$sku-id}}"
whitelabel-tag: "{{$whitelabel-tag}}"
firmware-signing:
key-id: "{{$key-id}}"
signature-id: "{{$name}}{{$firmware-suffix}}-{{$whitelabel-tag}}"
sig-id-in-customization-id: True
hardware-properties:
form-factor: CHROMEBOX
is-lid-convertible: false
firmware:
image-name: "multi{{$firmware-suffix}}"
$oem-id: "1"
$firmware-suffix: ""
some_touch_config: &some_touch_config
<<: *touch
$some_stylus: "some_stylus_vendor/some-version.hex"
$some_touchscreen: "some_touch_vendor/some-pid_some-version.bin"
$some_other_touchscreen: "some_touch_vendor/some-other-pid_some-other-version.bin"
files:
- source: "{{$some_stylus}}"
destination: "{{$fw_dest}}/{{$some_stylus}}"
symlink: "{{$fw_root}}/some_stylus_vendor_firmware_SOME.bin"
- source: "{{$some_touchscreen}}"
destination: "{{$fw_dest}}/{{$some_touchscreen}}"
symlink: "{{$fw_root}}/some_touch_vendorts_i2c_some-pid.bin"
- source: "{{$some_other_touchscreen}}"
destination: "{{$fw_dest}}/{{$some_other_touchscreen}}"
symlink: "{{$fw_root}}/some_touch_vendorts_i2c_some-other-pid.bin"
chromeos:
devices:
- $name: "some"
products:
- $key-id: "SOME"
skus:
- $sku-id: 0
config:
<<: *some_config
hardware-properties:
is-lid-convertible: true
has-base-accelerometer: true
has-base-gyroscope: true
has-lid-accelerometer: true
touch: *some_touch_config
thermal:
dptf-dv: "/etc/dptf/some_touch/dptf.dv"
files:
- source: "some_touch/dptf.dv"
destination: "{{dptf-dv}}"
wifi:
sar-file:
build-path: "build-path/wifi_sar_2.hex"
system-path: "/firmware/cbfs-rw-raw/proj/wifi_sar_2.hex"
- $sku-id: 1
$frid: "Some_Other"
config:
<<: *some_config
hardware-properties:
is-lid-convertible: false
hwid-override: SOME-ZZCR A6B-C5D-A4E
efi:
bootvar-name-override: "Some OS"
touch: *some_touch_config
thermal:
files:
- source: "some_notouch/dptf.dv"
destination: "/etc/dptf/some_notouch/dptf.dv"
wifi:
sar-file:
build-path: "build-path/wifi_sar_2.hex"
system-path: "/firmware/cbfs-rw-raw/proj/wifi_sar_2.hex"
proximity-sensor:
semtech-config:
- location: "wifi_right"
file:
build-path: "build_path/config_project_right.json"
system-path: "/usr/share/chromeos-assets/proximity-sensor/wifi/config_project_right.json"
- $name: "some2"
products:
- $key-id: "SOME"
skus:
- $sku-id: 2
config:
<<: *some_config
firmware:
# if image-name is present, then coreboot build-target is not
# required to be present
image-name: "some2"
build-targets:
zephyr-ec: "experimental/some2"
- $sku-id: 3
config:
<<: *some_config
firmware:
# if image-name is present, then coreboot build-target is not
# required to be present
image-name: "some2_custom"
build-targets:
zephyr-ec: "experimental/some2"
- $name: "another"
products:
- $key-id: "ANOTHER"
skus:
- config:
name: "{{$name}}"
arc:
build-properties:
product: "{{$name}}"
device: "{{$name}}_cheets"
metrics-tag: "abc123"
audio:
<<: *audio
$topology-name: "another"
displays:
- connector-type: 14
rounded-corners:
top-left: 15
top-right: 15
bottom-left: 15
bottom-right: 15
hardware-properties:
form-factor: CONVERTIBLE
recovery-input: KEYBOARD
is-lid-convertible: true
identity:
platform-name: "Some"
frid: "Google_Another"
fingerprint:
board: "dartmonkey"
ro-version: "VERSION3"
firmware:
bcs-overlay: "overlay-another-private"
detachable-ui: True
ec-ro-image: "bcs://Another_EC.1111.11.1.tbz2"
main-ro-image: "bcs://Another.1111.11.1.tbz2"
main-rw-image: "bcs://Another_RW.1111.11.1.tbz2"
main-rw-a-hash: "4c7655c067999e7cf097f050d05666cb"
main-rw-a-hash-algorithm: "md5sum"
build-targets:
base: "another_base"
ec_extras:
- "extra1"
- "extra2"
coreboot: "another"
gsc: "another"
ec: "another"
depthcharge: "another"
libpayload: "another"
zephyr-ec: "some/{{$name}}"
zephyr-detachable-base: "another_zephyr_base"
firmware-config: 0xFFFFFFFF
detachable-base:
ec-image-name: "another_zephyr_base"
touch-image-name: "another_zephyr_base-touch.fw"
ui:
<<: *ui_common
extra-ash-flags:
- --foo-flag
- --bar-flag=baz
- --bam
firmware-signing:
key-id: "{{$key-id}}"
signature-id: "{{$name}}"
touch:
<<: *touch
$some_stylus: "some_stylus_vendor/another-version.hex"
$some_touchscreen: "some_touch_vendor/some-pid_some-version.bin"
files:
- source: "{{$some_stylus}}"
destination: "{{$fw_dest}}/{{$some_stylus}}"
symlink: "{{$fw_root}}/some_stylus_vendor_firmware_ANOTHER.bin"
- source: "{{$some_touchscreen}}"
destination: "{{$fw_dest}}/{{$some_touchscreen}}"
symlink: "{{$fw_root}}/some_touch_vendorts_i2c_some-pid.bin"
proximity-sensor:
semtech-config:
- location: "wifi_left"
file:
build-path: "build_path/config_project_left.json"
system-path: "/usr/share/chromeos-assets/proximity-sensor/wifi/config_project_left.json"
thermal:
files:
- source: "another/dptf.dv"
destination: "/etc/dptf/another/dptf.dv"
wifi:
sar-file:
build-path: "build-path/wifi_sar_3.hex"
system-path: "/firmware/cbfs-rw-raw/proj/wifi_sar_3.hex"
wallpaper: "default"
- $name: "some_customization"
products:
- $key-id: "SOME_CUSTOMIZATION"
skus:
- config:
name: "{{$name}}"
arc:
build-properties:
product: "{{$name}}"
device: "{{$name}}_cheets"
metrics-tag: "abc123"
identity:
platform-name: "Some"
frid: "Google_SomeCustomization"
customization-id: "SomeCustomization"
fingerprint:
board: "bloonchipper"
ro-version: "VERSION1"
firmware:
no-firmware: true
firmware-signing:
key-id: "{{$key-id}}"
signature-id: "{{name}}"
- $name: "whitelabel"
products:
- $brand-code: "WLBA"
$key-id: "WHITELABEL1"
$wallpaper: "wallpaper-wl1"
$whitelabel-tag: "whitelabel1"
- $brand-code: "WLBB"
$key-id: "WHITELABEL2"
$wallpaper: "wallpaper-wl2"
$whitelabel-tag: "whitelabel2"
skus:
- $sku-id: 8
config:
<<: *some_whitelabel_config
wallpaper: "{{$wallpaper}}"
touch: *some_touch_config
wifi:
mtcl-file:
build-path: "build-path/wifi_mctl.bin"
system-path: "/firmware/cbfs-rw-raw/proj/wifi_mtcl.bin"
- $sku-id: 9
config:
<<: *some_whitelabel_config
wallpaper: "{{$wallpaper}}"
touch: *some_touch_config
- $name: "badrecovery1"
products:
- $key-id: "BAD1"
- $key-id: "BAD2"
skus:
- $sku-id: 10
config:
<<: *some_base_config
$oem-id: "0"
identity:
custom-label-tag: "{{$key-id}}"
sku-id: "{{$sku-id}}"
firmware:
build-targets:
coreboot: "badrecovery1"
ec: "badrecovery1"
depthcharge: "badrecovery1"
libpayload: "badrecovery1"
u-boot: "badrecovery1"
hardware-properties:
form-factor: CLAMSHELL
recovery-input: KEYBOARD
- $sku-id: 11
config:
<<: *some_base_config
$oem-id: "0"
identity:
custom-label-tag: "{{$key-id}}"
sku-id: "{{$sku-id}}"
firmware:
build-targets:
coreboot: "badrecovery1"
ec: "badrecovery1"
depthcharge: "badrecovery1"
libpayload: "badrecovery1"
u-boot: "badrecovery1"
hardware-properties:
form-factor: CLAMSHELL
recovery-input: POWER_BUTTON
- $name: "badrecovery2"
products:
- $key-id: "BAD3"
- $key-id: "BAD4"
skus:
- $sku-id: 12
config:
<<: *some_base_config
$oem-id: "0"
identity:
custom-label-tag: "{{$key-id}}"
sku-id: "{{$sku-id}}"
firmware:
build-targets:
coreboot: "badrecovery2"
ec: "badrecovery2"
depthcharge: "badrecovery2"
libpayload: "badrecovery2"
u-boot: "badrecovery2"
hardware-properties:
form-factor: CLAMSHELL
- $sku-id: 13
config:
<<: *some_base_config
$oem-id: "0"
identity:
custom-label-tag: "{{$key-id}}"
sku-id: "{{$sku-id}}"
firmware:
build-targets:
coreboot: "badrecovery2"
ec: "badrecovery2"
depthcharge: "badrecovery2"
libpayload: "badrecovery2"
u-boot: "badrecovery2"
hardware-properties:
form-factor: CHROMEBOX
- $name: "multi"
products:
- $brand-code: "WLBA"
$key-id: "WHITELABEL1"
$wallpaper: "wallpaper-wl1"
$whitelabel-tag: "whitelabel1"
- $brand-code: "WLBB"
$key-id: "WHITELABEL2"
$wallpaper: "wallpaper-wl2"
$whitelabel-tag: "whitelabel2"
skus:
- $sku-id: 14
config:
<<: *multi_whitelabel_config
- $sku-id: 15
config:
<<: *multi_whitelabel_config
$firmware-suffix: "_other"