summaryrefslogtreecommitdiff
path: root/util/lock
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2013-11-07 18:46:39 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-11-14 17:52:39 +0000
commit4b59746600936bfec377e19a01e5ccb90e6e1c48 (patch)
tree00c7d22cbfbef1580153a9f3d835141bb29181cb /util/lock
parentd44932402ad99bfaeba3e3a6641e84595401df39 (diff)
downloadchrome-ec-4b59746600936bfec377e19a01e5ccb90e6e1c48.tar.gz
util: declare all host utils source dependencies in build.mk
Instead of hardcoding the common files for host utils in the generic rules, let's declare them in the build.mk file using the same system as the Linux kernel build. if a binary "foo" declared in "host-util-bin" or "build-util-bin" has a matching "foo-objs" variable, it will be build from all objects declared in "foo-objs" else it uses directly "foo.o" (single source file). This is preparatory to add new "build" tools sharing common sources. note: the dependencies on the utils are a bit less fine-grained as a result of this change, but given the low number of tools, that should be acceptable. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=./util/make_all.sh Change-Id: Ieffce7ca6f5b685ffb7d1f4626b99aff07b61443 Reviewed-on: https://chromium-review.googlesource.com/176174 Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'util/lock')
-rw-r--r--util/lock/build.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lock/build.mk b/util/lock/build.mk
index 1b74bc4cea..91987d4d43 100644
--- a/util/lock/build.mk
+++ b/util/lock/build.mk
@@ -6,4 +6,4 @@
# Lock library
#
-util-lock-objs=csem ipc_lock gec_lock
+util-lock-objs=csem.o ipc_lock.o gec_lock.o