mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	Both get_feat.pl and list-arch.sh use uname -m to get the machine hardware name to figure out the current architecture if no architecture is specified with a command line option. This doesn't work for s390, since for 64 bit kernels the hardware name is s390x, while the architecture name within the kernel, as well as in all feature files is s390. Therefore substitute s390x with s390 similar to what is already done for x86_64 and i386. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Link: https://lore.kernel.org/r/20250312155219.3597768-1-hca@linux.ibm.com
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			356 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			356 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
# SPDX-License-Identifier: GPL-2.0
 | 
						|
#
 | 
						|
# Small script that visualizes the kernel feature support status
 | 
						|
# of an architecture.
 | 
						|
#
 | 
						|
# (If no arguments are given then it will print the host architecture's status.)
 | 
						|
#
 | 
						|
 | 
						|
ARCH=${1:-$(uname -m | sed 's/x86_64/x86/' | sed 's/i386/x86/' | sed 's/s390x/s390/')}
 | 
						|
 | 
						|
$(dirname $0)/../../scripts/get_feat.pl list --arch $ARCH
 |