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

6a35ff
From c4e3516e303daa42b3381ddd889a90641717f720 Mon Sep 17 00:00:00 2001
6a35ff
From: TanMing <tanminger@TanMing-WorkPC.sh.intel.com>
6a35ff
Date: Tue, 21 Aug 2018 02:25:52 -0400
6a35ff
Subject: [PATCH 12/62] Fix the compile error of mkdir wrong directory.
6a35ff
6a35ff
In Ubuntu 14.04, the following code in old Makefile:
6a35ff
  mkdir -p Cryptlib/{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}
6a35ff
will create a directory named "{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}".
6a35ff
6a35ff
Signed-off-by: Ming Tan <ming.tan@intel.com>
6a35ff
Upstream-commit-id: 39b83455d68
6a35ff
---
6a35ff
 Makefile | 4 ++--
6a35ff
 1 file changed, 2 insertions(+), 2 deletions(-)
6a35ff
6a35ff
diff --git a/Makefile b/Makefile
6a35ff
index 115e7f08c0f..3f2105595a6 100644
6a35ff
--- a/Makefile
6a35ff
+++ b/Makefile
6a35ff
@@ -102,11 +102,11 @@ $(MMSONAME): $(MOK_OBJS) Cryptlib/libcryptlib.a Cryptlib/OpenSSL/libopenssl.a li
6a35ff
 	$(LD) -o $@ $(LDFLAGS) $^ $(EFI_LIBS) lib/lib.a
6a35ff
 
6a35ff
 Cryptlib/libcryptlib.a:
6a35ff
-	mkdir -p Cryptlib/{Hash,Hmac,Cipher,Rand,Pk,Pem,SysCall}
6a35ff
+	for i in Hash Hmac Cipher Rand Pk Pem SysCall; do mkdir -p Cryptlib/$$i; done
6a35ff
 	$(MAKE) VPATH=$(TOPDIR)/Cryptlib TOPDIR=$(TOPDIR)/Cryptlib -C Cryptlib -f $(TOPDIR)/Cryptlib/Makefile
6a35ff
 
6a35ff
 Cryptlib/OpenSSL/libopenssl.a:
6a35ff
-	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}/
6a35ff
+	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
6a35ff
 	$(MAKE) VPATH=$(TOPDIR)/Cryptlib/OpenSSL TOPDIR=$(TOPDIR)/Cryptlib/OpenSSL -C Cryptlib/OpenSSL -f $(TOPDIR)/Cryptlib/OpenSSL/Makefile
6a35ff
 
6a35ff
 lib/lib.a: | $(TOPDIR)/lib/Makefile $(wildcard $(TOPDIR)/include/*.[ch])
6a35ff
-- 
6a35ff
2.26.2
6a35ff