lkml.org 
[lkml]   [2024]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] check-uapi: added arm64 support
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>


\
 
 \ /
  Last update: 2024-05-27 16:12    [W:0.039 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site