Mike Banon has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/51393 )
Change subject: cbfstool_get.sh: wgets the sources and makes a cbfstool utility ......................................................................
cbfstool_get.sh: wgets the sources and makes a cbfstool utility
Sometimes you need to do a few operations with coreboot.rom (e.g. update its' payload) without changing coreboot.rom's main code. If you have bad Internet connection or just want to quickly get the latest version of cbfstool without cloning the whole coreboot/vboot repositories - my bash script below will really help you!
Signed-off-by: Mike Banon mikebdp2@gmail.com Change-Id: Ie70944e5b527f28220e8119d95a4fc585b3cb4a7 --- A util/cbfstool_get/cbfstool_get.sh 1 file changed, 124 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/51393/1
diff --git a/util/cbfstool_get/cbfstool_get.sh b/util/cbfstool_get/cbfstool_get.sh new file mode 100755 index 0000000..098c6b2 --- /dev/null +++ b/util/cbfstool_get/cbfstool_get.sh @@ -0,0 +1,124 @@ +#!/bin/sh +# +# cbfstool_get.sh: wgets the sources and makes a cbfstool utility. +# +# Please send your feedback to Mike Banon mikebdp2@gmail.com. +# Released under the terms of GNU GPL v3 by Free Software Foundation. +# + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/cgpt/ \ +--reject=cgpt.c,cgpt_legacy.c,cgpt_repair.c,cgpt_wrapper.c,\ +cmd_add.c,cmd_boot.c,cmd_create.c,cmd_edit.c,cmd_find.c,\ +cmd_legacy.c,cmd_prioritize.c,cmd_repair.c,cmd_show.c + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/firmware/2lib/ \ +--reject=2api.c,2auxfw_sync.c,2ec_sync.c,2firmware.c,2gbb.c,2misc.c,\ +2packed_key.c,2secdata_firmware.c,2secdata_fwmp.c,2secdata_kernel.c,\ +2tpm_bootmode.c,2ui.c,2ui_screens.c,2tpm_bootmode.h,2ui.h,2ui_private.h + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/firmware/include/ \ +--reject=OWNERS,tpm2_marshaling.h,tpm2_tss_constants.h,vb2_api.h,\ +vb2_constants.h,vb2_internals_please_do_not_use.h + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/firmware/lib/ \ +--exclude-directories=/cgit/vboot.git/plain/firmware/lib/tpm2_lite/ + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/firmware/lib20/include/vb2_... + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/firmware/stub/ \ +--reject=OWNERS + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/futility/dump_kernel_config... + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/futility/futility.h + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/futility/kernel_blob.h + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/host/ \ +--exclude-directories=/cgit/vboot.git/plain/host/arch/ + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/host/arch/x86/lib/crossyste... + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/host/arch/x86_64/lib/crossy... + +cp ./3rdparty/vboot/host/arch/x86/lib/crossystem_arch.c \ +./3rdparty/vboot/host/arch/x86_64/lib/crossystem_arch.c + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +--directory-prefix=./3rdparty/vboot/ \ +https://review.coreboot.org/cgit/vboot.git/plain/Makefile + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +https://review.coreboot.org/cgit/coreboot.git/plain/src/commonlib/ \ +--exclude-directories=/cgit/coreboot.git/plain/src/commonlib/storage/ \ +--reject=configstring.c,iobuf.c,cbmem_id.h,configstring.h,coreboot_tables.h,\ +fmap_serialized.h,iobuf.h,sd_mmc_ctrlr.h,sdhci.h,stdlib.h,storage.h,\ +timestamp_serialized.h + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +https://review.coreboot.org/cgit/coreboot.git/plain/src/vendorcode/intel/edk... + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +https://review.coreboot.org/cgit/coreboot.git/plain/src/vendorcode/intel/fsp... + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +https://review.coreboot.org/cgit/coreboot.git/plain/util/cbfstool/ + +wget --recursive --no-parent --no-host-directories --cut-dirs=3 \ +--user-agent="Mozilla/5.0" --execute robots=off \ +https://review.coreboot.org/cgit/coreboot.git/plain/util/vboot_lib/ + +mkdir ./3rdparty/vboot/tests/ +mkdir ./3rdparty/vboot/tests/tpm_lite/ +mkdir ./3rdparty/vboot/utility/ + +cd ./util/cbfstool/ + +make all + +cd ./../../ + +ln -s ./util/cbfstool/cbfstool ./cbfstool + +#