[PW_SID:1127081] kselftest/riscv: Improve building under native riscv64 environment#2278
[PW_SID:1127081] kselftest/riscv: Improve building under native riscv64 environment#2278linux-riscv-bot wants to merge 1 commit into
Conversation
When we build the kselftest natively, we usually don't pass an ARCH=
parameter. In this case if I build kselftest/riscv under a riscv64
environment, the testcase will not be built at all because 'uname -m'
returns riscv64 instead of riscv.
make -C tools/testing/selftests TARGETS=riscv
make: Entering directory 'linux/tools/testing/selftests'
make[1]: Entering directory 'linux/tools/testing/selftests/riscv'
make[1]: Leaving directory 'linux/tools/testing/selftests/riscv'
make: Leaving directory 'linux/tools/testing/selftests'
This issue can be fixed by getting ARCH from scripts/subarch.include,
whose SUBARCH normalizes 'riscv64' to 'riscv'. This also aligns with
how other selftests (e.g. arm64, x86) already resolve ARCH.
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
|
Patch 1: "kselftest/riscv: Improve building under native riscv64 environment" |
PR for series 1127081 applied to workflow__riscv__fixes
Name: kselftest/riscv: Improve building under native riscv64 environment
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1127081
Version: 1