[PATCH RFC] MIPS: Make UTS_MACHINE reflect big-endian/little-endian

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems like some application use "uname" command's output to do
something different between big-endian and little-endian, so we make
UTS_MACHINE reflect both 32bit/64bit and big-endian/little-endian.

Signed-off-by: Huacai Chen <chenhc@xxxxxxxxxx>
---
 arch/mips/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index e2122cc..a21c3a1 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -38,11 +38,11 @@ endif
 
 ifdef CONFIG_32BIT
 tool-archpref		= $(32bit-tool-archpref)
-UTS_MACHINE		:= mips
+UTS_MACHINE		:= $(32bit-tool-archpref)
 endif
 ifdef CONFIG_64BIT
 tool-archpref		= $(64bit-tool-archpref)
-UTS_MACHINE		:= mips64
+UTS_MACHINE		:= $(64bit-tool-archpref)
 endif
 
 ifneq ($(SUBARCH),$(ARCH))
-- 
2.7.0





[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux