Browse Source

[Pal/Linux-SGX] Make Makefile.Test skip commented out lines

Makefile.Test unnecessarily recreates .manifest.sgx of
commented sgx.trusted_children because it processes commented
lines in .manifest.sgx.
Modify Makefile.Test to skip commented out lines in .manifest.sgx.
Isaku Yamahata 6 years ago
parent
commit
4789f86bfa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Pal/src/host/Linux-SGX/Makefile.Test

+ 1 - 1
Pal/src/host/Linux-SGX/Makefile.Test

@@ -23,7 +23,7 @@ $(SGX_SIGNER_KEY):
 	$(error "Cannot find any enclave key. Generate $(abspath $(SGX_SIGNER_KEY)) or specify 'SGX_SIGNER_KEY=' with make")
 
 prerequisite = \
-	for f in `grep -Po 'sgx.trusted_children.[^\\s=]+\\s*=\\s*file:\\K\\S+' $(1)`; do \
+	for f in `sed -e 's/\#.*//g' $(1) | grep -Po 'sgx.trusted_children.[^\\s=]+\\s*=\\s*file:\\K\\S+'`; do \
 		$(MAKE) $${f%.sig}.manifest.sgx; \
 	done