]> rtime.felk.cvut.cz Git - can-utils.git/commitdiff
Android.mk: canbusload: fix compilation, make use of libcan
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 31 Jan 2014 10:21:00 +0000 (11:21 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 31 Jan 2014 10:52:20 +0000 (11:52 +0100)
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>
Android.mk

index ffac9572075871c212f4411f26a3f616616455d9..19011970b458747840f35d52f0b9323de727b226 100644 (file)
@@ -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)