kernel: Set CONFIG_FRAME_WARN depending on target
This set the CONFIG_FRAME_WARN option depending on some target settings. It will use the default from the upstream kernel and not the hard coded value of 1024 now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
		 Hauke Mehrtens
					Hauke Mehrtens
				
			
				
					committed by
					
						 Christian Marangi
						Christian Marangi
					
				
			
			
				
	
			
			
			 Christian Marangi
						Christian Marangi
					
				
			
						parent
						
							edb3a4162c
						
					
				
				
					commit
					16a20512d8
				
			| @@ -397,6 +397,17 @@ config KERNEL_DEBUG_INFO_REDUCED | ||||
| 	  DEBUG_INFO build and compile times are reduced too. | ||||
| 	  Only works with newer gcc versions. | ||||
|  | ||||
| config KERNEL_FRAME_WARN | ||||
| 	int | ||||
| 	range 0 8192 | ||||
| 	default 1280 if KERNEL_KASAN && !ARCH_64BIT | ||||
| 	default 1024 if !ARCH_64BIT | ||||
| 	default 2048 if ARCH_64BIT | ||||
| 	help | ||||
| 	  Tell the compiler to warn at build time for stack frames larger than this. | ||||
| 	  Setting this too low will cause a lot of warnings. | ||||
| 	  Setting it to 0 disables the warning. | ||||
|  | ||||
| # KERNEL_DEBUG_LL symbols must have the default value set as otherwise | ||||
| # KConfig wont evaluate them unless KERNEL_EARLY_PRINTK is selected | ||||
| # which means that buildroot wont override the DEBUG_LL symbols in target | ||||
|   | ||||
		Reference in New Issue
	
	Block a user