mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] check-uapi: added arm64 support
       [not found] <20240327103547.25695-1-liuyun01@kylinos.cn>
@ 2024-03-27 18:17 ` John Moon
  0 siblings, 0 replies; only message in thread
From: John Moon @ 2024-03-27 18:17 UTC (permalink / raw)
  To: Jackie Liu, masahiroy; +Cc: linux-kernel

On Wed Mar 27, 2024 at 3:35 AM PDT, Jackie Liu wrote:
> By default, `uname -m` of arm64 will return aarch64, and the correct source code
> directory cannot be obtained when the script is executed. In order to solve this
> problem, it is necessary to correct ARCH=arm64 when aarch64.
>
> Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
> ---
>  scripts/check-uapi.sh | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/scripts/check-uapi.sh b/scripts/check-uapi.sh
> index 955581735cb3..1c39d13b90b8 100755
> --- a/scripts/check-uapi.sh
> +++ b/scripts/check-uapi.sh
> @@ -408,6 +408,8 @@ check_deps() {
>  	ARCH="${ARCH:-$(uname -m)}"
>  	if [ "$ARCH" = "x86_64" ]; then
>  		ARCH="x86"
> +	elif [ "$ARCH" = "aarch64" ]; then
> +		ARCH="arm64"
>  	fi
>
>  	local -r abidiff_min_version="2.4"
> --
> 2.33.0

Good catch. Looks good to me!

Reviewed-by: John Moon <john@jmoon.dev>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-27 18:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240327103547.25695-1-liuyun01@kylinos.cn>
2024-03-27 18:17 ` [PATCH] check-uapi: added arm64 support John Moon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®