Author: nbd Date: 2015-10-31 10:27:04 +0100 (Sat, 31 Oct 2015) New Revision: 47307
Modified: trunk/include/image.mk Log: 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 ?\197?\160tetiar <[email protected]> Modified: trunk/include/image.mk =================================================================== --- trunk/include/image.mk 2015-10-30 22:32:49 UTC (rev 47306) +++ trunk/include/image.mk 2015-10-31 09:27:04 UTC (rev 47307) @@ -89,6 +89,16 @@ $(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),\ _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
