Skip to content

Commit 7a3cb00

Browse files
committed
Update all uses of uname -p to uname -m
`uname -p` outputs the string 'unknown' un some platforms and is marked non-portable.
1 parent 7c8bb68 commit 7a3cb00

7 files changed

Lines changed: 28 additions & 28 deletions

File tree

JavaGUI/jni/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ else
6767

6868
ifndef $(ARCHNAME)
6969

70-
UNAME_P := $(shell uname -p)
71-
ifeq ($(UNAME_P),x86_64)
70+
UNAME_M := $(shell uname -m)
71+
ifeq ($(UNAME_M),x86_64)
7272
ARCHNAME = X64
7373
endif
74-
ifneq ($(filter %86,$(UNAME_P)),)
74+
ifneq ($(filter %86,$(UNAME_M)),)
7575
ARCHNAME = X86
7676
endif
77-
ifneq ($(filter arm%,$(UNAME_P)),)
77+
ifneq ($(filter arm%,$(UNAME_M)),)
7878
ARCHNAME = ARM
7979
endif
8080

JavaGUI/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ else
4646

4747
ifndef $(ARCHNAME)
4848

49-
UNAME_P := $(shell uname -p)
50-
ifeq ($(UNAME_P),x86_64)
49+
UNAME_M := $(shell uname -m)
50+
ifeq ($(UNAME_M),x86_64)
5151
ARCHNAME = X64
5252
endif
53-
ifneq ($(filter %86,$(UNAME_P)),)
53+
ifneq ($(filter %86,$(UNAME_M)),)
5454
ARCHNAME = X86
5555
endif
56-
ifneq ($(filter arm%,$(UNAME_P)),)
56+
ifneq ($(filter arm%,$(UNAME_M)),)
5757
ARCHNAME = ARM
5858
endif
5959

TSDRPlugin_ExtIO/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ else
5656

5757
ifndef $(ARCHNAME)
5858

59-
UNAME_P := $(shell uname -p)
60-
ifeq ($(UNAME_P),x86_64)
59+
UNAME_M := $(shell uname -m)
60+
ifeq ($(UNAME_M),x86_64)
6161
ARCHNAME = X64
6262
endif
63-
ifneq ($(filter %86,$(UNAME_P)),)
63+
ifneq ($(filter %86,$(UNAME_M)),)
6464
ARCHNAME = X86
6565
endif
66-
ifneq ($(filter arm%,$(UNAME_P)),)
66+
ifneq ($(filter arm%,$(UNAME_M)),)
6767
ARCHNAME = ARM
6868
endif
6969

TSDRPlugin_Mirics/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ else
5959

6060
ifndef $(ARCHNAME)
6161

62-
UNAME_P := $(shell uname -p)
63-
ifeq ($(UNAME_P),x86_64)
62+
UNAME_M := $(shell uname -m)
63+
ifeq ($(UNAME_M),x86_64)
6464
ARCHNAME = X64
6565
endif
66-
ifneq ($(filter %86,$(UNAME_P)),)
66+
ifneq ($(filter %86,$(UNAME_M)),)
6767
ARCHNAME = X86
6868
endif
69-
ifneq ($(filter arm%,$(UNAME_P)),)
69+
ifneq ($(filter arm%,$(UNAME_M)),)
7070
ARCHNAME = ARM
7171
endif
7272

TSDRPlugin_RawFile/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ else
6666

6767
ifndef $(ARCHNAME)
6868

69-
UNAME_P := $(shell uname -p)
70-
ifeq ($(UNAME_P),x86_64)
69+
UNAME_M := $(shell uname -m)
70+
ifeq ($(UNAME_M),x86_64)
7171
ARCHNAME = X64
7272
endif
73-
ifneq ($(filter %86,$(UNAME_P)),)
73+
ifneq ($(filter %86,$(UNAME_M)),)
7474
ARCHNAME = X86
7575
endif
76-
ifneq ($(filter arm%,$(UNAME_P)),)
76+
ifneq ($(filter arm%,$(UNAME_M)),)
7777
ARCHNAME = ARM
7878
endif
7979

TSDRPlugin_UHD/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ else
7070

7171
ifndef $(ARCHNAME)
7272

73-
UNAME_P := $(shell uname -p)
74-
ifeq ($(UNAME_P),x86_64)
73+
UNAME_M := $(shell uname -m)
74+
ifeq ($(UNAME_M),x86_64)
7575
ARCHNAME = X64
7676
endif
77-
ifneq ($(filter %86,$(UNAME_P)),)
77+
ifneq ($(filter %86,$(UNAME_M)),)
7878
ARCHNAME = X86
7979
endif
80-
ifneq ($(filter arm%,$(UNAME_P)),)
80+
ifneq ($(filter arm%,$(UNAME_M)),)
8181
ARCHNAME = ARM
8282
endif
8383

TempestSDR/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ else
6262

6363
ifndef $(ARCHNAME)
6464

65-
UNAME_P := $(shell uname -p)
66-
ifeq ($(UNAME_P),x86_64)
65+
UNAME_M := $(shell uname -m)
66+
ifeq ($(UNAME_M),x86_64)
6767
ARCHNAME = X64
6868
endif
69-
ifneq ($(filter %86,$(UNAME_P)),)
69+
ifneq ($(filter %86,$(UNAME_M)),)
7070
ARCHNAME = X86
7171
endif
72-
ifneq ($(filter arm%,$(UNAME_P)),)
72+
ifneq ($(filter arm%,$(UNAME_M)),)
7373
ARCHNAME = ARM
7474
endif
7575

0 commit comments

Comments
 (0)