target.mk: check that CPU_TYPE has known CPU_CFLAGS mapping
If someone creates a target and indicates a CPU_TYPE, but there's
no corresponding support for that CPU_TYPE's flags in include/target.mk
then that should probably be indicated rather than silently ignored.
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
(cherry picked from commit d3bc11857a)
			
			
This commit is contained in:
		 Philip Prindeville
					Philip Prindeville
				
			
				
					committed by
					
						 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
			
				
	
			
			
			 Jo-Philipp Wich
						Jo-Philipp Wich
					
				
			
						parent
						
							977db9f08a
						
					
				
				
					commit
					c8a0f3aa29
				
			| @@ -218,6 +218,11 @@ ifeq ($(DUMP),1) | |||||||
|     CPU_CFLAGS_arc700 = -marc700 |     CPU_CFLAGS_arc700 = -marc700 | ||||||
|     CPU_CFLAGS_archs = -marchs |     CPU_CFLAGS_archs = -marchs | ||||||
|   endif |   endif | ||||||
|  |   ifneq ($(CPU_TYPE),) | ||||||
|  |     ifndef CPU_CFLAGS_$(CPU_TYPE) | ||||||
|  |       $(warning CPU_TYPE "$(CPU_TYPE)" doesn't correspond to a known type) | ||||||
|  |     endif | ||||||
|  |   endif | ||||||
|   DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) |   DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) | ||||||
|  |  | ||||||
|   ifneq ($(BOARD),) |   ifneq ($(BOARD),) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user