vboot: include vb2_sha.h when required
Should include vb2_sha.h header when SHA library functions or constants are required. This replaces NEED_VB2_SHA_LIBRARY. BUG=b:124141368, chromium:956474 TEST=make clean && make test-abuild BRANCH=none Change-Id: I9f32174dbf3de05fbe5279cb8017888757abf368 Signed-off-by: Joel Kitching <kitching@google.com> Cq-Depend: chromium:1583820 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32454 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
		
				
					committed by
					
						
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							5923d67cfd
						
					
				
				
					commit
					2eb89c8b14
				
			@@ -18,6 +18,7 @@
 | 
			
		||||
#include <commonlib/endian.h>
 | 
			
		||||
#include <commonlib/helpers.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <vb2_sha.h>
 | 
			
		||||
 | 
			
		||||
#if !defined(ERROR)
 | 
			
		||||
#define ERROR(x...) printk(BIOS_ERR, "CBFS: " x)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user