summaryrefslogtreecommitdiff
path: root/defs
diff options
context:
space:
mode:
authorTaylor Hutt <thutt@chromium.org>2012-03-13 13:57:52 -0700
committerTaylor Hutt <thutt@chromium.org>2012-03-27 06:44:48 -0700
commitf5125c1848077fda08ca57322103b5795b78e307 (patch)
treecedf63b087393954837f440b50ce70cb21c47dbe /defs
parent83fcfb1566ab23ff4653a7b371f3c50c31c1942a (diff)
downloadadhd-f5125c1848077fda08ca57322103b5795b78e307.tar.gz
ADHD: Notify cras of hardware changes
Details This change finally opens the cras command socket and provides device information to cras through this socket. cras does not yet do anything with this information. Testing Booted with new image, verified that the cras socket connection is successfully opened. Ensured that headphone switching still functions on Arm-based hardware. Previous upload failed to build because header include paths were incorrect, and failed to link after that because library include paths were incorrect. Somehow I lost the changes which actually set up the include paths; I've recreated them, and the changes to fix some type conversion warnings which crop up when compiling in the gavd context. BUG=chromium-os:19558 TEST=See above Change-Id: I736da294a0cfd3a1e994f8a8be448cf0b33c3b8c
Diffstat (limited to 'defs')
-rw-r--r--defs/c.mk4
-rw-r--r--defs/make.mk1
2 files changed, 4 insertions, 1 deletions
diff --git a/defs/c.mk b/defs/c.mk
index a3235e57..1533b9dd 100644
--- a/defs/c.mk
+++ b/defs/c.mk
@@ -107,7 +107,9 @@ BOARD_INCLUDE = -DADHD_BOARD_INCLUDE='"board-$(BOARD).h"'
INCLUDES = \
-I$(ADHD_DIR)/include \
- -I$(ADHD_SOURCE_DIR)
+ -I$(ADHD_SOURCE_DIR) \
+ -I$(ADHD_DIR)/cras/src/common \
+ -I$(ADHD_DIR)/cras/src/libcras
CFLAGS = \
-std=gnu99 \
diff --git a/defs/make.mk b/defs/make.mk
index 68369d84..c9d2d257 100644
--- a/defs/make.mk
+++ b/defs/make.mk
@@ -17,6 +17,7 @@ endif
GAVD_ARCHIVE = $(ADHD_BUILD_DIR)/lib/gavd.a
LIBS = \
+ -L$(ADHD_DIR)/cras/src/.libs \
$(GAVD_ARCHIVE) \
$(foreach lib,$(MY_LIBS),-l$(lib))