diff options
62 files changed, 205 insertions, 261 deletions
| @@ -22,7 +22,7 @@  /push  /version  /versiondate -/vendor/ +/vendorfiles/  *me.bin  *sch5545ec.bin  /mrc/ @@ -11,7 +11,7 @@ set -u -e  . "include/err.sh"  . "include/option.sh" -eval "$(setvars "" mode option aur_notice tmpdir)" +eval "$(setvars "" option aur_notice tmpdir)"  tmpdir_was_set="y"  set | grep TMPDIR 1>/dev/null 2>/dev/null || tmpdir_was_set="n" @@ -39,8 +39,10 @@ buildpath="./script/${linkname}"  main()  {  	xx_ id -u 1>/dev/null 2>/dev/null -	initialise_command $@ -	shift 2 +	[ $# -lt 1 ] && fail "Too few arguments. Try: ${0} help" +	[ "${1}" = "dependencies" ] && xx_ install_packages $@ && lbmk_exit 0 + +	initialise_command $@ && shift 1  	check_git  	check_project "fail" @@ -51,22 +53,13 @@ main()  initialise_command()  { -	[ $# -lt 1 ] && fail "Too few arguments. Try: ${0} help" - -	mode="${1}" -	[ "${mode}" != "dependencies" ] || xx_ install_packages $@  	[ "$(id -u)" != "0" ] || fail "this command as root is not permitted" -	[ "${mode}" = "help" ] && usage ${0} && lbmk_exit 0 -	if [ "${mode}" = "list" ]; then -		listitems "${buildpath}" -		lbmk_exit 0 -	elif [ $# -lt 2 ]; then -		usage ${0} -		lbmk_exit 1 -	fi - -	option="${2}" +	case "${1}" in +	help) usage ${0} && lbmk_exit 0 ;; +	list) items "${buildpath}" && lbmk_exit 0 ;; +	esac +	option="${1}"  }  install_packages() @@ -83,23 +76,13 @@ install_packages()  	. "config/dependencies/${2}"  	xx_ ${pkg_add} ${pkglist} -	[ "${aur_notice}" = "" ] || \ -	    printf "You must install AUR packages: %s\n" "${aur_notice}" 1>&2 - -	lbmk_exit 0 +	[ -z "${aur_notice}" ] && return 0 +	printf "You must install AUR packages: %s\n" "${aur_notice}" 1>&2  }  execute_command()  { -	if [ "${option}" = "list" ]; then -		xx_ listitems "${buildpath}/${mode}" -		lbmk_exit 0 -	fi -	lbmkcmd="${buildpath}/${mode}/${option}" -	[ "${lbmkcmd}" = "./script/build/boot/roms" ] && \ -		printf "NOTE: ./build boot roms now: ./build fw coreboot\n" 1>&2 -	[ "${lbmkcmd%/*}" = "./script/update/blobs" ] && \ -		printf "NOTE: ./update blobs is now: ./update vendor\n" 1>&2 +	lbmkcmd="${buildpath}/${option}"  	[ -f "${lbmkcmd}" ] || fail "Invalid command. Run: ${linkpath} help"  	"${lbmkcmd}" $@ || fail "execute_command: ${lbmkcmd} ${@}"  } @@ -108,16 +91,10 @@ usage()  {  	progname=${0}  	cat <<- EOF -	USAGE:	${progname} <MODE> <OPTION> - -	possible values for 'mode': -	$(listitems "${buildpath}") - -	For each of the above modes, you may also do: -	${progname} <MODE> list +	USAGE:	${progname} <OPTION> -	Example: ./build fw list, which would yield: -	$(./build fw list) +	possible values for 'OPTION': +	$(items "${buildpath}")  	Refer to ${projectname} documentation for more info.  	EOF diff --git a/config/coreboot/e6430_12mb/config/libgfxinit_corebootfb b/config/coreboot/e6430_12mb/config/libgfxinit_corebootfb index 782a0e5a..7dfbf434 100644 --- a/config/coreboot/e6430_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/e6430_12mb/config/libgfxinit_corebootfb @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/e6430/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/e6430/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/e6430/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/e6430/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/e6430_12mb/config/libgfxinit_txtmode b/config/coreboot/e6430_12mb/config/libgfxinit_txtmode index 48fbf066..f0876eb6 100644 --- a/config/coreboot/e6430_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/e6430_12mb/config/libgfxinit_txtmode @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/e6430/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/e6430/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/e6430/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/e6430/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2170p_16mb/config/libgfxinit_corebootfb b/config/coreboot/hp2170p_16mb/config/libgfxinit_corebootfb index 1fed9e24..2cf092d6 100644 --- a/config/coreboot/hp2170p_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp2170p_16mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2170p_16mb/config/libgfxinit_txtmode b/config/coreboot/hp2170p_16mb/config/libgfxinit_txtmode index dede8a37..7e04e304 100644 --- a/config/coreboot/hp2170p_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp2170p_16mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2560p_8mb/config/libgfxinit_corebootfb b/config/coreboot/hp2560p_8mb/config/libgfxinit_corebootfb index 2d605ab2..ffda7458 100644 --- a/config/coreboot/hp2560p_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp2560p_8mb/config/libgfxinit_corebootfb @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_sandybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_sandybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_sandybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_sandybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2560p_8mb/config/libgfxinit_txtmode b/config/coreboot/hp2560p_8mb/config/libgfxinit_txtmode index 357ea9a3..ba3d739d 100644 --- a/config/coreboot/hp2560p_8mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp2560p_8mb/config/libgfxinit_txtmode @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_sandybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_sandybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_sandybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_sandybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2570p_16mb/config/libgfxinit_corebootfb b/config/coreboot/hp2570p_16mb/config/libgfxinit_corebootfb index 5d7d75ef..5afb9946 100644 --- a/config/coreboot/hp2570p_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp2570p_16mb/config/libgfxinit_corebootfb @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp2570p_16mb/config/libgfxinit_txtmode b/config/coreboot/hp2570p_16mb/config/libgfxinit_txtmode index c46b3071..a83488c4 100644 --- a/config/coreboot/hp2570p_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp2570p_16mb/config/libgfxinit_txtmode @@ -145,7 +145,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8200sff_4mb/config/libgfxinit_corebootfb b/config/coreboot/hp8200sff_4mb/config/libgfxinit_corebootfb index fb4c2640..224316e3 100644 --- a/config/coreboot/hp8200sff_4mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp8200sff_4mb/config/libgfxinit_corebootfb @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8200sff/ifd_4mb" -CONFIG_ME_BIN_PATH="../../../vendor/hp8200sff/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8200sff/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8200sff/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8200sff_4mb/config/libgfxinit_txtmode b/config/coreboot/hp8200sff_4mb/config/libgfxinit_txtmode index 1783cfda..d36aa54f 100644 --- a/config/coreboot/hp8200sff_4mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp8200sff_4mb/config/libgfxinit_txtmode @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8200sff/ifd_4mb" -CONFIG_ME_BIN_PATH="../../../vendor/hp8200sff/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8200sff/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8200sff/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8200sff_8mb/config/libgfxinit_corebootfb b/config/coreboot/hp8200sff_8mb/config/libgfxinit_corebootfb index 1db0fbc7..f31c3c16 100644 --- a/config/coreboot/hp8200sff_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp8200sff_8mb/config/libgfxinit_corebootfb @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8200sff/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp8200sff/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8200sff/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8200sff/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8200sff_8mb/config/libgfxinit_txtmode b/config/coreboot/hp8200sff_8mb/config/libgfxinit_txtmode index 28b26b54..5d815947 100644 --- a/config/coreboot/hp8200sff_8mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp8200sff_8mb/config/libgfxinit_txtmode @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8200sff/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp8200sff/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8200sff/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8200sff/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8300usdt_16mb/config/libgfxinit_corebootfb b/config/coreboot/hp8300usdt_16mb/config/libgfxinit_corebootfb index 177d9146..7ea0be8c 100644 --- a/config/coreboot/hp8300usdt_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp8300usdt_16mb/config/libgfxinit_corebootfb @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8300usdt/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp8300usdt/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8300usdt/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8300usdt/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8300usdt_16mb/config/libgfxinit_txtmode b/config/coreboot/hp8300usdt_16mb/config/libgfxinit_txtmode index 70f3eae2..e29f73b4 100644 --- a/config/coreboot/hp8300usdt_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp8300usdt_16mb/config/libgfxinit_txtmode @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp8300usdt/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp8300usdt/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp8300usdt/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp8300usdt/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8470pintel_16mb/config/libgfxinit_corebootfb b/config/coreboot/hp8470pintel_16mb/config/libgfxinit_corebootfb index e86906b0..4bc7a882 100644 --- a/config/coreboot/hp8470pintel_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp8470pintel_16mb/config/libgfxinit_corebootfb @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp8470pintel_16mb/config/libgfxinit_txtmode b/config/coreboot/hp8470pintel_16mb/config/libgfxinit_txtmode index 02506405..1fd59782 100644 --- a/config/coreboot/hp8470pintel_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp8470pintel_16mb/config/libgfxinit_txtmode @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp9470m_16mb/config/libgfxinit_corebootfb b/config/coreboot/hp9470m_16mb/config/libgfxinit_corebootfb index d93aeafa..467ac562 100644 --- a/config/coreboot/hp9470m_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/hp9470m_16mb/config/libgfxinit_corebootfb @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/hp9470m_16mb/config/libgfxinit_txtmode b/config/coreboot/hp9470m_16mb/config/libgfxinit_txtmode index 3739b808..acc9bad3 100644 --- a/config/coreboot/hp9470m_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/hp9470m_16mb/config/libgfxinit_txtmode @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/hp_ivybridge/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/hp_ivybridge/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/hp_ivybridge/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/hp_ivybridge/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t1650_12mb/config/libgfxinit_txtmode b/config/coreboot/t1650_12mb/config/libgfxinit_txtmode index ceffee30..3bee04cd 100644 --- a/config/coreboot/t1650_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/t1650_12mb/config/libgfxinit_txtmode @@ -140,7 +140,7 @@ CONFIG_TPM_PIRQ=0x0  CONFIG_BOARD_DELL_PRECISION_T1650=y  CONFIG_BOARD_DELL_SNB_IVB_WORKSTATIONS=y  CONFIG_INCLUDE_SMSC_SCH5545_EC_FW=y -CONFIG_SMSC_SCH5545_EC_FW_FILE="../../../vendor/t1650/sch5545ec.bin" +CONFIG_SMSC_SCH5545_EC_FW_FILE="../../../vendorfiles/t1650/sch5545ec.bin"  CONFIG_ECAM_MMCONF_BASE_ADDRESS=0xf0000000  CONFIG_ECAM_MMCONF_BUS_NUMBER=64  CONFIG_MEMLAYOUT_LD_FILE="src/arch/x86/memlayout.ld" @@ -155,7 +155,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t1650/12_ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t1650/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t1650/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t1650/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t420_8mb/config/libgfxinit_corebootfb b/config/coreboot/t420_8mb/config/libgfxinit_corebootfb index f97552f6..61d34cf8 100644 --- a/config/coreboot/t420_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t420_8mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t420s_8mb/config/libgfxinit_corebootfb b/config/coreboot/t420s_8mb/config/libgfxinit_corebootfb index 8645f71b..e47f4353 100644 --- a/config/coreboot/t420s_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t420s_8mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t420s_8mb/config/libgfxinit_txtmode b/config/coreboot/t420s_8mb/config/libgfxinit_txtmode index 2f2fdc02..83e51edb 100644 --- a/config/coreboot/t420s_8mb/config/libgfxinit_txtmode +++ b/config/coreboot/t420s_8mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t430_12mb/config/libgfxinit_corebootfb b/config/coreboot/t430_12mb/config/libgfxinit_corebootfb index 36e33581..33fe8cd0 100644 --- a/config/coreboot/t430_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t430_12mb/config/libgfxinit_corebootfb @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t430_12mb/config/libgfxinit_txtmode b/config/coreboot/t430_12mb/config/libgfxinit_txtmode index d11ba9c2..444781f2 100644 --- a/config/coreboot/t430_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/t430_12mb/config/libgfxinit_txtmode @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t440plibremrc_12mb/config/libgfxinit_txtmode b/config/coreboot/t440plibremrc_12mb/config/libgfxinit_txtmode index 4085f2ef..746662e0 100644 --- a/config/coreboot/t440plibremrc_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/t440plibremrc_12mb/config/libgfxinit_txtmode @@ -143,7 +143,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/t440pmrc_12mb/config/libgfxinit_corebootfb b/config/coreboot/t440pmrc_12mb/config/libgfxinit_corebootfb index 2d0b3c21..7c0a7503 100644 --- a/config/coreboot/t440pmrc_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t440pmrc_12mb/config/libgfxinit_corebootfb @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/t440pmrc_12mb/config/libgfxinit_txtmode b/config/coreboot/t440pmrc_12mb/config/libgfxinit_txtmode index 99592ec2..69d58c7b 100644 --- a/config/coreboot/t440pmrc_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/t440pmrc_12mb/config/libgfxinit_txtmode @@ -144,7 +144,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/t520_8mb/config/libgfxinit_corebootfb b/config/coreboot/t520_8mb/config/libgfxinit_corebootfb index 0c7a481d..b4a1c204 100644 --- a/config/coreboot/t520_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t520_8mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t520_8mb/config/libgfxinit_txtmode b/config/coreboot/t520_8mb/config/libgfxinit_txtmode index 4730f280..485bfc1b 100644 --- a/config/coreboot/t520_8mb/config/libgfxinit_txtmode +++ b/config/coreboot/t520_8mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t530_12mb/config/libgfxinit_corebootfb b/config/coreboot/t530_12mb/config/libgfxinit_corebootfb index 280c96a3..0cba59f5 100644 --- a/config/coreboot/t530_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/t530_12mb/config/libgfxinit_corebootfb @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/t530_12mb/config/libgfxinit_txtmode b/config/coreboot/t530_12mb/config/libgfxinit_txtmode index 353a8058..8fd61ca7 100644 --- a/config/coreboot/t530_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/t530_12mb/config/libgfxinit_txtmode @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/w530_12mb/config/libgfxinit_corebootfb b/config/coreboot/w530_12mb/config/libgfxinit_corebootfb index 8dda5c36..79233fd6 100644 --- a/config/coreboot/w530_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/w530_12mb/config/libgfxinit_corebootfb @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/w530_12mb/config/libgfxinit_txtmode b/config/coreboot/w530_12mb/config/libgfxinit_txtmode index a1c9afa2..4a43108b 100644 --- a/config/coreboot/w530_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/w530_12mb/config/libgfxinit_txtmode @@ -147,7 +147,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/w541_12mb/config/libgfxinit_txtmode b/config/coreboot/w541_12mb/config/libgfxinit_txtmode index 1f641d69..8a5f9e45 100644 --- a/config/coreboot/w541_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/w541_12mb/config/libgfxinit_txtmode @@ -143,7 +143,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/w541mrc_12mb/config/libgfxinit_corebootfb b/config/coreboot/w541mrc_12mb/config/libgfxinit_corebootfb index 751fcf08..619f31ed 100644 --- a/config/coreboot/w541mrc_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/w541mrc_12mb/config/libgfxinit_corebootfb @@ -146,7 +146,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/w541mrc_12mb/config/libgfxinit_txtmode b/config/coreboot/w541mrc_12mb/config/libgfxinit_txtmode index df59be53..124a9103 100644 --- a/config/coreboot/w541mrc_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/w541mrc_12mb/config/libgfxinit_txtmode @@ -144,7 +144,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  CONFIG_DRIVERS_INTEL_WIFI=y  CONFIG_IFD_BIN_PATH="../../../config/ifd/t440p/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/t440p/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/t440p/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/t440p/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  # CONFIG_ENABLE_DDR_2X_REFRESH is not set diff --git a/config/coreboot/x220_8mb/config/libgfxinit_corebootfb b/config/coreboot/x220_8mb/config/libgfxinit_corebootfb index add08e69..b5589592 100644 --- a/config/coreboot/x220_8mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x220_8mb/config/libgfxinit_corebootfb @@ -151,7 +151,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x220_8mb/config/libgfxinit_txtmode b/config/coreboot/x220_8mb/config/libgfxinit_txtmode index 5c2ba3b3..a5059dea 100644 --- a/config/coreboot/x220_8mb/config/libgfxinit_txtmode +++ b/config/coreboot/x220_8mb/config/libgfxinit_txtmode @@ -149,7 +149,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx20/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx20/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx20/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx20/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230_12mb/config/libgfxinit_corebootfb b/config/coreboot/x230_12mb/config/libgfxinit_corebootfb index 6195c39c..9f05d7df 100644 --- a/config/coreboot/x230_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x230_12mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230_12mb/config/libgfxinit_txtmode b/config/coreboot/x230_12mb/config/libgfxinit_txtmode index ec93d34d..62f356ad 100644 --- a/config/coreboot/x230_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/x230_12mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230_16mb/config/libgfxinit_corebootfb b/config/coreboot/x230_16mb/config/libgfxinit_corebootfb index 882e4f98..27cc051d 100644 --- a/config/coreboot/x230_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x230_16mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/16_ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230_16mb/config/libgfxinit_txtmode b/config/coreboot/x230_16mb/config/libgfxinit_txtmode index 1b17900c..2f6039d0 100644 --- a/config/coreboot/x230_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/x230_16mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/16_ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230edp_12mb/config/libgfxinit_corebootfb b/config/coreboot/x230edp_12mb/config/libgfxinit_corebootfb index de15061c..9f7a5258 100644 --- a/config/coreboot/x230edp_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x230edp_12mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230edp_12mb/config/libgfxinit_txtmode b/config/coreboot/x230edp_12mb/config/libgfxinit_txtmode index 3e7a8bfc..394ed4f9 100644 --- a/config/coreboot/x230edp_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/x230edp_12mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230t_12mb/config/libgfxinit_corebootfb b/config/coreboot/x230t_12mb/config/libgfxinit_corebootfb index 782796da..d312bce2 100644 --- a/config/coreboot/x230t_12mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x230t_12mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230t_12mb/config/libgfxinit_txtmode b/config/coreboot/x230t_12mb/config/libgfxinit_txtmode index 03c6d16f..d0ddb7ce 100644 --- a/config/coreboot/x230t_12mb/config/libgfxinit_txtmode +++ b/config/coreboot/x230t_12mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230t_16mb/config/libgfxinit_corebootfb b/config/coreboot/x230t_16mb/config/libgfxinit_corebootfb index b09e6414..14dbec10 100644 --- a/config/coreboot/x230t_16mb/config/libgfxinit_corebootfb +++ b/config/coreboot/x230t_16mb/config/libgfxinit_corebootfb @@ -150,7 +150,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/16_ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/coreboot/x230t_16mb/config/libgfxinit_txtmode b/config/coreboot/x230t_16mb/config/libgfxinit_txtmode index c0b19f34..d3e16674 100644 --- a/config/coreboot/x230t_16mb/config/libgfxinit_txtmode +++ b/config/coreboot/x230t_16mb/config/libgfxinit_txtmode @@ -148,7 +148,7 @@ CONFIG_SPI_FLASH_INCLUDE_ALL_DRIVERS=y  CONFIG_SPI_FLASH_WINBOND=y  # CONFIG_DRIVERS_INTEL_WIFI is not set  CONFIG_IFD_BIN_PATH="../../../config/ifd/xx30/16_ifd" -CONFIG_ME_BIN_PATH="../../../vendor/xx30/me.bin" +CONFIG_ME_BIN_PATH="../../../vendorfiles/xx30/me.bin"  CONFIG_GBE_BIN_PATH="../../../config/ifd/xx30/gbe"  CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x20000  CONFIG_VBT_DATA_SIZE_KB=8 diff --git a/config/dependencies/void b/config/dependencies/void index 47da31b4..c889accd 100755 --- a/config/dependencies/void +++ b/config/dependencies/void @@ -7,5 +7,5 @@ ncurses-devel font-unifont-bdf autogen help2man base-devel bison flex \  dejavu-fonts-ttf texinfo rsync python3 libusb xz gawk device-mapper fuse gettext \  gettext-devel freetype  base-devel libpciaccess pciutils zlib libftdi1 \  base-devel libusb cmake innoextract p7zip unar cross-arm-none-eabi-binutils \ -cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib cmake \ +cross-arm-none-eabi-gcc cross-arm-none-eabi-newlib cross-arm-none-eabi-libstdc++ cmake \  " diff --git a/include/git.sh b/include/git.sh index 7f926c28..ce7a2625 100755 --- a/include/git.sh +++ b/include/git.sh @@ -4,8 +4,7 @@  # This file is only used by update/project/trees -eval "$(setvars "" _target rev _xm)" -eval "$(setvars "" loc url bkup_url depend)" +eval "$(setvars "" _target rev _xm loc url bkup_url depend)"  tmp_git_dir="${PWD}/tmp/gitclone"  fetch_project_trees() @@ -16,8 +15,7 @@ fetch_project_trees()  	[ -z "${rev}" ] && err "fetch_project_trees $target: undefined rev"  	[ -d "src/${project}/${tree}" ] && \  		printf "download/%s %s (%s): exists\n" \ -		    "${project}" "${tree}" "${_target}" 1>&2 && \ -		return 1 +		    "${project}" "${tree}" "${_target}" 1>&2 && return 0  	prepare_new_tree  } @@ -26,12 +24,12 @@ fetch_from_upstream()  	[ -d "src/${project}/${project}" ] && return 0  	x_ mkdir -p "src/${project}" -	x_ fetch_project_repo "${project}" +	fetch_project_repo "${project}"  }  fetch_config()  { -	x_ rm -f "${cfgsdir}/"*/seen +	rm -f "${cfgsdir}/"*/seen || err "fetch_config ${cfgsdir}: !rm seen"  	while true; do  		eval "$(setvars "" rev tree)"  		_xm="fetch_config ${project}/${_target}" @@ -51,7 +49,7 @@ load_target_config()  	. "${cfgsdir}/${1}/target.cfg" || \  	    err "load_target_config ${cfgsdir}/${1}: cannot load config" -	x_ touch "${cfgsdir}/${1}/seen" +	touch "${cfgsdir}/${1}/seen" || err "load_config $cfgsdir/$1: !mk seen"  }  prepare_new_tree() @@ -59,14 +57,13 @@ prepare_new_tree()  	printf "Creating %s tree %s (%s)\n" "${project}" "${tree}" "${_target}"  	x_ cp -R "src/${project}/${project}" "src/${project}/${tree}" -	x_ git_reset_rev "src/${project}/${tree}" "${rev}" +	git_reset_rev "src/${project}/${tree}" "${rev}"  	(  	x_ cd "src/${project}/${tree}"  	git submodule update --init --checkout || \  	    err "prepare_new_tree ${project}/${tree}: can't update git modules"  	) -	git_am_patches "${PWD}/src/${project}/${tree}" \ -	    "${PWD}/${cfgsdir}/${tree}/patches" +	git_am_patches "$PWD/src/$project/$tree" "$PWD/$cfgsdir/$tree/patches"  }  fetch_project_repo() @@ -75,10 +72,10 @@ fetch_project_repo()  	verify_config  	clone_project -	[ "${depend}" = "" ] || for d in ${depend} ; do -		x_ ./update project trees -f ${d} +	[ -z "${depend}" ] || for d in ${depend} ; do +		x_ ./update trees -f ${d}  	done -	x_ rm -Rf "${tmp_git_dir}" +	rm -Rf "${tmp_git_dir}" || err "fetch_repo: !rm -Rf ${tmp_git_dir}"  }  verify_config() @@ -91,8 +88,9 @@ verify_config()  clone_project()  { -	x_ rm -Rf "${tmp_git_dir}" -	x_ mkdir -p "${tmp_git_dir%/*}" +	rm -Rf "${tmp_git_dir}" || err "clone_project: !rm -Rf ${tmp_git_dir}" +	mkdir -p "${tmp_git_dir%/*}" || \ +	    err "clone_project: !mkdir -p ${tmp_git_dir%/*}"  	loc="${loc#src/}"  	loc="src/${loc}" @@ -100,24 +98,20 @@ clone_project()  	git clone ${url} "${tmp_git_dir}" || \  	    git clone ${bkup_url} "${tmp_git_dir}" || \  	    err "clone_project: could not download ${project}" -	git_reset_rev "${tmp_git_dir}" "${rev}" || \ -	    err "clone_project ${loc}/: cannot reset <- ${rev}" -	git_am_patches "${tmp_git_dir}" "${PWD}/config/${project}/patches" || \ -	    err "clone_project ${loc}/: cannot apply patches" +	git_reset_rev "${tmp_git_dir}" "${rev}" +	git_am_patches "${tmp_git_dir}" "${PWD}/config/${project}/patches"  	x_ rm -Rf "${loc}"  	[ "${loc}" = "${loc%/*}" ] || x_ mkdir -p ${loc%/*} -	x_ mv "${tmp_git_dir}" "${loc}" +	mv "${tmp_git_dir}" "${loc}" || \ +	    err "clone_project: !mv ${tmp_git_dir} ${loc}"  }  git_reset_rev()  { -	sdir="${1}" -	_rev="${2}"  	( -	x_ cd "${sdir}" -	git reset --hard ${_rev} || \ -	    err  "cannot git reset ${sdir} <- ${rev}" +	cd "${1}" || err "git_reset_rev: !cd ${1}" +	git reset --hard ${2} || err "!git reset ${1} <- ${2}"  	)  } @@ -126,7 +120,7 @@ git_am_patches()  	sdir="${1}" # assumed to be absolute path  	patchdir="${2}" # ditto  	( -	x_ cd "${sdir}" +	cd "${sdir}" || err "git_am_patches: !cd ${sdir}"  	for patch in "${patchdir}/"*; do  		[ -L "${patch}" ] && continue  		[ -f "${patch}" ] || continue @@ -138,8 +132,6 @@ git_am_patches()  	)  	for patches in "${patchdir}/"*; do  		[ -L "${patches}" ] && continue -		[ ! -d "${patches}" ] || \ -			git_am_patches "${sdir}" "${patches}" err  || \ -			    err  "apply_patches: !${sdir}/ ${patches}/" +		[ -d "${patches}" ] && git_am_patches "${sdir}" "${patches}"  	done  } diff --git a/include/mrc.sh b/include/mrc.sh index 4ff067a9..3c6ac24e 100755 --- a/include/mrc.sh +++ b/include/mrc.sh @@ -4,7 +4,7 @@  # Modifications in this version are Copyright 2021 and 2023 Leah Rowe.  # Original copyright detailed in repo: https://review.coreboot.org/coreboot/ -eval "$(setvars "" MRC_url MRC_url_bkup MRC_hash MRC_board)" +eval "$(setvars "" MRC_url MRC_url_bkup MRC_hash MRC_board ROOTFS SHELLBALL)"  extract_mrc()  { @@ -12,14 +12,14 @@ extract_mrc()  	[ -z "${CONFIG_MRC_FILE}" ] && \  		err "extract_mrc $MRC_hash: CONFIG_MRC_FILE not set" -	_file="${MRC_url##*/}" -	_file="${_file%.zip}" +	ROOTFS="root-a.ext2" +	SHELLBALL="chromeos-firmwareupdate-${MRC_board}"  	(  	x_ cd "${appdir}" -	extract_partition ROOT-A "${_file}" root-a.ext2 -	extract_shellball root-a.ext2 chromeos-firmwareupdate-${MRC_board} -	extract_coreboot chromeos-firmwareupdate-${MRC_board} +	extract_partition +	extract_shellball +	extract_coreboot  	)  	x_ "${cbfstool}" "${appdir}/"coreboot-*.bin extract -n mrc.bin \ @@ -28,9 +28,9 @@ extract_mrc()  extract_partition()  { -	NAME=${1} -	FILE=${2} -	ROOTFS=${3} +	NAME="ROOT-A" +	FILE="${MRC_url##*/}" +	FILE="${FILE%.zip}"  	_bs=1024  	printf "Extracting ROOT-A partition\n" @@ -46,9 +46,6 @@ extract_partition()  extract_shellball()  { -	ROOTFS=${1} -	SHELLBALL=${2} -  	printf "Extracting chromeos-firmwareupdate\n"  	printf "cd /usr/sbin\ndump chromeos-firmwareupdate ${SHELLBALL}\nquit" \  	    | debugfs "${ROOTFS}" || err "extract_shellball: debugfs" @@ -56,13 +53,12 @@ extract_shellball()  extract_coreboot()  { -	_shellball=${1}  	_unpacked=$( mktemp -d )  	printf "Extracting coreboot image\n" -	[ -f "${_shellball}" ] || \ +	[ -f "${SHELLBALL}" ] || \  	    err "extract_coreboot: shellball missing in google cros image" -	x_ sh "${_shellball}" --unpack "${_unpacked}" +	x_ sh "${SHELLBALL}" --unpack "${_unpacked}"  	# TODO: audit the f* out of that shellball, for each mrc version.  	# it has to be updated for each mrc update. we should ideally diff --git a/include/option.sh b/include/option.sh index 991ec0dc..13137104 100755 --- a/include/option.sh +++ b/include/option.sh @@ -3,7 +3,7 @@  # SPDX-FileCopyrightText: 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>  # SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org> -vendir="vendor" +vendir="vendorfiles"  appdir="${vendir}/app"  cbdir="src/coreboot/default"  cbcfgsdir="config/coreboot" @@ -17,11 +17,11 @@ eval "$(setvars "" CONFIG_BOARD_DELL_E6400 CONFIG_HAVE_MRC CONFIG_HAVE_ME_BIN \      CONFIG_INCLUDE_SMSC_SCH5545_EC_FW CONFIG_SMSC_SCH5545_EC_FW_FILE \      CONFIG_IFD_BIN_PATH CONFIG_MRC_FILE _dest board boarddir)" -listitems() +items()  {  	rval=1  	[ ! -d "${1}" ] && \ -		printf "listitems: directory '%s' doesn't exist" "${1}" && \ +		printf "items: directory '%s' doesn't exist" "${1}" && \  		    return 1  	for x in "${1}/"*; do  		# -e used because this is for files *or* directories @@ -62,13 +62,12 @@ check_defconfig()  handle_coreboot_utils()  {  	for util in cbfstool ifdtool; do -		x_ ./update project trees ${_f} "src/coreboot/${1}/util/${util}" +		x_ ./update trees ${_f} "src/coreboot/${1}/util/${util}"  		[ -z "${mode}" ] && [ ! -f "cbutils/${1}/${util}" ] && \  			x_ mkdir -p "cbutils/${1}" && \  			x_ cp "src/coreboot/${1}/util/${util}/${util}" \  			    "cbutils/${1}" -		[ -z "${mode}" ] || \ -			x_ rm -Rf "cbutils/${1}" +		[ -z "${mode}" ] || x_ rm -Rf "cbutils/${1}"  	done  } diff --git a/script/build/fw/grub b/script/build/grub index 66286732..ba0845d3 100755 --- a/script/build/fw/grub +++ b/script/build/grub @@ -23,7 +23,7 @@ main()  handle_dependencies()  { -	[ -d "src/grub" ] || x_ ./update project trees -f grub +	[ -d "src/grub" ] || x_ ./update trees -f grub  	[ -f "src/grub/grub-mkstandalone" ] || build_grub_utils  	x_ mkdir -p "${elfdir}"  	x_ rm -f "${elfdir}/"* diff --git a/script/build/fw/coreboot b/script/build/roms index 9e266ce7..2f7b93da 100755 --- a/script/build/fw/coreboot +++ b/script/build/roms @@ -25,15 +25,14 @@ pv="${pv} payload_seabios_withgrub payload_uboot memtest_bin"  v="romdir cbrom initmode displaymode cbcfg targetdir tree arch"  v="${v} grub_timeout ubdir vendorfiles board grub_scan_disk uboot_config"  eval "$(setvars "n" ${pv})" -eval "$(setvars "" ${v})" -eval "$(setvars "" boards _displaymode _payload _keyboard all targets)" +eval "$(setvars "" ${v} boards _displaymode _payload _keyboard all targets)"  main()  {  	while [ $# -gt 0 ]; do  		case ${1} in  		help) usage && exit 0 ;; -		list) listitems config/coreboot && exit 0 ;; +		list) items config/coreboot && exit 0 ;;  		-d) _displaymode="${2}" ;;  		-p) _payload="${2}" ;;  		-k) _keyboard="${2}" ;; @@ -45,7 +44,7 @@ main()  		shift 2  	done -	[ "${all}" != "y" ] || boards=$(listitems config/coreboot) || \ +	[ "${all}" != "y" ] || boards=$(items config/coreboot) || \  	    err "Cannot generate list of boards for building"  	for x in ${boards}; do @@ -63,11 +62,7 @@ main()  	printf "\nROM images available in these directories:\n"  	printf "${targets}^^ ROM images available in these directories.\n\n" -	printf "WARNING!!!!!!! PLEASE READ:\n\n" - -	printf "DO NOT flash ROM images contained under elf/, because they lack" -	printf " payloads and will BRICK your machine. Please flash ROM images" -	printf " contained under bin/ instead. YOU HAVE BEEN WARNED.\n\n" +	printf "DO NOT flash ROM images from elf/ - please use bin/ instead.\n"  }  check_target() @@ -133,13 +128,13 @@ prepare_target()  	cbrom="${cbdir}/build/coreboot.rom"  	[ -f "${cbfstool}" ] || \ -		x_ ./update project trees -b coreboot utils ${tree} +		x_ ./update trees -b coreboot utils ${tree}  	build_dependency_seabios  	memtest_bin="memtest86plus/build64/memtest.bin"  	[ "${payload_memtest}" != "y" ] || [ -f "src/${memtest_bin}" ] || \ -		x_ ./update project trees -b memtest86plus +		x_ ./update trees -b memtest86plus  	x_ rm -f "${romdir}/"* @@ -151,13 +146,12 @@ prepare_target()  build_dependency_seabios()  {  	[ "${payload_seabios}" = "y" ] || return 0 +	[ -f "${seavgabiosrom}" ] && \ +	    [ -f elf/seabios/default/libgfxinit/bios.bin.elf ] && \ +	    [ -f elf/seabios/default/vgarom/bios.bin.elf ] && \ +	    [ -f elf/seabios/default/normal/bios.bin.elf ] && return 0 -	if [ ! -f "${seavgabiosrom}" ] \ -	    || [ ! -f elf/seabios/default/libgfxinit/bios.bin.elf ] \ -	    || [ ! -f elf/seabios/default/vgarom/bios.bin.elf ] \ -	    || [ ! -f elf/seabios/default/normal/bios.bin.elf ]; then -		x_ ./update project trees -b seabios -	fi +	x_ ./update trees -b seabios  }  build_dependency_grub() @@ -177,14 +171,14 @@ build_dependency_grub()  		    rebuild_grub="y" && break  	done  	[ "${rebuild_grub}" = "y" ] || return 0 -	x_ ./build fw grub +	x_ ./build grub  }  build_dependency_uboot()  {  	[ "${payload_uboot}" = "y" ] || return 0 -	x_ ./update project trees -b u-boot ${board} +	x_ ./update trees -b u-boot ${board}  	ubdir="elf/u-boot/${board}/${uboot_config}"  	ubootelf="${ubdir}/u-boot.elf"  	[ ! -f "${ubootelf}" ] && [ -f "${ubdir}/u-boot" ] && \ @@ -221,7 +215,7 @@ build_roms()  		    "${cbcfg}" "${board}" "${displaymode}" "${initmode}" \  		    1>&2 && return 0 -	x_ ./update project trees -b coreboot ${board} +	x_ ./update trees -b coreboot ${board}  	_cbrom="elf/coreboot_nopayload_DO_NOT_FLASH/${board}/${initmode}_${displaymode}"  	[ "${initmode}" = "normal" ] && \ @@ -397,9 +391,9 @@ moverom() {  usage()  {  	cat <<- EOF -	USAGE:	./build fw coreboot targetname -	To build *all* boards, do this: ./build fw coreboot all -	To list *all* boards, do this: ./build fw coreboot list +	USAGE:	./build roms targetname +	To build *all* boards, do this: ./build roms all +	To list *all* boards, do this: ./build roms list  	Optional Flags:  	-d: displaymode @@ -408,12 +402,12 @@ usage()  	Example commands: -		./build fw coreboot x60 -		./build fw coreboot x200_8mb x60 -		./build fw coreboot x60 -p grub -d corebootfb -k usqwerty +		./build roms x60 +		./build roms x200_8mb x60 +		./build roms x60 -p grub -d corebootfb -k usqwerty  	possible values for 'target': -	$(listitems "config/coreboot") +	$(items "config/coreboot")  	Refer to the ${projectname} documentation for more information.  	EOF diff --git a/script/build/fw/serprog b/script/build/serprog index eb0e5ede..43251acd 100755 --- a/script/build/fw/serprog +++ b/script/build/serprog @@ -22,12 +22,12 @@ main()  		platform="rp2040"  		boards_dir=${pico_sdk_dir}/src/boards/include/boards  		[ -d "${pico_src_dir}/" ] || \ -			x_ ./update project trees -f "rpi-pico-serprog" +			x_ ./update trees -f "rpi-pico-serprog"  	elif [ "${1}" = "stm32" ]; then  		platform="stm32"  		boards_dir=${stm32_src_dir}/boards  		[ -d "${stm32_src_dir}/" ] || \ -			x_ ./update project trees -f "stm32-vserprog" +			x_ ./update trees -f "stm32-vserprog"  	else  		err "${usage}"  	fi diff --git a/script/update/project/release b/script/update/release index e7973537..6188d793 100755 --- a/script/update/project/release +++ b/script/update/release @@ -46,7 +46,7 @@ mkvdir()  	git clone . "${srcdir}" || err "mkdir: !gitclone \"${srcdir}\""  	[ -z "${_nogit}" ] || x_ rm -Rf ".git" -	rm -Rf "${srcdir}/.git" +	rm -Rf "${srcdir}/.git" || err "mkvdir: !rm -Rf ${srcdir}/.git"  	insert_version_files "${srcdir}" || err "mkvdir ${srcdir}: versionfile"  } @@ -87,7 +87,7 @@ build_release()  fetch_trees()  {  	for x in ${_f}; do -		./update project trees -f "${x}" || err "${_xm}: fetch ${x}" +		./update trees -f "${x}" || err "${_xm}: fetch ${x}"  	done  	for x in config/*/build.list; do  		[ -f "${x}" ] || continue @@ -101,9 +101,9 @@ fetch_trees()  mkrom_images()  { -	./build fw coreboot all || err "${_xm}: roms-all" -	./build fw serprog rp2040 || err "${_xm}: rp2040" -	./build fw serprog stm32 || err "${_xm}: stm32" +	./build roms all || err "${_xm}: roms-all" +	./build serprog rp2040 || err "${_xm}: rp2040" +	./build serprog stm32 || err "${_xm}: stm32"  	for rombuild in bin/*; do  		[ -d "${rombuild}" ] || continue @@ -161,7 +161,7 @@ nukerom()  	fi  	# Hash the images before removing vendor files -	# which ./update vendor inject uses for verification +	# which "./vendor inject" uses for verification  	x_ rm -f "${romdir}/vendorhashes"  	x_ touch "${romdir}/vendorhashes"  	( @@ -171,7 +171,7 @@ nukerom()  	for romfile in "${romdir}"/*.rom; do  		[ -f "${romfile}" ] || continue -		x_ ./update vendor inject -r "${romfile}" -b ${target} -n nuke +		x_ ./vendor inject -r "${romfile}" -b ${target} -n nuke  	done  } @@ -201,6 +201,8 @@ insert_copying_files()  	x_ cp "src/seabios/default/COPYING" "${l}/COPYING.coreboot"  	x_ cp "src/seabios/default/COPYING.LESSER" "${l}/COPYING.LESSER.seabios"  	x_ cp -R "src/u-boot/default/Licenses" "${l}/COPYING.u-boot" +	x_ printf "Multiple licenses. Check corresponding %s source archive\n" \ +	    "${projectname}" > "${1}/COPYING"  }  mkrom_tarball() diff --git a/script/update/project/trees b/script/update/trees index c8643966..a71dbec0 100755 --- a/script/update/project/trees +++ b/script/update/trees @@ -16,12 +16,9 @@ export LOCALVERSION="-${projectname}-${version%%-*}"  eval "$(setvars "" arch cfgsdir codedir config config_name crossgcc_ada mode \      elfdir listfile project romtype target target_dir targets tree _f target1)" -tmpclean="$(mktemp -d -t makeclean.XXXXXXXXXX)" -  main()  { -	while getopts f:b:m:u:c:x:s:l:n: option -	do +	while getopts f:b:m:u:c:x:s:l:n: option; do  		_f="${1}"  		case "${1}" in  		-b) : ;; @@ -37,27 +34,21 @@ main()  		esac  		shift; project="${OPTARG#src/}"; shift  	done -	[ -z "${_f}" ] && err "flag not specified (-m, -u, -b, -c, -x, -f, -s, -l or -n)" +	[ -z "${_f}" ] && err "missing flag (-m/-u/-b/-c/-x/-f/-s/-l/-n)"  	[ -z "${project}" ] && err "project name not specified" -	if [ ! -f "config/${project}/build.list" ]; then -		build_projects $@ -	else -		build_targets $@ -	fi +	[ -f "config/${project}/build.list" ] && build_targets $@ && return 0 +	build_projects $@  }  build_projects()  { -	[ $# -gt 0 ] && x_ ./update project trees ${_f} ${@} +	[ $# -gt 0 ] && x_ ./update trees ${_f} ${@} -	if [ "${mode}" = "fetch" ]; then -		fetch_project_repo -		return 0 -	fi +	[ "${mode}" = "fetch" ] && fetch_project_repo && return 0  	codedir="src/${project}" -	[ -d "${codedir}" ] || x_ ./update project trees -f "${project}" +	[ -d "${codedir}" ] || x_ ./update trees -f "${project}"  	if [ "${project}" = "uefitool" ]; then  	( @@ -87,7 +78,7 @@ build_targets()  	[ $# -gt 0 ] && target1="${1}"  	[ "${target1}" = "utils" ] && [ "${project}" = "coreboot" ] && \  		shift 1 -	targets=$(listitems "${cfgsdir}") || \ +	targets=$(items "${cfgsdir}") || \  	    err "Cannot get options for ${cfgsdir}"  	[ $# -gt 0 ] && targets=$@ @@ -103,7 +94,7 @@ handle_targets()  		printf "Running 'make %s' for project '%s, target '%s''\n" \  		    "${mode}" "${project}" "${target}"  		[ "${project}" != "coreboot" ] || [ ! -z ${mode} ] || \ -			x_ ./update vendor download ${target} +			x_ ./vendor download ${target}  		x_ handle_defconfig  	done @@ -140,10 +131,7 @@ handle_src_tree()  	romtype="normal"  	target_dir="${cfgsdir}/${target}" -	if [ "${mode}" = "fetch" ]; then -		fetch_project_trees -		return 1 -	fi +	[ "${mode}" = "fetch" ] && fetch_project_trees && return 1  	x_ mkdir -p "${elfdir}/${target}"  	eval "$(setvars "" arch tree)" @@ -151,10 +139,9 @@ handle_src_tree()  	. "${target_dir}/target.cfg" || \  	    err "handle_src_tree ${target_dir}: cannot load target.cfg" -	[ -z "${tree}" ] && \ -		err "handle_src_tree: ${target_dir}: tree undefined" -	[ -z "${arch}" ] && \ -		err "handle_src_tree: ${target_dir}: undefined cpu type" +	for ix in arch tree; do +		eval "[ -z \"\${$ix}\" ] && err \"handle_src: $ix undefined\"" +	done  	codedir="src/${project}/${tree}" @@ -165,23 +152,15 @@ handle_src_tree()  			    "${codedir}" 1>&2  			return 1  		fi -		x_ ./update project trees -f "${project}" "${target}" -	elif [ "${mode}" = "distclean" ] || \ -	    [ "${mode}" = "crossgcc-clean" ]; then -		[ -f "${tmpclean}/${tree}" ] && return 1 -		touch "${tmpclean}/${tree}" +		x_ ./update trees -f "${project}" "${target}"  	fi  	[ "${target1}" = "utils" ] && [ "${project}" = "coreboot" ] && return 0 +	[ "$project" != "coreboot" ] && [ "$project" != "u-boot" ] && return 0  	# u-boot and coreboot are both compiled with coreboot's crossgcc -	if [ "${project}" = "coreboot" ] || [ "${project}" = "u-boot" ]; then -		[ ! -z ${mode} ] || check_cross_compiler || \ -		    err "handle_src_tree ${project}/${target}: crossgcc" -		cbfstool="cbutils/${tree}/cbfstool" -		[ -f "${cbfstool}" ] || \ -			x_ ./update project trees -b coreboot utils "${tree}" -	fi +	[ -z ${mode} ] || return 0 +	check_cross_compiler  }  # set up cross-compiler (coreboot crossgcc) for u-boot and coreboot @@ -190,42 +169,35 @@ check_cross_compiler()  {  	[ "${crossgcc_ada}" = "y" ] || [ "${crossgcc_ada}" = "n" ] || \  		crossgcc_ada="y" -	[ "${crossgcc_ada}" != "y" ] && \ -		export BUILD_LANGUAGES=c +	[ "${crossgcc_ada}" = "y" ] || export BUILD_LANGUAGES=c  	cbdir="src/coreboot/${tree}" -	[ "${project}" != "coreboot" ] && \ -		cbdir="src/coreboot/default" +	[ "${project}" != "coreboot" ] && cbdir="src/coreboot/default"  	# only true if not building coreboot:  	ctarget="${cbdir#src/coreboot/}" -	[ -d "${cbdir}" ] || \ -		x_ ./update project trees -f coreboot ${ctarget} +	[ -d "${cbdir}" ] || x_ ./update trees -f coreboot ${ctarget}  	if [ "${arch}" = "x86_32" ] || [ "${arch}" = "x86_64" ]; then  		[ -d "${cbdir}/util/crossgcc/xgcc/i386-elf/" ] || \ -			make -C "${cbdir}" crossgcc-i386 CPUS=$(nproc) || \ -			    return 1 +			x_ make -C "${cbdir}" crossgcc-i386 CPUS=$(nproc)  		case "$(uname -m)" in  			x86*|i*86|amd64) : ;;  			*) export CROSS_COMPILE=i386-elf- ;;  		esac  	elif [ "${arch}" = "ARMv7" ]; then  		[ -d "${cbdir}/util/crossgcc/xgcc/arm-eabi/" ] || \ -			make -C "${cbdir}" crossgcc-arm CPUS=$(nproc) || \ -			    return 1 +			x_ make -C "${cbdir}" crossgcc-arm CPUS=$(nproc)  		case "$(uname -m)" in  			arm|arm32|armv6*|armv7*) : ;;  			*) export CROSS_COMPILE=arm-eabi- ;;  		esac  	elif [ "${arch}" = "AArch64" ]; then  		[ -d "${cbdir}/util/crossgcc/xgcc/aarch64-elf/" ] || \ -			make -C "${cbdir}" crossgcc-aarch64 CPUS=$(nproc) || \ -			    return 1 +			x_ make -C "${cbdir}" crossgcc-aarch64 CPUS=$(nproc)  		# aarch64 also needs armv7 toolchain for arm-trusted-firmware  		[ -d "${cbdir}/util/crossgcc/xgcc/arm-eabi/" ] || \ -			make -C "${cbdir}" crossgcc-arm CPUS=$(nproc) || \ -			    return 1 +			x_ make -C "${cbdir}" crossgcc-arm CPUS=$(nproc)  		case "$(uname -m)" in  			arm64|aarch64) : ;;  			*) export CROSS_COMPILE=aarch64-elf- ;; @@ -233,7 +205,7 @@ check_cross_compiler()  	fi  	# we *must* ensure that u-boot's build system uses crossgcc first -	export PATH="$(pwd)/${cbdir}/util/crossgcc/xgcc/bin:$PATH" +	export PATH="${PWD}/${cbdir}/util/crossgcc/xgcc/bin:$PATH"  }  check_config() @@ -279,6 +251,7 @@ run_make_command()  		x_ printf "%s\n" "${version%%-*}" >"${codedir}/.coreboot-version"  	x_ make ${mode} -j$(nproc) -C "${codedir}" +  	[ "${mode}" != "clean" ] && return 0  	make -C "${codedir}" distclean 2>/dev/null || :  } diff --git a/script/update/vendor/download b/script/vendor/download index 87e9d3a5..40244fff 100755 --- a/script/update/vendor/download +++ b/script/vendor/download @@ -54,18 +54,17 @@ detect_firmware()  build_dependencies()  {  	[ -d ${cbdir} ] || \ -		x_ ./update project trees -f coreboot ${cbdir##*/} +		x_ ./update trees -f coreboot ${cbdir##*/}  	for d in uefitool biosutilities bios_extract; do  		[ -d "src/${d}" ] && continue -		x_ ./update project trees -f "${d}" +		x_ ./update trees -f "${d}"  	done  	[ -f "${uefiextract}" ] || \ -		x_ ./update project trees -b uefitool +		x_ ./update trees -b uefitool  	[ -f "${kbc1126_ec_dump}" ] || \  		x_ make -C "${cbdir}/util/kbc1126" -	if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then -		x_ ./update project trees -b coreboot utils default -	fi +	[ -f "${cbfstool}" ] && [ -f "${ifdtool}" ] && return 0 +	x_ ./update trees -b coreboot utils default  }  download_vendorfiles() @@ -85,8 +84,7 @@ download_vendorfiles()  		    "${E6400_VGA_DL_url_bkup}" "${E6400_VGA_DL_hash}" \  		    "${CONFIG_VGA_BIOS_FILE}"  	[ -z "${CONFIG_HAVE_MRC}" ] && return 0 -	fetch "mrc" "${MRC_url}" "${MRC_url_bkup}" "${MRC_hash}" \ -	    "${CONFIG_MRC_FILE}" +	fetch "mrc" "$MRC_url" "$MRC_url_bkup" "$MRC_hash" "$CONFIG_MRC_FILE"  }  fetch() @@ -136,7 +134,7 @@ mkdirs()  {  	[ -f "${1}" ] && \  		printf "mkdirs ${1} ${2}: already downloaded\n" 1>&2 && return 1 -	x_ mkdir -p "${1%/*}" +	mkdir -p "${1%/*}" || err "mkdirs: !mkdir -p ${1%/*}"  	x_ rm -Rf "${appdir}"  	x_ mkdir -p "${appdir}/"  	extract_archive "${_dl}" "${appdir}" || \ @@ -192,7 +190,7 @@ extract_kbc1126ec()  	mv Rompaq/68*.BIN ec.bin || :  	if [ ! -f ec.bin ]; then  		unar -D ROM.CAB Rom.bin || unar -D Rom.CAB Rom.bin || \ -		    x_ unar -D 68*.CAB Rom.bin +		    unar -D 68*.CAB Rom.bin || err "can't extract Rom.bin"  		x_ mv Rom.bin ec.bin  	fi  	[ -f ec.bin ] || err "extract_kbc1126_ec ${board}: can't extract" @@ -205,7 +203,8 @@ extract_kbc1126ec()  	done  	[ "${ec_ex}" = "y" ] || \  	    err "extract_kbc1126_ec ${board}: didn't extract ecfw1/2.bin" -	x_ cp "${appdir}/"ec.bin.fw* "${_dest%/*}/" +	cp "${appdir}/"ec.bin.fw* "${_dest%/*}/" || \ +	    err "extract_kbc1126_ec ${board}: can't copy ec binaries"  }  extract_e6400vga() @@ -223,7 +222,8 @@ extract_e6400vga()  	[ -f "${E6400_VGA_romname}" ] || \  		err "extract_e6400vga: can't extract vga rom from bios.bin"  	) -	x_ cp "${appdir}/${E6400_VGA_romname}" "${_dest}" +	cp "${appdir}/${E6400_VGA_romname}" "${_dest}" || \ +	    err "extract_e6400vga ${board}: can't copy vga rom to ${_dest}"  }  extract_sch5545ec() diff --git a/script/update/vendor/inject b/script/vendor/inject index c4a7f702..923224d0 100755 --- a/script/update/vendor/inject +++ b/script/vendor/inject @@ -15,7 +15,7 @@ main()  {  	[ $# -lt 1 ] && err "No options specified."  	[ "${1}" = "listboards" ] && \ -		listitems config/coreboot && exit 0 +		items config/coreboot && exit 0  	archive="${1}" @@ -78,7 +78,7 @@ detect_board()  		_stripped_prefix=${filename#*_}  		board="${_stripped_prefix%.tar.xz}" ;;  	*) -		err "detect_board: could not detect board type" +		err "detect_board $filename: could not detect board type"  	esac	  	[ -d "${boarddir}/" ] || \  		err "detect_board: dir, ${boarddir}, doesn't exist" @@ -87,18 +87,21 @@ detect_board()  build_dependencies()  { -	[ -d "${cbdir}" ] || x_ ./update project trees -f coreboot default +	[ -d "${cbdir}" ] || x_ ./update trees -f coreboot default  	if [ ! -f "${cbfstool}" ] || [ ! -f "${ifdtool}" ]; then -		x_ ./update project trees -b coreboot utils default +		x_ ./update trees -b coreboot utils default  	fi  	[ -z "${new_mac}" ] || [ -f "${nvmutil}" ] || x_ make -C util/nvmutil  	[ "${nukemode}" = "nuke" ] && return 0 -	x_ ./update vendor download ${board} +	x_ ./vendor download ${board}  }  inject_vendorfiles()  { -	[ "${release}" != "y" ] && x_ patch_rom "${rom}" && return 0 +	if [ "${release}" != "y" ]; then +		patch_rom "${rom}" +		return 0 +	fi  	printf "patching release images\n"  	patch_release_roms  } @@ -108,11 +111,12 @@ patch_release_roms()  	_tmpdir="tmp/romdir"  	x_ rm -Rf "${_tmpdir}"  	x_ mkdir -p "${_tmpdir}" -	x_ tar -xf "${archive}" -C "${_tmpdir}" +	tar -xf "${archive}" -C "${_tmpdir}" || \ +	    err "patch_release_roms: !tar -xf \"${archive}\" -C \"${_tmpdir}\""  	for x in "${_tmpdir}"/bin/*/*.rom ; do  		printf "patching rom: %s\n" "$x" -		x_ patch_rom "${x}" +		patch_rom "${x}"  	done  	for x in "${_tmpdir}"/bin/*/*_nomicrocode.rom ; do  		[ -f "${x}" ] || continue @@ -123,7 +127,7 @@ patch_release_roms()  	done  	( -	x_ cd "${_tmpdir}/bin/"* +	x_ cd "${_tmpdir}/bin/"* # TODO: very dodgy, re-write accordingly  	# NOTE: For compatibility with older rom releases, defer to sha1  	[ "${nukemode}" = "nuke" ] || \ @@ -211,22 +215,28 @@ inject()  	if [ "${_t}" = "GbE" ]; then  		x_ mkdir -p tmp -		x_ cp "${_dest}" "tmp/gbe.bin" +		cp "${_dest}" "tmp/gbe.bin" || \ +		    err "inject: !cp \"${_dest}\" \"tmp/gbe.bin\""  		_dest="tmp/gbe.bin" -		x_ "${nvmutil}" "${_dest}" setmac "${new_mac}" +		"${nvmutil}" "${_dest}" setmac "${new_mac}" || \ +		    err "inject ${_dest}: can't change mac address"  	fi  	if [ "${cbfsname}" = "IFD" ]; then  		if [ "${nukemode}" != "nuke" ]; then -			x_ "${ifdtool}" -i ${_t}:${_dest} "${rom}" -O "$rom" +			"${ifdtool}" -i ${_t}:${_dest} "${rom}" -O "$rom" || \ +			    err "inject: can't insert $_t ($dest) into $rom"  		else -			x_ "${ifdtool}" --nuke ${_t} "${rom}" -O "${rom}" +			"${ifdtool}" --nuke ${_t} "${rom}" -O "${rom}" || \ +			    err "inject ${rom}: can't nuke ${_t} in IFD"  		fi  	else  		if [ "${nukemode}" != "nuke" ]; then -			x_ "${cbfstool}" "${rom}" add -f "${_dest}" \ -			    -n "${cbfsname}" -t ${_t} ${_offset} +			"${cbfstool}" "${rom}" add -f "${_dest}" \ +			    -n "${cbfsname}" -t ${_t} ${_offset} || \ +			    err "inject $rom: can't insert $_t file $_dest"  		else -			x_ "${cbfstool}" "${rom}" remove -n "${cbfsname}" +			"${cbfstool}" "${rom}" remove -n "${cbfsname}" || \ +			    err "inject $rom: can't remove ${cbfsname}"  		fi  	fi @@ -235,13 +245,13 @@ inject()  usage()  {  	cat <<- EOF -	USAGE: ./update vendor inject -r [rom path] -b [boardname] -m [macaddress] -	Example: ./update vendor inject -r x230_12mb.rom -b x230_12mb +	USAGE: ./vendor inject -r [rom path] -b [boardname] -m [macaddress] +	Example: ./vendor inject -r x230_12mb.rom -b x230_12mb  	Adding a macadress to the gbe is optional.  	If the [-m] parameter is left blank, the gbe will not be touched. -	Type './update vendor inject listboards' to get a list of valid boards +	Type './vendor inject listboards' to get a list of valid boards  	EOF  } @@ -0,0 +1 @@ +build
\ No newline at end of file | 
