From: Xea <0xea@autistici.org> Date: Mon, 19 Jun 2023 16:20:29 +0000 (+0000) Subject: risc-v fix vendor error (#213) X-Git-Tag: v10.0.2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7035a2f3fcceddae062da0a6a023b9d381cc690;p=thirdparty%2Fdhcpcd.git risc-v fix vendor error (#213) * added mproc for risc-v * make mproc arches alphabetically sorted again --- diff --git a/src/if-linux.c b/src/if-linux.c index 212ed5df..8c560b52 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -182,18 +182,20 @@ static const char *mproc = "cpu model" #elif defined(__frv__) "System" +#elif defined(__hppa__) + "model" #elif defined(__i386__) || defined(__x86_64__) "vendor_id" #elif defined(__ia64__) "vendor" -#elif defined(__hppa__) - "model" #elif defined(__m68k__) "MMU" #elif defined(__mips__) "system type" #elif defined(__powerpc__) || defined(__powerpc64__) "machine" +#elif defined(__riscv) + "uarch" #elif defined(__s390__) || defined(__s390x__) "Manufacturer" #elif defined(__sh__)