Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add target to forgo re-compiling proto for release pipeline. #56

Merged
merged 5 commits into from
Sep 14, 2023
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ all: trusted_os_embedded_applet witnessctl

elf: $(APP).elf

# This target builds the Trusted OS without signing it as it is intended to be
# used by the GCP build process and signed there.
# This target is only used for dev builds, since the proto definitions may
# change in development and require re-compilation of protos.
trusted_os: APP=trusted_os
trusted_os: DIR=$(CURDIR)/trusted_os
trusted_os: create_dummy_applet elf
trusted_os: create_dummy_applet proto elf

trusted_os_signed: trusted_os
echo "signing Trusted OS"
Expand All @@ -76,7 +76,7 @@ trusted_os_signed: trusted_os

trusted_os_embedded_applet: APP=trusted_os
trusted_os_embedded_applet: DIR=$(CURDIR)/trusted_os
trusted_os_embedded_applet: check_os_env copy_applet elf imx
trusted_os_embedded_applet: check_os_env copy_applet proto elf imx
trusted_os_embedded_applet:
echo "signing Trusted OS"
@if [ "${SIGN_PWD}" != "" ]; then \
Expand All @@ -93,6 +93,12 @@ witnessctl: check_tamago
-ldflags "-s -w -X 'main.Build=${BUILD}' -X 'main.Revision=${REV}'" \
-o $(CURDIR)/bin/witnessctl

# This target builds the Trusted OS without signing it as it is intended to be
# used by the GCP build process and signed there.
trusted_os_release: APP=trusted_os
trusted_os_release: DIR=$(CURDIR)/trusted_os
trusted_os_release: create_dummy_applet elf

#### ARM targets ####

imx: $(APP).imx
Expand Down Expand Up @@ -173,5 +179,5 @@ qemu-gdb:

#### application target ####

$(APP).elf: check_tamago proto
$(APP).elf: check_tamago
cd $(DIR) && $(GOENV) $(TAMAGO) build -tags ${BUILD_TAGS} $(GOFLAGS) -o $(CURDIR)/bin/$(APP).elf