Commit 152a359b authored by Ricardo Cañuelo Navarro's avatar Ricardo Cañuelo Navarro
Browse files

cros-build: add support for rammus



This includes a new environment file and build script for rammus to
generate the firmware-rammus-11275.B-collabora Depthcharge branch.

It also updates docker-compose.yaml to include a board-specific
setup directory in the environment.
Signed-off-by: Ricardo Cañuelo Navarro's avatarRicardo Cañuelo <ricardo.canuelo@collabora.com>
parent ef215a71
......@@ -14,3 +14,4 @@ services:
- ./cache:/home/cros-build/cache
- ./chroot-${CROS_DEVICE}:/home/cros-build/chroot-${CROS_DEVICE}
- ./firmware:/home/cros-build/chromiumos/src/scripts/firmware
- ./setup/${CROS_DEVICE}_files:/home/cros-build/chromiumos/src/scripts/${CROS_DEVICE}_files
image-rammus-R72-11275.110.0.serial-collabora-20201104.bin filter=lfs diff=lfs merge=lfs -text
image-rammus-R72-11275.110.0.serial-collabora-20201104.bin
\ No newline at end of file
CROS_DEVICE=rammus
CROS_SDK_BRANCH=firmware-rammus-11275.B
#!/bin/bash
set -e
export ACCEPT_LICENSE=Google-TOS
export BOARD=rammus
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-rammus-11275.B-collabora
git checkout FETCH_HEAD
cd -
}
cmd_build() {
patch -d/ --forward -p0 < rammus_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/rammus/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 "rammus" "rammus"
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 "rammus" "rammus"
else
do_install "$(get_board)" build
fi
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