Use complete hardware name without spaces.

Many targets use generic first portions like 'OMAP'

Change-Id: I00ba4e64cffc48353c29e409c3c19238024fbd8c
This commit is contained in:
Sean McNeil 2009-02-28 14:41:33 +07:00 committed by Jean-Baptiste Queru
parent bedaac52a6
commit 68fec9a751
1 changed files with 3 additions and 2 deletions

View File

@ -657,8 +657,9 @@ static void get_hardware_name(void)
if (x) {
x += 2;
n = 0;
while (*x && !isspace(*x)) {
hardware[n++] = tolower(*x);
while (*x && *x != '\n') {
if (!isspace(*x))
hardware[n++] = tolower(*x);
x++;
if (n == 31) break;
}