mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-10-31 20:57:24 +00:00 
			
		
		
		
	 f1957dc8a3
			
		
	
	
		f1957dc8a3
		
	
	
	
	
		
			
			This patch adds support for RISC-V to the grub build system. With this patch, I can successfully build grub on RISC-V as a UEFI application. Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
		
			
				
	
	
		
			16 lines
		
	
	
		
			445 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			445 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| #ifndef GRUB_MACHINE_EMU
 | |
| #error "This source is only meant for grub-emu platform"
 | |
| #endif
 | |
| 
 | |
| #if defined(__i386__) || defined(__x86_64__)
 | |
| /* Nothing is necessary.  */
 | |
| #elif defined(__sparc__)
 | |
| #include "../sparc64/cache.S"
 | |
| #elif defined(__powerpc__)
 | |
| #include "../powerpc/cache.S"
 | |
| #elif defined(__ia64__) || defined(__arm__) || defined(__aarch64__) || \
 | |
|       defined(__mips__) || defined(__riscv)
 | |
| #else
 | |
| #error "No target cpu type is defined"
 | |
| #endif
 |