From 24bdb1254032afa974fc8f86872b7189aa0ab096 Mon Sep 17 00:00:00 2001 From: Shahriyar Jalayeri Date: Thu, 10 Oct 2024 20:40:46 +0300 Subject: [PATCH] vtpm : move proxy tpm to its own directory Signed-off-by: Shahriyar Jalayeri --- pkg/vtpm/Dockerfile | 4 +--- pkg/vtpm/{ => ptpm}/Makefile | 0 pkg/vtpm/{ => ptpm}/fuzz/Makefile | 0 pkg/vtpm/{ => ptpm}/fuzz/README.md | 0 pkg/vtpm/{ => ptpm}/fuzz/fuzz.sh | 0 pkg/vtpm/{ => ptpm}/fuzz/fuzzing.patch | 0 pkg/vtpm/{ => ptpm}/fuzz/install-clang.sh | 0 pkg/vtpm/{ => ptpm}/proto/api.proto | 0 pkg/vtpm/{ => ptpm}/src/server.cpp | 0 9 files changed, 1 insertion(+), 3 deletions(-) rename pkg/vtpm/{ => ptpm}/Makefile (100%) rename pkg/vtpm/{ => ptpm}/fuzz/Makefile (100%) rename pkg/vtpm/{ => ptpm}/fuzz/README.md (100%) rename pkg/vtpm/{ => ptpm}/fuzz/fuzz.sh (100%) rename pkg/vtpm/{ => ptpm}/fuzz/fuzzing.patch (100%) rename pkg/vtpm/{ => ptpm}/fuzz/install-clang.sh (100%) rename pkg/vtpm/{ => ptpm}/proto/api.proto (100%) rename pkg/vtpm/{ => ptpm}/src/server.cpp (100%) diff --git a/pkg/vtpm/Dockerfile b/pkg/vtpm/Dockerfile index 0e817da103..b001517e02 100644 --- a/pkg/vtpm/Dockerfile +++ b/pkg/vtpm/Dockerfile @@ -70,9 +70,7 @@ RUN GO111MODULE=on CGO_ENABLED=0 go build -ldflags "-s -w -X=main.Version=${GOPK # Build ptpm WORKDIR /ptpm-build -COPY Makefile /ptpm-build/ -COPY src/ /ptpm-build/src -COPY proto/ /ptpm-build/proto +ADD ptpm/ /ptpm-build RUN make -j$(nproc) && cp ptpm /out/usr/bin/ RUN strip --strip-unneeded /out/usr/bin/ptpm diff --git a/pkg/vtpm/Makefile b/pkg/vtpm/ptpm/Makefile similarity index 100% rename from pkg/vtpm/Makefile rename to pkg/vtpm/ptpm/Makefile diff --git a/pkg/vtpm/fuzz/Makefile b/pkg/vtpm/ptpm/fuzz/Makefile similarity index 100% rename from pkg/vtpm/fuzz/Makefile rename to pkg/vtpm/ptpm/fuzz/Makefile diff --git a/pkg/vtpm/fuzz/README.md b/pkg/vtpm/ptpm/fuzz/README.md similarity index 100% rename from pkg/vtpm/fuzz/README.md rename to pkg/vtpm/ptpm/fuzz/README.md diff --git a/pkg/vtpm/fuzz/fuzz.sh b/pkg/vtpm/ptpm/fuzz/fuzz.sh similarity index 100% rename from pkg/vtpm/fuzz/fuzz.sh rename to pkg/vtpm/ptpm/fuzz/fuzz.sh diff --git a/pkg/vtpm/fuzz/fuzzing.patch b/pkg/vtpm/ptpm/fuzz/fuzzing.patch similarity index 100% rename from pkg/vtpm/fuzz/fuzzing.patch rename to pkg/vtpm/ptpm/fuzz/fuzzing.patch diff --git a/pkg/vtpm/fuzz/install-clang.sh b/pkg/vtpm/ptpm/fuzz/install-clang.sh similarity index 100% rename from pkg/vtpm/fuzz/install-clang.sh rename to pkg/vtpm/ptpm/fuzz/install-clang.sh diff --git a/pkg/vtpm/proto/api.proto b/pkg/vtpm/ptpm/proto/api.proto similarity index 100% rename from pkg/vtpm/proto/api.proto rename to pkg/vtpm/ptpm/proto/api.proto diff --git a/pkg/vtpm/src/server.cpp b/pkg/vtpm/ptpm/src/server.cpp similarity index 100% rename from pkg/vtpm/src/server.cpp rename to pkg/vtpm/ptpm/src/server.cpp