diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-11-04 12:11:58 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-11-05 04:22:34 +0000 |
commit | 252457d4b21f46889eebad61d4c0a65331919cec (patch) | |
tree | 01856c4d31d710b20e85a74c8d7b5836e35c3b98 /Makefile | |
parent | 08f5a1e6fc2c9467230444ac9b582dcf4d9f0068 (diff) | |
download | chrome-ec-stabilize-14633.B-ish.tar.gz |
ish: Trim down the release branchstabilize-wristpin-14469.59.B-ishstabilize-voshyr-14637.B-ishstabilize-quickfix-14695.187.B-ishstabilize-quickfix-14695.124.B-ishstabilize-quickfix-14526.91.B-ishstabilize-14695.85.B-ishstabilize-14695.107.B-ishstabilize-14682.B-ishstabilize-14633.B-ishstabilize-14616.B-ishstabilize-14589.B-ishstabilize-14588.98.B-ishstabilize-14588.14.B-ishstabilize-14588.123.B-ishstabilize-14536.B-ishstabilize-14532.B-ishstabilize-14528.B-ishstabilize-14526.89.B-ishstabilize-14526.84.B-ishstabilize-14526.73.B-ishstabilize-14526.67.B-ishstabilize-14526.57.B-ishstabilize-14498.B-ishstabilize-14496.B-ishstabilize-14477.B-ishstabilize-14469.9.B-ishstabilize-14469.8.B-ishstabilize-14469.58.B-ishstabilize-14469.41.B-ishstabilize-14442.B-ishstabilize-14438.B-ishstabilize-14411.B-ishstabilize-14396.B-ishstabilize-14395.B-ishstabilize-14388.62.B-ishstabilize-14388.61.B-ishstabilize-14388.52.B-ishstabilize-14385.B-ishstabilize-14345.B-ishstabilize-14336.B-ishstabilize-14333.B-ishrelease-R99-14469.B-ishrelease-R98-14388.B-ishrelease-R102-14695.B-ishrelease-R101-14588.B-ishrelease-R100-14526.B-ishfirmware-cherry-14454.B-ishfirmware-brya-14505.B-ishfirmware-brya-14505.71.B-ishfactory-kukui-14374.B-ishfactory-guybrush-14600.B-ishfactory-cherry-14455.B-ishfactory-brya-14517.B-ish
In the interest of making long-term branch maintenance incur as little
technical debt on us as possible, we should not maintain any files on
the branch we are not actually using.
This has the added effect of making it extremely clear when merging CLs
from the main branch when changes have the possibility to affect us.
The follow-on CL adds a convenience script to actually pull updates from
the main branch and generate a CL for the update.
BUG=b:204206272
BRANCH=ish
TEST=make BOARD=arcada_ish && make BOARD=drallion_ish
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I17e4694c38219b5a0823e0a3e55a28d1348f4b18
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3262038
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 45 |
1 files changed, 3 insertions, 42 deletions
@@ -93,14 +93,6 @@ not_cfg = $(subst ro rw,y,$(filter-out $(1:y=ro rw),ro rw)) # Include those now, since they must be defined for _flag_cfg below. include $(BDIR)/build.mk -ifneq ($(ENV_VARS),) -# Let's make sure $(out)/env_config.h changes if value any of the above -# variables has changed since the prvious make invocation. This in turn will -# make sure that relevant object files are re-built. -current_set = $(foreach env_flag, $(ENV_VARS), $(env_flag)=$($(env_flag))) -$(shell util/env_changed.sh "$(out)/env_config.h" "$(current_set)") -endif - # Baseboard directory ifneq (,$(BASEBOARD)) BASEDIR:=baseboard/$(BASEBOARD) @@ -130,7 +122,7 @@ UC_PROJECT:=$(call uppercase,$(PROJECT)) # Transform the configuration into make variables. This must be done after # the board/baseboard/project/chip/core variables are defined, since some of # the configs are dependent on particular configurations. -includes=include core/$(CORE)/include include/driver $(dirs) $(out) fuzz test third_party +includes=include core/$(CORE)/include include/driver $(dirs) $(out) third_party ifdef CTS_MODULE includes+=cts/$(CTS_MODULE) cts endif @@ -261,8 +253,6 @@ include chip/$(CHIP)/build.mk include core/$(CORE)/build.mk include common/build.mk include driver/build.mk -include fuzz/build.mk -include power/build.mk -include private/build.mk -include private-kandou/build.mk ifneq ($(PDIR),) @@ -271,9 +261,6 @@ endif ifneq ($(PBDIR),) include $(PBDIR)/build.mk endif -include test/build.mk -include util/build.mk -include util/lock/build.mk includes+=$(includes-y) @@ -312,37 +299,11 @@ endef $(eval $(call get_sources,y)) $(eval $(call get_sources,ro)) -# The following variables are meant to be initialized in the baseboard or -# board's build.mk. They will later be appended to in util/build.mk with -# utils that should be generated for all boards. -# -# build-util-bin-y - Utils for the system doing the "build". -# For example, the 64-bit x86 GNU/Linux running make. -# These are often program that are needed by the build -# system to generate code for use in firmware. -# host-util-bin-y - Utils for the target platform on top of the EC. -# For example, the 32-bit x86 Chromebook. -# build-util-art-y - Build ?artifacts? for the system doing the "build" -# -# The util targets added to these variable will pickup extra build objects -# from their optional <util_name>-objs make variable. -# -# See commit bc4c1b4 for more context. -build-utils := $(call objs_from_dir,$(out)/util,build-util-bin) -host-utils := $(call objs_from_dir,$(out)/util,host-util-bin) -build-art := $(call objs_from_dir,$(out),build-util-art) -# Use the util_name with an added .c AND the special <util_name>-objs variable. -build-srcs := $(foreach u,$(build-util-bin-y),$(sort $($(u)-objs:%.o=util/%.c) \ - $(wildcard util/$(u).c))) -host-srcs := $(foreach u,$(host-util-bin-y),$(sort $($(u)-objs:%.o=util/%.c) \ - $(wildcard util/$(u).c))) - -dirs=core/$(CORE) chip/$(CHIP) $(BASEDIR) $(BDIR) common fuzz power test \ +dirs=core/$(CORE) chip/$(CHIP) $(BASEDIR) $(BDIR) common \ cts/common cts/$(CTS_MODULE) $(out)/gen dirs+= private private-kandou $(PDIR) $(PBDIR) dirs+=$(shell find common -type d) dirs+=$(shell find driver -type d) -common_dirs=util ifeq ($(custom-ro_objs-y),) ro-common-objs := $(sort $(foreach obj, $(all-obj-y), $(out)/RO/$(obj))) @@ -373,7 +334,7 @@ deps := $(ro-deps) $(rw-deps) $(deps-y) $(config): $(out)/$(PROJECT).bin @printf '%s=y\n' $(_tsk_cfg) $(_flag_cfg) > $@ -def_all_deps:=$(config) $(PROJECT_EXTRA) notice rw size utils +def_all_deps:=$(config) $(PROJECT_EXTRA) notice rw size ifeq ($(CONFIG_FW_INCLUDE_RO),y) def_all_deps+=ro endif |