diff options
-rw-r--r-- | Makefile.rules | 6 | ||||
-rw-r--r-- | common/build.mk | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index a8357a5b93..44897ebc24 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -139,6 +139,12 @@ cmd_emmc_bootblock = $(out)/util/gen_emmc_transfer_data \ cmd_ipi_table = $(out)/util/gen_ipi_table $@ cmd_cp_script = cp "$<" "$@" && chmod +x "$@" +cmd_libcryptoc_make = $(MAKE) --no-print-directory -C $(CRYPTOCLIB) \ + obj=$(realpath $(out))/cryptoc \ + SUPPORT_UNALIGNED=1 \ + CONFIG_UPTO_SHA512=$(CONFIG_UPTO_SHA512) +cmd_libcryptoc = $(cmd_libcryptoc_make) -q || $(cmd_libcryptoc_make) + # commands for RSA signature: rwsig does not need to sign the whole image # (it signs the RW part separately). usbpd1 type needs to sign the final image. ifeq ($(CONFIG_RWSIG_TYPE_RWSIG),) diff --git a/common/build.mk b/common/build.mk index b31df58e7a..56608afb88 100644 --- a/common/build.mk +++ b/common/build.mk @@ -292,8 +292,7 @@ CRYPTOC_LDFLAGS := -L$(out)/cryptoc -lcryptoc # Force the external build each time, so it can look for changed sources. .PHONY: $(out)/cryptoc/libcryptoc.a $(out)/cryptoc/libcryptoc.a: - $(MAKE) obj=$(realpath $(out))/cryptoc SUPPORT_UNALIGNED=1 \ - CONFIG_UPTO_SHA512=$(CONFIG_UPTO_SHA512) -C $(CRYPTOCLIB) + +$(call quiet,libcryptoc,MAKE ) # Link RO and RW against cryptoc. $(out)/RO/ec.RO.elf $(out)/RO/ec.RO_B.elf: LDFLAGS_EXTRA += $(CRYPTOC_LDFLAGS) |