Go to ftp://ftp.samba.org/pub and download the 2.4.4 archive file. Copy the 
chat dir to ../froyo/external/ppp/ . We are gonna have to make a couple of 
changes to some files in order to actually build the files.

You have to add this Android.mk file to ../froyo/external/ppp/chat/

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
        chat.c

LOCAL_SHARED_LIBRARIES := \
        libcutils libc
LOCAL_C_INCLUDES := \
        $(LOCAL_PATH)/include
LOCAL_CFLAGS := -DANDROID_CHANGES -DTERMIOS -DSIGTYPE=void -UNO_SLEEP 
-DFNDELAY=O_NDELAY
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE:= chat
include $(BUILD_EXECUTABLE)

Then, use this script

#!/bin/sh
ANDSOURCES=~/bin
FROYO_PPP=$ANDSOURCES/froyo/external/ppp
cd $ANDSOURCES/froyo/
source build/envsetup.sh
lunch igepv2-eng
make clean
make chat

At this point, if the build succeeds (it should), you can add the following 
lines to the script and save it somewhere: build then push to the device 
using adb. 

adb push $ANDSOURCES/froyo/out/target/product/igepv2/system/xbin/chat 
/system/bin/
adb shell chown root.shell /system/bin/chat


if you need to use pppd along with the ip-up/down scripts, you will also need 
busybox to use the run-parts binary.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to