Skip to content

Commit

Permalink
hy-util: detect armv7hnl properly
Browse files Browse the repository at this point in the history
References: https://bugzilla.redhat.com/show_bug.cgi?id=1368238
Reported-by: Alexey Charkov <alchark@gmail.com>
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>

Closes: #179
Approved by: cgwalters
  • Loading branch information
Igor Gnatenko authored and rh-atomic-bot committed Aug 31, 2016
1 parent d512fc4 commit 0646992
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions libdnf/hy-util.c
Expand Up @@ -132,10 +132,11 @@ hy_detect_arch(char **arch)
int ret = parse_cpu_flags(&flags, "Features");
if (ret)
return ret;
if (flags & (ARM_NEON | ARM_VFP3))
strcpy(un.machine, "armv7hnl");
else if (flags & ARM_VFP3)
strcpy(un.machine, "armv7hl");
if (flags & ARM_VFP3)
if (flags & ARM_NEON)
strcpy(un.machine, "armv7hnl");
else
strcpy(un.machine, "armv7hl");
}
#ifdef __MIPSEL__
if (!strcmp(un.machine, "mips"))
Expand Down

0 comments on commit 0646992

Please sign in to comment.