mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 18:41:11 +00:00
Cr50: #define CR50_DEV in source when used manually
We want the default build to be ready for production use, without
any unlocked security features, development-only tests, etc.
Running "make buildall" or "make BOARD=cr50" builds the
default (production) image.
To build a development image, use
CR50_DEV=1 make BOARD=cr50
This CL adds "-DCR50_DEV=$(CR50_DEV)" to the CFLAGS for use in
compiled code.
BUG=chrome-os-partner:55557
BRANCH=none
TEST=make buildall
Verify that
#ifdef CR50_DEV
[stuff]
#endif
works inside C code.
Change-Id: Id5e16e9ba0135828f4365fc1ac4a23384f30ba01
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/385059
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
1cdd2d52fc
commit
9e7c12b74e
@@ -106,6 +106,7 @@ CR50_RW_KEY = loader-testkey-A.pem
|
||||
SIGNER = $(out)/util/signer
|
||||
SIGNER_EXTRAS =
|
||||
else
|
||||
CFLAGS += -DCR50_DEV=1
|
||||
SIGNER = $(HOME)/bin/codesigner
|
||||
CR50_RW_KEY = cr50_rom0-dev-blsign.pem.pub
|
||||
RW_SIGNER_EXTRAS = -x util/signer/fuses.xml
|
||||
|
||||
Reference in New Issue
Block a user