Enable selecting target board
This commit is contained in:
		
							parent
							
								
									adbf5c413a
								
							
						
					
					
						commit
						973c78cd3d
					
				| 
						 | 
					@ -17,6 +17,9 @@ DEFAULT_TARGET = "aarch64-vesper-metta"
 | 
				
			||||||
# Pass TARGET env var if it does not match the default target above.
 | 
					# Pass TARGET env var if it does not match the default target above.
 | 
				
			||||||
TARGET = { value = "${DEFAULT_TARGET}", condition = { env_not_set = ["TARGET"] } }
 | 
					TARGET = { value = "${DEFAULT_TARGET}", condition = { env_not_set = ["TARGET"] } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Name of the target board "rpi3" or "rpi4"
 | 
				
			||||||
 | 
					TARGET_BOARD = { value = "rpi3", condition = { env_not_set = ["TARGET_BOARD"] } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# AArch64 QEMU binary
 | 
					# AArch64 QEMU binary
 | 
				
			||||||
QEMU = { value = "qemu-system-aarch64", condition = { env_not_set = ["QEMU"] } }
 | 
					QEMU = { value = "qemu-system-aarch64", condition = { env_not_set = ["QEMU"] } }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -72,7 +72,7 @@ env = { "QEMU_RUNNER_OPTS" = "${QEMU_SERIAL_OPTS} ${QEMU_GDB_OPTS}" }
 | 
				
			||||||
[tasks.openocd]
 | 
					[tasks.openocd]
 | 
				
			||||||
dependencies = ["build", "kernel-binary"]
 | 
					dependencies = ["build", "kernel-binary"]
 | 
				
			||||||
script = [
 | 
					script = [
 | 
				
			||||||
    "${OPENOCD} -f interface/jlink.cfg -f ../ocd/rpi4_target.cfg"
 | 
					    "${OPENOCD} -f interface/jlink.cfg -f ../ocd/${TARGET_BOARD}_target.cfg"
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[tasks.gdb-config]
 | 
					[tasks.gdb-config]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue