Message ID | 20170125215637.2992-4-laurent@vivier.eu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 25 January 2017 at 21:56, Laurent Vivier <laurent@vivier.eu> wrote: > the correct UTS machine name (as expected by systemd) is "parisc", > not "hppa". > > Signed-off-by: Laurent Vivier <laurent@vivier.eu> > --- > linux-user/uname.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/linux-user/uname.c b/linux-user/uname.c > index 313b79d..daad002 100644 > --- a/linux-user/uname.c > +++ b/linux-user/uname.c > @@ -63,6 +63,8 @@ const char *cpu_to_uname_machine(void *cpu_env) > return "i586"; > } > return "i686"; > +#elif defined(TARGET_HPPA) > + return "parisc"; > #else > /* default is #define-d in each arch/ subdir */ > return UNAME_MACHINE; This function is for when the uname string has to be determined at runtime. If this target has a fixed string, then you should just set UNAME_MACHINE correctly in linux-user/$ARCH/target_syscall.h. thanks -- PMM
diff --git a/linux-user/uname.c b/linux-user/uname.c index 313b79d..daad002 100644 --- a/linux-user/uname.c +++ b/linux-user/uname.c @@ -63,6 +63,8 @@ const char *cpu_to_uname_machine(void *cpu_env) return "i586"; } return "i686"; +#elif defined(TARGET_HPPA) + return "parisc"; #else /* default is #define-d in each arch/ subdir */ return UNAME_MACHINE;
the correct UTS machine name (as expected by systemd) is "parisc", not "hppa". Signed-off-by: Laurent Vivier <laurent@vivier.eu> --- linux-user/uname.c | 2 ++ 1 file changed, 2 insertions(+)