On 6/1/20 9:26 AM, Philippe Mathieu-Daudé wrote: > On 6/1/20 4:13 AM, Richard Henderson wrote: >> On 5/22/20 9:37 AM, Philippe Mathieu-Daudé wrote: >>> + $(if $(call startwith,risc,$1),risc,\ >> >> Should be "riscv" not "risc". Especially the substitution. > > Indeed. > >> >>> + $(if $(call startwith,aarch64,$1),arm,\ >>> + $(if $(call startwith,x86_64,$1),i386,\ >> >> We don't have an exact equality function?
For aarch64_be we want to use startwith(). I'll update x86_64. > > There is this one which returns y/n: > > # String testing functions: inputs to these can be any string; > # the output is always either "y" or "n". Leading and trailing whitespace > # is ignored when comparing strings. > # String equality > eq = $(if $(subst $2,,$1)$(subst $1,,$2),n,y) > > I'll add a simpler strequal(). >