Update local_attestation demo with copy_bom tool
Signed-off-by: Zheng, Qi <huaiqing.zq@antgroup.com>
This commit is contained in:
		
							parent
							
								
									a5e74f2769
								
							
						
					
					
						commit
						59a896b499
					
				| @ -13,12 +13,10 @@ occlum_=$(CUR_DIR)/../.. | ||||
| all: occlum_instance | ||||
| 
 | ||||
| occlum_instance: build_src | ||||
| 	@mkdir -p occlum_instance | ||||
| 	@rm -rf occlum_instance && mkdir -p occlum_instance | ||||
| 	@cd occlum_instance && \
 | ||||
| 		occlum init && \
 | ||||
| 		cp $(CUR_DIR)/AppResponder/responder image/bin/ && \
 | ||||
| 		cp $(OPENSSL)/libcrypto.so.1.1 image/lib/ && \
 | ||||
| 		cp $(CUR_DIR)/DiffieHellmanLibrary/libecdh.so image/lib/ && \
 | ||||
| 		occlum init && rm -rf image && \
 | ||||
| 		copy_bom -f ../bom.yaml --root image --include-dir /opt/occlum/etc/template && \
 | ||||
| 		occlum build | ||||
| 	@cp -t occlum_instance $(APP) $(BUILD_DIR)/libenclave_initiator.signed.so | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										14
									
								
								demos/local_attestation/bom.yaml
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										14
									
								
								demos/local_attestation/bom.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| includes: | ||||
|   - base.yaml | ||||
| # local attestation | ||||
| targets: | ||||
|   # copy bins | ||||
|   - target: /bin | ||||
|     copy: | ||||
|       - files: | ||||
|         - ../AppResponder/responder | ||||
|   # copy lib | ||||
|   - target: /lib | ||||
|     copy: | ||||
|       - files: | ||||
|         - ../DiffieHellmanLibrary/libecdh.so | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user