Branding changes to unify and update Chrome OS to ChromeOS (removing the space). This CL also includes changing Chromium OS to ChromiumOS as well. BUG=None TEST=N/A Change-Id: I39af9f1069b62747dbfeebdd62d85fabfa655dcd Signed-off-by: Jon Murphy <jpmurphy@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/65479 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <felixsinger@posteo.net>
		
			
				
	
	
		
			21 lines
		
	
	
		
			487 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			487 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env sh
 | |
| #
 | |
| # SPDX-License-Identifier: GPL-2.0-only
 | |
| 
 | |
| main() {
 | |
|   if [ "$#" != 1 ]; then
 | |
|     echo "Usage: $0 MAINBOARD_PARTNUMBER" >&2
 | |
|     exit 1
 | |
|   fi
 | |
| 
 | |
|   # Generate a test-only ChromeOS HWID v2 string
 | |
|   local board="$1"
 | |
|   local prefix="$(echo "${board}" | tr a-z A-Z) TEST"
 | |
|   # gzip has second-to-last 4 bytes in CRC32.
 | |
|   local crc32="$(printf "${prefix}" | gzip -1 | tail -c 8 | head -c 4 | \
 | |
| 		 hexdump -e '1/4 "%04u" ""' | tail -c 4)"
 | |
| 
 | |
|   echo "${prefix}" "${crc32}"
 | |
| }
 | |
| main "$@"
 |