[PATCH 1/2] build: work around secondary expansion limitation with some Make versions

Andrew Jones andrew.jones at linux.dev
Mon Sep 8 11:22:01 PDT 2025


Missing the kvm-unit-tests prefix and, for this patch, the riscv prefix.

On Mon, Sep 08, 2025 at 11:06:17AM +1000, Nicholas Piggin wrote:
> GNU Make 4.2.1 as shipped in Ubuntu 20.04 has a problem with secondary
> expansion and variable names containing the '/' character. Make 4.3 and
> 4.4 don't have the problem.
> 
> Instead of using the variable name from riscv/sbi-deps and matching it
> from the riscv/sbi.* target name, name the variable sbi-deps and match
> it by stripping the riscv/ directory name off the riscv/sbi.* target
> name.
> 
> Reported-by: Joel Stanley <joel at jms.id.au>
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
> ---
>  riscv/Makefile | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>

Added the riscv prefix while merging.

Thanks,
drew



More information about the kvm-riscv mailing list