diff options
Diffstat (limited to 'util/signer/build.mk')
-rw-r--r-- | util/signer/build.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/util/signer/build.mk b/util/signer/build.mk index 07db0ea7ea..88fea91bce 100644 --- a/util/signer/build.mk +++ b/util/signer/build.mk @@ -10,7 +10,14 @@ signer_INC := $(addprefix common/, aes.h ecdh.h gnubby.h \ signer_SRC := codesigner.cc publickey.cc image.cc gnubby.cc aes.cc ecdh.cc SIGNER_DEPS := $(addprefix $(signer_ROOT)/, $(signer_SRC) $(signer_INC)) -HOST_CXXFLAGS += -I/usr/include/libxml2 -$(out)/util/signer: $(SIGNER_DEPS) +HOST_CXXFLAGS += -I/usr/include/libxml2 -I $(out) +$(out)/util/signer: $(SIGNER_DEPS) $(out)/pmjp.h $(call quiet,cxx_to_host,HOSTCXX) +# When building self signed Cr50 images we still want the epoch/major/minor +# fields come from the dev manifest. Since a full blown JSON parser for C is +# not readily available, this rule generates a small .h file with only the +# fields of interest retrieved from the dev JSON file. +$(out)/pmjp.h: util/signer/pmjp.py util/signer/ec_RW-manifest-dev.json + @echo " PMJP $@" + $(Q)./util/signer/pmjp.py ./util/signer/ec_RW-manifest-dev.json > $@ |