From a978290d5032a0c1674cb23e4f281f5afa5bf77f Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 24 Jun 2019 15:23:14 +0200 Subject: [PATCH] legacy: detect CALLBACK fields and fail build when found --- legacy/firmware/protob/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/legacy/firmware/protob/Makefile b/legacy/firmware/protob/Makefile index 26bc23eef3..da8de83034 100644 --- a/legacy/firmware/protob/Makefile +++ b/legacy/firmware/protob/Makefile @@ -18,6 +18,7 @@ PYTHON ?= python -L '#include "%s"' \ -T \ -s "mangle_names:M_FLATTEN" + @grep CALLBACK $@ && echo "CALLBACK field found" && rm $@ && exit 1 || : %.pb: %.proto @printf " PROTOC $@\n"