mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	The bash builtin versions of the "test" (resp. "[") command allow using "==" for string comparisons, but POSIX compatible implemen- tations (like /usr/bin/test) insist on using "=" only. On such systems you will see: $ /usr/bin/test a == a && echo OK /usr/bin/test: ==: binary operator expected This patch fixes Makefiles and scripts to use POSIX style. Signed-off-by: Wolfgang Denk <wd@denx.de>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| # ---------------------------------------------------------
 | |
| #  Set the core module defines according to Core Module
 | |
| # ---------------------------------------------------------
 | |
| # ---------------------------------------------------------
 | |
| # Set up the Versatile type define
 | |
| # ---------------------------------------------------------
 | |
| 
 | |
| mkdir -p ${obj}include
 | |
| variant=PB926EJ-S
 | |
| if [ "$1" = "" ]
 | |
| then
 | |
| 	echo "$0:: No parameters - using versatilepb_config"
 | |
| 	echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 | |
| 	variant=PB926EJ-S
 | |
| else
 | |
| 	case "$1" in
 | |
| 	versatilepb_config	|	\
 | |
| 	versatile_config)
 | |
| 	echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 | |
| 	;;
 | |
| 
 | |
| 	versatileab_config)
 | |
| 	echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h
 | |
| 	variant=AB926EJ-S
 | |
| 	;;
 | |
| 
 | |
| 
 | |
| 	*)
 | |
| 	echo "$0:: Unrecognised config - using versatilepb_config"
 | |
| 	echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h
 | |
| 	variant=PB926EJ-S
 | |
| 	;;
 | |
| 
 | |
| 	esac
 | |
| 
 | |
| fi
 | |
| # ---------------------------------------------------------
 | |
| # Complete the configuration
 | |
| # ---------------------------------------------------------
 | |
| $MKCONFIG -a versatile arm arm926ejs versatile NULL versatile
 | |
| echo "Variant:: $variant"
 |