File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if [ -z "$VERSION" ]; then
1010fi
1111
1212OUTPUT_ELF=" pldmgr_v${VERSION} .elf"
13+ IMAGE_NAME=" ps5-payload-sdk-pldmgr"
1314
1415echo " --- Building Payload Manager v$VERSION ---"
1516
@@ -22,9 +23,20 @@ if [ $? -ne 0 ]; then
2223fi
2324echo " Frontend build successful."
2425
26+ # 2b. Build/verify the docker image
27+ if [[ " $( docker images -q $IMAGE_NAME 2> /dev/null) " == " " ]]; then
28+ echo " Docker image $IMAGE_NAME not found. Building... (this may take a few minutes)"
29+ docker build -t $IMAGE_NAME -f Dockerfile.sdk .
30+ if [ $? -ne 0 ]; then
31+ echo " !!! Docker image build FAILED!"
32+ exit 1
33+ fi
34+ echo " Docker image built successfully."
35+ fi
36+
2537# 3. Build native ELF via Docker
2638echo " [2/3] Building native ELF via Docker..."
27- docker run --rm -v " $( pwd) " :/src -w /src ps5-payload-sdk make clean all > /dev/null 2>&1
39+ docker run --rm -v " $( pwd) " :/src -w /src $IMAGE_NAME make clean all > /dev/null 2>&1
2840
2941if [ $? -ne 0 ]; then
3042 echo " !!! ELF build FAILED!"
You can’t perform that action at this time.
0 commit comments