diff options
| author | Leah Rowe <leah@libreboot.org> | 2023-05-15 04:52:27 +0100 | 
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2023-05-15 04:53:14 +0100 | 
| commit | 7bd206b9e735c0b8bd799f70ac9eccb14b2783e6 (patch) | |
| tree | 27bb80e0941cadfb9ec23171ca014ef140e847d4 /resources | |
| parent | bd82d90faf82fa1ebdd18df7b1fda4da40a01aa4 (diff) | |
download/coreboot: remove errant code
the build_error file is obsolete
Diffstat (limited to 'resources')
| -rwxr-xr-x | resources/scripts/download/coreboot | 18 | 
1 files changed, 6 insertions, 12 deletions
| diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot index e6265d3e..2523d7d9 100755 --- a/resources/scripts/download/coreboot +++ b/resources/scripts/download/coreboot @@ -39,11 +39,9 @@ main()  		list_supported_boards  		exit 0  	fi -	[ -f build_error ] && rm -f build_error  	fetch_coreboot_trees $@ -	rm -f "build_error"  	printf "\n\n"  	exit 0  } @@ -66,7 +64,6 @@ fetch_coreboot_trees()  	for board in ${boards}; do  		rm -f ${cbcfgsdir}/*/seen  		download_coreboot_for_board "${board}" -		[ -f build_error ] && break  	done  	rm -f ${cbcfgsdir}/*/seen @@ -78,8 +75,9 @@ download_coreboot_for_board()  	cbtree="undefined"  	cbrevision="undefined" -	fetch_coreboot_config "${_board}"; rm -f ${cbcfgsdir}/*/seen -	[ -f build_error ] && return 1 +	fetch_coreboot_config "${_board}" || exit 1 + +	rm -f ${cbcfgsdir}/*/seen  	if [ -d "coreboot/${cbtree}" ]; then  		printf "REMARK: download/coreboot %s: exists. Skipping.\n" \ @@ -106,13 +104,9 @@ fetch_coreboot_config()  		check_config_for_board "${_board}" || return 1  		# This is to override $cbrevision and $cbtree -		. "${cbcfgsdir}/${_board}/board.cfg" \ -				|| touch ../build_error -		if [ -f build_error ]; then -			printf "ERROR: download/coreboot:" -			printf " problem sourcing %s/board.cfg\n" ${_board} -			return 1 -		elif [ "${_board}" != "${cbtree}" ]; then +		. "${cbcfgsdir}/${_board}/board.cfg" || exit 1 + +		if [ "${_board}" != "${cbtree}" ]; then  			_board="${cbtree}"  			continue  		elif [ "${cbtree}" = "undefined" ]; then | 
