Merge Makefile updates into security_shield_v2
This commit is contained in:
commit
84949c71e9
1 changed files with 21 additions and 0 deletions
21
Makefile
21
Makefile
|
|
@ -4,6 +4,7 @@
|
||||||
BINARY_NAME=picoclaw
|
BINARY_NAME=picoclaw
|
||||||
BUILD_DIR=build
|
BUILD_DIR=build
|
||||||
CMD_DIR=cmd/$(BINARY_NAME)
|
CMD_DIR=cmd/$(BINARY_NAME)
|
||||||
|
DOCKER_USER=stevef1uk
|
||||||
MAIN_GO=$(CMD_DIR)/main.go
|
MAIN_GO=$(CMD_DIR)/main.go
|
||||||
EXT=
|
EXT=
|
||||||
|
|
||||||
|
|
@ -242,6 +243,13 @@ build-android-bundle: generate
|
||||||
build-pi-zero: build-linux-arm build-linux-arm64
|
build-pi-zero: build-linux-arm build-linux-arm64
|
||||||
@echo "Pi Zero 2 W builds: $(BUILD_DIR)/$(BINARY_NAME)-linux-arm (32-bit), $(BUILD_DIR)/$(BINARY_NAME)-linux-arm64 (64-bit)"
|
@echo "Pi Zero 2 W builds: $(BUILD_DIR)/$(BINARY_NAME)-linux-arm (32-bit), $(BUILD_DIR)/$(BINARY_NAME)-linux-arm64 (64-bit)"
|
||||||
|
|
||||||
|
## build-raspberry-pi: Build binaries and Docker image for Raspberry Pi
|
||||||
|
build-raspberry-pi: build-pi-zero docker-build-rpi
|
||||||
|
@echo "Raspberry Pi full build complete (binaries and Docker image)"
|
||||||
|
|
||||||
|
## build-rpi: Build binaries and Docker image for Raspberry Pi
|
||||||
|
build-rpi: build-raspberry-pi
|
||||||
|
|
||||||
## build-all: Build the picoclaw core binary for all Makefile-managed platforms
|
## build-all: Build the picoclaw core binary for all Makefile-managed platforms
|
||||||
build-all: generate
|
build-all: generate
|
||||||
@echo "Building for multiple platforms..."
|
@echo "Building for multiple platforms..."
|
||||||
|
|
@ -358,6 +366,19 @@ docker-test:
|
||||||
docker-run:
|
docker-run:
|
||||||
docker compose -f docker/docker-compose.yml --profile gateway up
|
docker compose -f docker/docker-compose.yml --profile gateway up
|
||||||
|
|
||||||
|
## docker-build-rpi: Build Raspberry Pi specific Docker image (ARM64)
|
||||||
|
docker-build-rpi:
|
||||||
|
@echo "Building Raspberry Pi Docker image (ARM64)..."
|
||||||
|
docker build --platform linux/arm64 -t $(DOCKER_USER)/picoclaw-rpi:latest -f docker/Dockerfile.rpi .
|
||||||
|
|
||||||
|
## docker-push-rpi: Push Raspberry Pi specific Docker image (ARM64)
|
||||||
|
docker-push-rpi:
|
||||||
|
@echo "Pushing Raspberry Pi Docker image (ARM64)..."
|
||||||
|
docker push $(DOCKER_USER)/picoclaw-rpi:latest
|
||||||
|
|
||||||
|
docker-build-raspberry-pi: docker-build-rpi
|
||||||
|
docker-push-raspberry-pi: docker-push-rpi
|
||||||
|
|
||||||
## docker-run-full: Run picoclaw gateway in Docker (full-featured)
|
## docker-run-full: Run picoclaw gateway in Docker (full-featured)
|
||||||
docker-run-full:
|
docker-run-full:
|
||||||
docker compose -f docker/docker-compose.full.yml --profile gateway up
|
docker compose -f docker/docker-compose.full.yml --profile gateway up
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue