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 <yegorslists@googlemail.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/1/head
Marc Kleine-Budde 2014-01-31 11:21:00 +01:00
parent f878a5fa2c
commit 02d32df1dc
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ PRIVATE_LOCAL_CFLAGS := -O2 -g -W -Wall \
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_SRC_FILES := lib.c LOCAL_SRC_FILES := lib.c canframelen.c
LOCAL_MODULE := libcan LOCAL_MODULE := libcan
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/
LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS)
@ -86,6 +86,7 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := canbusload.c LOCAL_SRC_FILES := canbusload.c
LOCAL_MODULE := canbusload LOCAL_MODULE := canbusload
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_LIBRARIES := libcan
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/ LOCAL_C_INCLUDES := $(LOCAL_PATH)/include/
LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS) LOCAL_CFLAGS := $(PRIVATE_LOCAL_CFLAGS)