new_variant: allow custom fitimage usage message
For boards that use a fitimage, the command to generate the fitimage
may vary, so add the usage to the reference board variables.
BUG=None
TEST=`./new_variant.py --board=hatch --variant=sushi`
Verify that the gen_fit_image.sh usage example is
./gen_fit_image.sh sushi <path_to_fit_kit> [-b]
`./new_variant.py --board=volteer --variant=ripto`
Verify that the gen_fit_image.sh usage example is
./gen_fit_image.sh ripto <path_to_fit_kit> <path_to_inputs_folder> [-b]
Change-Id: I8433dfaa53a088c908d16cd89d2853b3ec836e3c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2025290
Tested-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Jacob Rasmussen <jacobraz@google.com>
diff --git a/contrib/variant/hatch.py b/contrib/variant/hatch.py
index 6902944..feb1228 100644
--- a/contrib/variant/hatch.py
+++ b/contrib/variant/hatch.py
@@ -40,6 +40,9 @@
# Directory for fitimage; append '~/trunk/src/'' in chroot, '~/chromiumos/src' outside
fitimage_dir = 'private-overlays/baseboard-hatch-private/sys-boot/coreboot-private-files-hatch'
+# Explanation of gen_fit_image command
+fitimage_cmd = './gen_fit_image.sh %s <path_to_fit_kit> [-b]'
+
# List of packages to cros_workon
workon_pkgs = ['coreboot', 'libpayload', 'vboot_reference', 'depthcharge', fsp,
fitimage_pkg, 'chromeos-ec', 'chromeos-config-bsp-hatch-private']