include/image.mk: Introduce sanitized profile variable
Making common code reusable as there's a lot of duplicate code in imx6, kirkwood and oxnas archs. Signed-off-by: Petr Štetiar <ynezz@true.cz> SVN-Revision: 47307
This commit is contained in:
		@@ -89,6 +89,16 @@ define toupper
 | 
				
			|||||||
$(shell echo $(1) | tr '[:lower:]' '[:upper:]')
 | 
					$(shell echo $(1) | tr '[:lower:]' '[:upper:]')
 | 
				
			||||||
endef
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define tolower
 | 
				
			||||||
 | 
					$(shell echo $(1) | tr '[:upper:]' '[:lower:]')
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define sanitize
 | 
				
			||||||
 | 
					$(shell echo $(call tolower,$(1)) | sed 's/_/-/g')
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					PROFILE_SANITIZED := $(call sanitize,$(PROFILE))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
define split_args
 | 
					define split_args
 | 
				
			||||||
$(foreach data, \
 | 
					$(foreach data, \
 | 
				
			||||||
	$(subst |,$(space),\
 | 
						$(subst |,$(space),\
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user