diff options
| author | Leah Rowe <vimuser@noreply.codeberg.org> | 2023-10-14 19:42:54 +0000 | 
|---|---|---|
| committer | Leah Rowe <vimuser@noreply.codeberg.org> | 2023-10-14 19:42:54 +0000 | 
| commit | 8583a05dde772923125976a9ba7c85d249306126 (patch) | |
| tree | e6cd786f0d4b55e0303da296d4bbea24ca6544cc /script/update | |
| parent | 65af756fc33ce1a8960c690e681d12ebeef20750 (diff) | |
| parent | 4d9567a7561df6eeb0dd81f2faf522c8526163b0 (diff) | |
Merge pull request 'Update U-Boot to v2023.10 and use default coreboot tree for gru chromebooks' (#136) from alpernebbi/lbmk:uboot-v2023.10 into master
Reviewed-on: https://codeberg.org/libreboot/lbmk/pulls/136
Diffstat (limited to 'script/update')
| -rwxr-xr-x | script/update/project/trees | 18 | 
1 files changed, 11 insertions, 7 deletions
diff --git a/script/update/project/trees b/script/update/project/trees index 6a31d8d0..bb0899f0 100755 --- a/script/update/project/trees +++ b/script/update/project/trees @@ -1,6 +1,6 @@  #!/usr/bin/env sh  # SPDX-License-Identifier: GPL-3.0-or-later -# SPDX-FileCopyrightText: 2022 Alper Nebi Yasak <alpernebiyasak@gmail.com> +# SPDX-FileCopyrightText: 2022-2023 Alper Nebi Yasak <alpernebiyasak@gmail.com>  # SPDX-FileCopyrightText: 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>  # SPDX-FileCopyrightText: 2023 Leah Rowe <leah@libreboot.org> @@ -21,7 +21,7 @@ tmpclean="$(mktemp -d -t makeclean.XXXXXXXXXX)"  main()  { -	while getopts f:b:m:u:c:x: option +	while getopts f:b:m:u:c:x:s:l:n: option  	do  		_f="${1}"  		case "${1}" in @@ -31,11 +31,14 @@ main()  		-c) mode="distclean" ;;  		-x) mode="crossgcc-clean" ;;  		-f) mode="fetch" ;; +		-s) mode="savedefconfig" ;; +		-l) mode="olddefconfig" ;; +		-n) mode="nconfig" ;;  		*) err "Invalid option" ;;  		esac  		shift; project="${OPTARG#src/}"; shift  	done -	[ -z "${_f}" ] && err "flag not specified (-m, -u, -b, -c or -x)" +	[ -z "${_f}" ] && err "flag not specified (-m, -u, -b, -c, -x, -f, -s, -l or -n)"  	[ -z "${project}" ] && err "project name not specified"  	if [ ! -f "config/${project}/build.list" ]; then @@ -193,9 +196,7 @@ check_cross_compiler()  	cbdir="src/coreboot/${tree}"  	[ "${project}" != "coreboot" ] && \ -		cbdir="src/coreboot/default" # not u-boot (e.g. linux) -	[ "${project}" = "u-boot" ] && \ -		cbdir="src/coreboot/cros" # u-boot only used on coreboot/cros +		cbdir="src/coreboot/default"  	# only true if not building coreboot:  	ctarget="${cbdir#src/coreboot/}" @@ -263,8 +264,11 @@ handle_makefile()  	if [ -e "${codedir}/.git" ] && [ "${project}" = "u-boot" ] && \  	    [ "${mode}" = "distclean" ]; then  		x_ git -C "${codedir}" clean -fdx -	elif [ "${mode}" = "oldconfig" ] || [ "${mode}" = "menuconfig" ]; then +	elif [ "${mode}" = "oldconfig" ] || [ "${mode}" = "olddefconfig" ] || \ +	    [ "${mode}" = "menuconfig" ] || [ "${mode}" = "nconfig" ]; then  		x_ cp "${codedir}/.config" "${config}" +	elif [ "${mode}" = "savedefconfig" ]; then +		x_ cp "${codedir}/defconfig" "${config}"  	fi  }  | 
