mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-10 06:26:57 +02:00
image build and composition scripts for Flatcar Container Linux
This is the first in three stages of changes to transition from separate "u-boot" and "coreboot" output directories to a single "firmware" directory. This change/stage will give scripts a facility to easily be compatible with both schemes. The second stage will transition all the scripts to use the mechanism, and then finally the third stage will switch the directories over. Some additional work may be needed if there are file name clashes, although those sorts of problems would likely already be present. These new functions could also optionally be taken back out after the transition. This change adds find_fw_component, find_u_boot_component, and find_coreboot_component functions to common.sh. The first function provides the bulk of the functionality, while the second and third wrap the first and pass it parameters appropriate for u-boot or coreboot. The first function accepts an override which it returns if set, and if not it checks for a file in each of the directories it's passed in the second parameter one by one and returns the first one it finds. If it doesn't find any it defaults to the last one. BUG=chromium-os:18107 TEST=Modified some u-boot related ebuilds to put some files in the firmware directory. Ran the ebuilds and verified the files showed up where expected. Modified the cros_write_firmware.sh script to use these new functions. Ran cros_write_firmware and saw it find the files in their new location. Also verified that the firmware on the target was updated as expected. Change-Id: Ic664e0e1c4a5b27efc9fb892ff5bd91cf1b5be56 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://gerrit.chromium.org/gerrit/5170 Tested-by: Gabe Black <gabeblack@chromium.org> Reviewed-by: Doug Anderson <dianders@chromium.org> |
||
---|---|---|
bin | ||
build_library | ||
chroot_version_hooks.d | ||
lib | ||
mod_for_factory_scripts | ||
mod_for_test_scripts | ||
.gitignore | ||
archive_build.sh | ||
archive_hwqual | ||
bash_completion | ||
build_image | ||
build_kernel_image.sh | ||
build_packages | ||
call_autoserv.py | ||
check_control_files.sh | ||
chromeos-common.sh | ||
clean_loopback_devices | ||
common.sh | ||
cros_deps_diff | ||
cros_download_latest_image | ||
cros_generate_breakpad_symbols | ||
cros_generate_deps_graphs | ||
cros_run_unit_tests | ||
cros_show_stacks | ||
dot_helper.py | ||
enable_localaccount.sh | ||
enter_chroot.sh | ||
fixup_image_for_qemu.py | ||
generate_test_report | ||
get_latest_image.sh | ||
get_package_list | ||
image_to_live.sh | ||
image_to_usb.sh | ||
image_to_vm.sh | ||
make_chroot | ||
make_developer_script_runner.sh | ||
make_factory_package.sh | ||
make_netboot.sh | ||
make_universal_factory_shim.sh | ||
mk_memento_images.sh | ||
mod_image_for_recovery.sh | ||
mod_image_for_test.sh | ||
mod_test_image_for_pyauto.sh | ||
mount_gpt_image.sh | ||
remote_access.sh | ||
run_chroot_version_hooks | ||
run_remote_tests.sh | ||
serve_factory_packages.py | ||
set_shared_user_password.sh | ||
setup_board | ||
ssh_test.sh | ||
start_devserver | ||
sysroot_wrapper | ||
update_bootloaders.sh | ||
update_chroot | ||
update_kernel.sh | ||
upload_symbols | ||
verify_rootfs_chksum.sh |