summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-10-29 09:49:19 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-10-30 01:03:43 +0000
commit497e29254286a8bf8858e3a5e5495cc098f119a4 (patch)
tree0c0aeaaef32e75e2c7237131333e819fdb9003d9 /Makefile
parent7e78087a91ff5c00a695ee769edd20fb62c04bc9 (diff)
downloadchrome-ec-497e29254286a8bf8858e3a5e5495cc098f119a4.tar.gz
Start separating LM4 pwm logic from fan logic.
On the LM4, all pwm functions are implemented through hardware "fan" modules. This change abstracts the hardware fan stuff from the higher level pwm and fan control logic. Those are still chip-specific at the moment, but may be moved into common with a future CL. BUG=chrome-os-partner:23530 BRANCH=none TEST=manual Code refactoring only, no new behavior. All tests build and pass, and I tested on Link with some manual pwm and fan commands on the EC console. > fanduty 30 > faninfo Should report ~4500 RPM > fanset 7000 > faninfo Should report ~48% duty cycle. > fanauto Back to automatic control. > kblight 0 > kblight 10 > kblight 50 > kblight 100 Keyboard backlight should glow appropriately. Change-Id: I7558f36b2626e555fc8dabdd12660fa484a93b7f Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174991 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 10a9c1f019..078b09c267 100644
--- a/Makefile
+++ b/Makefile
@@ -53,8 +53,8 @@ include util/lock/build.mk
includes+=$(includes-y)
-objs_from_dir=$(foreach obj, $($(2)-y), \
- $(out)/$(1)/$(firstword $($(2)-mock-$(PROJECT)-$(obj)) $(obj)))
+objs_from_dir=$(sort $(foreach obj, $($(2)-y), \
+ $(out)/$(1)/$(firstword $($(2)-mock-$(PROJECT)-$(obj)) $(obj))))
# Get all sources to build
all-y=$(call objs_from_dir,core/$(CORE),core)