Improve building the firmware updater with cros_workon |
|||
Issue description
At present we have the following in ebuilds showing how to uprev the firmware:
# To change firmware versions, update:
#
# chromeos-base/chromeos-config-bsp/files/model.dtsi
#
# and then paste the function below into your chroot shell and type:
#
# update_firmware
#
# If this works then you can create a CL with your changes.
#
update_firmware() {
BOARD="coral"
cros_workon --board="${BOARD}" start chromeos-config-bsp \
"chromeos-firmware-${BOARD}"
base="${HOME}/trunk/src/private-overlays/overlay-${BOARD}-private/chromeos-base"
ebuild="${base}/chromeos-firmware-${BOARD}/chromeos-firmware-${BOARD}-9999.ebuild"
touch "${ebuild}"
"ebuild-${BOARD}" "${ebuild}" manifest
"emerge-${BOARD}" -q chromeos-config-bsp chromeos-config \
"chromeos-firmware-${BOARD}"
}
It would be good to put this in a script. Perhaps we can also make changes to portage so that the 'touch' is not necessary?
,
Oct 31 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/crosutils/+/85217e1e62f3f092302349f31b5e08559b28a6e3 commit 85217e1e62f3f092302349f31b5e08559b28a6e3 Author: Simon Glass <sjg@chromium.org> Date: Tue Oct 31 22:15:20 2017 Add a script to update firmware after a config change This is a common requirement and currently people have to paste a shell function into their terminal. Add a script for this instead. BUG= chromium:767413 TEST=./cros_update_firmware -b coral Change-Id: Ice0654e37e54998357cb97d67c268775525964d6 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/726845 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> [add] https://crrev.com/85217e1e62f3f092302349f31b5e08559b28a6e3/cros_update_firmware
,
Nov 4 2017
,
Nov 28 2017
Next step here is to update the cros_workon packages so that it automatically auto-revs and we don't need a manual change in the firmware ebuild.
,
Apr 25 2018
Well we ended up just continuing to use the script. I think it is unnecessary and annoying, but will leave it as it is for now. Maybe later in the Grunt project I will take another crack. |
|||
►
Sign in to add a comment |
|||
Comment 1 by sjg@chromium.org
, Oct 18 2017Status: Started (was: Untriaged)