diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2018-01-25 10:24:57 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-26 13:25:49 -0800 |
commit | 17014655511d0b2b254d5f1f58e3e0f471694a41 (patch) | |
tree | 6ed54b8b804d5069c42d77e1fd2636f905c54bb0 /Makefile | |
parent | 9b7b5460d2ccfdf6cc28ea8115a6bd6be2496141 (diff) | |
download | chrome-ec-17014655511d0b2b254d5f1f58e3e0f471694a41.tar.gz |
Make CONFIG_MALLOC partition-specific
Allow to have CONFIG_MALLOC defined for one partition and not the other.
The typical use-case is asymetric firmware whose small RO is typically
just an updater/verifier (and RW signature verification currently
doesn't like malloc as the memory initialization is done too late).
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=b:72360575
TEST=make buildall
Change-Id: I67cc04cd11385d4c05556ea41ef674cb7a232e65
Reviewed-on: https://chromium-review.googlesource.com/885820
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -47,6 +47,14 @@ include Makefile.toolchain .PHONY: all all: +# Returns the opposite of a configuration variable +# y -> +# ro -> rw +# rw -> ro +# -> y +# usage: common-$(call not_cfg,$(CONFIG_FOO))+=bar.o +not_cfg = $(subst ro rw,y,$(filter-out $(1:y=ro rw),ro rw)) + # The board makefile sets $CHIP and the chip makefile sets $CORE. # Include those now, since they must be defined for _flag_cfg below. include $(BDIR)/build.mk |