mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Add support for "skip_kernelblock_install"
CrOS could be used in devices that dont have custom firmware to interpret the Kernelblock (Part2,4). In such devices skip trying to make the kernelblock BUG=none TEST=./build_image --board=chronos test and verify we dont build the kernel block Change-Id: I3e9a8dd765ea00db2ebf112553d96c08960e544f Reviewed-on: https://gerrit.chromium.org/gerrit/40219 Commit-Queue: Anush Elangovan <anush@chromium.org> Reviewed-by: Anush Elangovan <anush@chromium.org> Tested-by: Anush Elangovan <anush@chromium.org>
This commit is contained in:
parent
8e0cd07e03
commit
c52c5fbb7c
@ -276,9 +276,9 @@ create_base_image() {
|
||||
USE_DEV_KEYS="--use_dev_keys"
|
||||
fi
|
||||
|
||||
# Place flags before positional args.
|
||||
${SCRIPTS_DIR}/bin/cros_make_image_bootable "${BUILD_DIR}" \
|
||||
${image_name} \
|
||||
${USE_DEV_KEYS} \
|
||||
--adjust_part="${FLAGS_adjust_part}"
|
||||
if [[ ${skip_kernelblock_install} -ne 1 ]]; then
|
||||
# Place flags before positional args.
|
||||
${SCRIPTS_DIR}/bin/cros_make_image_bootable "${BUILD_DIR}" \
|
||||
${image_name} ${USE_DEV_KEYS} --adjust_part="${FLAGS_adjust_part}"
|
||||
fi
|
||||
}
|
||||
|
@ -109,9 +109,10 @@ EOF
|
||||
cleanup_mounts
|
||||
trap - EXIT
|
||||
|
||||
if should_build_image ${image_name}; then
|
||||
${SCRIPTS_DIR}/bin/cros_make_image_bootable "${BUILD_DIR}" \
|
||||
${image_name} \
|
||||
--force_developer_mode
|
||||
if [[ ${skip_kernelblock_install} -ne 1 ]]; then
|
||||
if should_build_image ${image_name}; then
|
||||
${SCRIPTS_DIR}/bin/cros_make_image_bootable "${BUILD_DIR}" \
|
||||
${image_name} --force_developer_mode
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
@ -81,10 +81,11 @@ mod_image_for_test () {
|
||||
cleanup_mounts
|
||||
trap - EXIT
|
||||
|
||||
# Now make it bootable with the flags from build_image.
|
||||
if should_build_image ${image_name}; then
|
||||
"${SCRIPTS_DIR}/bin/cros_make_image_bootable" "${BUILD_DIR}" \
|
||||
${image_name} \
|
||||
--force_developer_mode
|
||||
if [[ ${skip_kernelblock_install} -ne 1 ]]; then
|
||||
# Now make it bootable with the flags from build_image.
|
||||
if should_build_image ${image_name}; then
|
||||
"${SCRIPTS_DIR}/bin/cros_make_image_bootable" "${BUILD_DIR}" \
|
||||
${image_name} --force_developer_mode
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user