2019-06-14 00:43:49 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								idf_build_get_property(target IDF_TARGET)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-18 10:32:56 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								if(NOT "${target}" STREQUAL "esp32c2") # TODO: IDF-4135
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-19 12:03:43 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								idf_component_register(SRCS "src/gdbstub.c" "src/packet.c"
							 | 
						
					
						
							
								
									
										
										
										
											2020-11-26 13:38:09 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                       INCLUDE_DIRS "include"
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-19 12:03:43 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                       PRIV_INCLUDE_DIRS "private_include"
							 | 
						
					
						
							
								
									
										
										
										
											2019-06-14 00:43:49 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                       LDFRAGMENTS "linker.lf"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                       REQUIRES "freertos"
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-07 22:54:09 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                       PRIV_REQUIRES "soc" "esp_rom" "esp_system")
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-06 17:29:29 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								endif()
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-19 12:03:43 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								if(CONFIG_IDF_TARGET_ARCH_XTENSA)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    target_include_directories(${COMPONENT_LIB} PUBLIC "xtensa" "${target}")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    target_sources(${COMPONENT_LIB} PRIVATE "xtensa/gdbstub_xtensa.c"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                                            "xtensa/gdbstub-entry.S"
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-07 22:54:09 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                                            "xtensa/xt_debugexception.S"
							 | 
						
					
						
							
								
									
										
										
										
											2021-04-19 12:03:43 +03:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                                            "esp_common/gdbstub_common.c")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								elseif(CONFIG_IDF_TARGET_ARCH_RISCV)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    target_include_directories(${COMPONENT_LIB} PUBLIC "riscv" "${target}")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    target_sources(${COMPONENT_LIB} PRIVATE "riscv/gdbstub_riscv.c"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    "${target}/gdbstub_${target}.c")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								endif()
							 |