From 02d32df1dcbff3324750c2abc2bdf052724b99b9 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Fri, 31 Jan 2014 11:21:00 +0100 Subject: [PATCH] Android.mk: canbusload: fix compilation, make use of libcan In commit 2206f92 canbusload: Add exact CAN frame length calculation (including bitstuffing) the function to calculate the can_frame_length was moved into a seperate file (canframelen.c). This patch for the Android makefile adds canframelen.c to the lib, too and lets canbusload link against the lib. Tested-by: Yegor Yefremov Signed-off-by: Marc Kleine-Budde --- Android.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index ffac957..1901197 100644 --- a/Android.mk +++ b/Android.mk @@ -11,7 +11,7 @@ PRIVATE_LOCAL_CFLAGS := -O2 -g -W -Wall \ include $(CLEAR_VARS) -LOCAL_SRC_FILES := lib.c +LOCAL_SRC_FILES := lib.c canframelen.c LOCAL_MODULE := libcan LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) @@ -86,6 +86,7 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES := canbusload.c LOCAL_MODULE := canbusload LOCAL_MODULE_TAGS := optional +LOCAL_STATIC_LIBRARIES := libcan LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) -- 2.39.2