53
RSB-6410 Android User Manual
Chapter 4
A
ndroid
OS
4.
By menu, Device Drivers / Network device support, you can select device(s) you
want to build into your Linux kernel.
5.
Refer to section 4.4.1 to rebuild everything.
4.7.2
Put source code to system
1.
Put whole package directory to BSP’s folder:
./android/packages/apps/
2.
Create a file, Android.mk, at package directory; the contents look like below:
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := PROJECT_NAME_HERE
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Use the following include to make our test apk. include $(call all-makefiles-
under,$(LOCAL_PATH))
3.
Edit following file:
./android/device/Advantech/RSB-6410/device.mk
to insert correct project name:
PRODUCT_PA= \
PROJECT_NAME_HERE\
\
librxtxSerial\
\
SerialJ