Blame SOURCES/0012-Fix-the-compile-error-of-mkdir-wrong-directory.patch

d84fc6
From c4e3516e303daa42b3381ddd889a90641717f720 Mon Sep 17 00:00:00 2001
d84fc6
From: TanMing <tanminger@TanMing-WorkPC.sh.intel.com>
d84fc6
Date: Tue, 21 Aug 2018 02:25:52 -0400
d84fc6
Subject: [PATCH 12/62] Fix the compile error of mkdir wrong directory.
d84fc6
d84fc6
In Ubuntu 14.04, the following code in old Makefile:
d84fc6
  mkdir -p Cryptlib/{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}
d84fc6
will create a directory named "{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}".
d84fc6
d84fc6
Signed-off-by: Ming Tan <ming.tan@intel.com>
d84fc6
Upstream-commit-id: 39b83455d68
d84fc6
---
d84fc6
 Makefile | 4 ++--
d84fc6
 1 file changed, 2 insertions(+), 2 deletions(-)
d84fc6
d84fc6
diff --git a/Makefile b/Makefile
d84fc6
index 115e7f08c0f..3f2105595a6 100644
d84fc6
--- a/Makefile
d84fc6
+++ b/Makefile
d84fc6
@@ -102,11 +102,11 @@ $(MMSONAME): $(MOK_OBJS) Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a li
d84fc6
 	$(LD) -o $@ $(LDFLAGS) $^ $(EFI_LIBS) lib/lib.a
d84fc6
 
d84fc6
 Cryptlib/libcryptlib.a:
d84fc6
-	mkdir -p Cryptlib/{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}
d84fc6
+	for i in Hash Hmac Cipher Rand Pk Pem SysCall; do mkdir -p Cryptlib/$$i; done
d84fc6
 	$(MAKE) VPATH=$(TOPDIR)/Cryptlib TOPDIR=$(TOPDIR)/Cryptlib -C Cryptlib -f $(TOPDIR)/Cryptlib/Makefile
d84fc6
 
d84fc6
 Cryptlib/OpenSSL/libopenssl.a:
d84fc6
-	mkdir -p Cryptlib/OpenSSL/crypto/{x509v3,x509,txt_db,stack,sha,rsa,rc4,rand,pkcs7,pkcs12,pem,ocsp,objects,modes,md5,lhash,kdf,hmac,evp,err,dso,dh,conf,comp,cmac,buffer,bn,bio,async{,/arch},asn1,aes}/
d84fc6
+	for i in x509v3 x509 txt_db stack sha rsa rc4 rand pkcs7 pkcs12 pem ocsp objects modes md5 lhash kdf hmac evp err dso dh conf comp cmac buffer bn bio async/arch asn1 aes; do mkdir -p Cryptlib/OpenSSL/crypto/$$i; done
d84fc6
 	$(MAKE) VPATH=$(TOPDIR)/Cryptlib/OpenSSL TOPDIR=$(TOPDIR)/Cryptlib/OpenSSL -C Cryptlib/OpenSSL -f $(TOPDIR)/Cryptlib/OpenSSL/Makefile
d84fc6
 
d84fc6
 lib/lib.a: | $(TOPDIR)/lib/Makefile $(wildcard $(TOPDIR)/include/*.[ch])
d84fc6
-- 
d84fc6
2.26.2
d84fc6