diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/image.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk index 4e22fa59a0..3f6556874a 100644 --- a/include/image.mk +++ b/include/image.mk @@ -89,6 +89,16 @@ define toupper $(shell echo $(1) | tr '[:lower:]' '[:upper:]') 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 $(foreach data, \ $(subst |,$(space),\ |