CROSS-COMPILATTIOn STRACE
ben canavar
ulu.canavar at gmail.com
Tue Jun 14 13:41:54 UTC 2011
Hello, I need to build strace for a project android.
I try to configure my environnements but i have many errors.
Can you help me please?
I do :
This is the Android.mk file.
####################################################################################################
# BEGIN
#
####################################################################################################
# Copyright 2006 The Android Open Source Project
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH := $(my-dir)
include $(CLEAR_VARS)
# From autoconf-generated Makefile
strace_SOURCES = strace.c syscall.c util.c desc.c file.c \
io.c ioctl.c mem.c net.c process.c bjm.c \
resource.c signal.c sock.c system.c term.c time.c \
proc.c stream.c quota.c ioctlsort.c scsi.c block.c count.c
#excluded_sources = ipc.c
LOCAL_SRC_FILES:= $(strace_SOURCES)
LOCAL_SHARED_LIBRARIES :=
# Hack for ARM devices. This version of strace does not support ARM, and the
# patch that was used to add ARM support actually adds the ARM syscalls to
# linux/sh/ (Sega Megadrive/Dreamcast/...) instead of linux/arm/ . The
proper
# way to fix this would be to upgrade to a version of strace that does
support
# ARM (e.g. 4.5.1.8), but that would mean having to reapply all
Android-specific
# changes. Sigh.
ifeq ($(TARGET_ARCH),arm)
STRACE_ARCH_HEADERS := $(LOCAL_PATH)/strace/linux/sh
else
STRACE_ARCH_HEADERS := $(LOCAL_PATH)/strace/linux/$(TARGET_ARCH)
endif
LOCAL_C_INCLUDES := \
$(STRACE_ARCH_HEADERS) \
$(KERNEL_HEADERS) \
$(LOCAL_PATH)/linux \
$(LOCAL_PATH)/android/arch/$(TARGET_ARCH)
LOCAL_CFLAGS := -DHAVE_ANDROID_OS -DHAVE_CONFIG_H -Dd_fileno=d_ino
-D_LFS64_LARGEFILE=1
ifeq ($(TARGET_ARCH),x86)
LOCAL_CFLAGS += -Ulinux
endif
LOCAL_MODULE := strace
LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
LOCAL_MODULE_TAGS := debug
include $(BUILD_EXECUTABLE)
endif # TARGET_SIMULATOR != true
################################################################################################################
# END
#
################################################################################################################
Thanks.
Ulucanavar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20110614/f0f98599/attachment.html>
More information about the Strace-devel
mailing list