Commit b55f622f authored by Ricardo Cañuelo Navarro's avatar Ricardo Cañuelo Navarro Committed by Ricardo Cañuelo Navarro
Browse files

cros-build: Add support for sarien

parent dcb6fb98
......@@ -7,3 +7,4 @@ firmware/image-gru-8785.B.dev-collabora-20210201.bin filter=lfs diff=lfs merge=l
firmware/image-jacuzzi-12573.B.dev-collabora-20210324.bin filter=lfs diff=lfs merge=lfs -text
firmware/image-nami-R69-10775.108.52.serial-collabora-20210423.bin filter=lfs diff=lfs merge=lfs -text
firmware/image-hatch-R80-12672.423.0.serial-collabora-20210419.bin filter=lfs diff=lfs merge=lfs -text
firmware/image-sarien-R76-12200.122.0.signed.serial-collabora-20210330.bin filter=lfs diff=lfs merge=lfs -text
image-sarien-R76-12200.122.0.signed.serial-collabora-20210330.bin
\ No newline at end of file
CROS_DEVICE=sarien
CROS_SDK_BRANCH=firmware-sarien-12200.B
#!/bin/bash
set -e
export ACCEPT_LICENSE=Google-TOS
export BOARD=sarien
cmd_setup() {
setup_board --board=$BOARD
}
cmd_checkout() {
echo "board: ${BOARD}"
cros_workon --board ${BOARD} start depthcharge
cd ../platform/depthcharge
git fetch \
https://gitlab.collabora.com/chromium/depthcharge.git \
firmware-sarien-12200.B-collabora
git checkout FETCH_HEAD
cd -
}
cmd_build() {
patch -d/ --forward -p0 < sarien_files/0001-depthcharge-999.ebuild.patch
emerge-${BOARD} depthcharge
}
cmd_image() {
local output=firmware/${BOARD}-new.bin
cp firmware/${BOARD}.bin ${output}
cbfstool \
${output} \
remove \
-n fallback/payload \
-r COREBOOT
cbfstool \
${output} \
add-payload \
-r COREBOOT \
-n fallback/payload \
-f /build/${BOARD}/firmware/depthcharge/dev.elf
ls -l ${output}
}
cmd_$1
exit 0
--- /mnt/host/source/src/third_party/chromiumos-overlay/sys-boot/depthcharge/depthcharge-9999.ebuild 2020-11-04 13:23:56.014885200 +0000
+++ /mnt/host/source/src/third_party/chromiumos-overlay/sys-boot/depthcharge/depthcharge-9999.ebuild 2020-11-04 13:27:39.409579789 +0000
@@ -126,12 +126,7 @@
fi
if use unibuild; then
- local build_target
-
- for build_target in $(cros_config_host \
- get-firmware-build-targets depthcharge); do
- make_depthcharge "${build_target}" "${build_target}"
- done
+ make_depthcharge "sarien" "sarien"
else
make_depthcharge "$(get_board)" build
fi
@@ -170,10 +165,7 @@
local build_target
if use unibuild; then
- for build_target in $(cros_config_host \
- get-firmware-build-targets depthcharge); do
- do_install "${build_target}" "${build_target}"
- done
+ do_install "sarien" "sarien"
else
do_install "$(get_board)" build
fi
......@@ -117,6 +117,7 @@ DEVICE_CLS = {
'jacuzzi': SuzyQ,
'nami': SuzyQ,
'hatch': SuzyQ,
'sarien': ServoMicro,
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment