]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
risc-v fix vendor error (#213)
authorXea <0xea@autistici.org>
Mon, 19 Jun 2023 16:20:29 +0000 (16:20 +0000)
committerGitHub <noreply@github.com>
Mon, 19 Jun 2023 16:20:29 +0000 (17:20 +0100)
* added mproc for risc-v

* make mproc arches alphabetically sorted again

src/if-linux.c

index 212ed5df3939c8aa1d4200be9d26444dbfa21749..8c560b5273f7b71cddc973c51263417ec9592e62 100644 (file)
@@ -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__)