From b83b20526521d6e3ca6d29761ab76d74bfca071d Mon Sep 17 00:00:00 2001 From: Howard Chen Date: Thu, 29 Jun 2017 16:09:52 +0800 Subject: [PATCH] Add a make maco to convert string to upper case There's already a to-lower function. Add a to-upper function to make it complete. Bug:36012197 Test: `make` pass, flash images from $OUT and boot device with chain partitions Change-Id: I39fe8c277a3cf6b87fc3c411eeab2fa5fb40007b --- core/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/Makefile b/core/Makefile index 9aae8ca79..99d6c216d 100644 --- a/core/Makefile +++ b/core/Makefile @@ -1786,6 +1786,11 @@ to-lower = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F $(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,\ $(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,\ $(subst X,x,$(subst Y,y,$(subst Z,z,$1)))))))))))))))))))))))))) +# Convert to upper case without requiring a shell, which isn't cacheable. +to-upper=$(subst a,A,$(subst b,B,$(subst c,C,$(subst d,D,$(subst e,E,$(subst f,F,$(subst g,G,\ +$(subst h,H,$(subst i,I,$(subst j,J,$(subst k,K,$(subst l,L,$(subst m,M,$(subst n,N,$(subst o,O,\ +$(subst p,P,$(subst q,Q,$(subst r,R,$(subst s,S,$(subst t,T,$(subst u,U,$(subst v,V,$(subst w,W,\ +$(subst x,X,$(subst y,Y,$(subst z,Z,$1)))))))))))))))))))))))))) # ----------------------------------------------------------------- # vbmeta image