rt-tests Android.mk for cyclictest and hackbench

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I couldn't find one of these on the web, but I think it would be nice
to include in the git repo to make it easy for people to add to their
manifest when building AOSP.  This Android.mk is working for me on
lollipop and I think would work for others:

LOCAL_PATH:= $(call my-dir)

commonFlags := -Wall -Wno-nonnull -O2 -DPTHREAD_BIONIC -DVERSION=0.96
-D_GNU_SOURCE

include $(CLEAR_VARS)
LOCAL_MODULE := librttest
LOCAL_MODULE_TAGS := eng
FILE_LIST := $(wildcard $(LOCAL_PATH)/src/lib/*.c)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_CFLAGS += $(commonFlags)
LOCAL_LDLIBS += -ldl
LOCAL_LDFLAGS += -pie
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/include
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := cyclictest
LOCAL_MODULE_TAGS := eng
LOCAL_STATIC_LIBRARIES := librttest
FILE_LIST := $(wildcard $(LOCAL_PATH)/src/cyclictest/*.c)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_CFLAGS += $(commonFlags)
LOCAL_LDLIBS += -ldl
LOCAL_LDFLAGS += -pie
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/include
include $(BUILD_EXECUTABLE)

include $(CLEAR_VARS)
LOCAL_MODULE := hackbench
LOCAL_MODULE_TAGS := eng
LOCAL_STATIC_LIBRARIES := librttest
FILE_LIST := $(wildcard $(LOCAL_PATH)/src/hackbench/*.c)
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
LOCAL_CFLAGS += $(commonFlags)
LOCAL_LDLIBS += -ldl
LOCAL_LDFLAGS += -pie
LOCAL_C_INCLUDES += $(LOCAL_PATH)/src/include
include $(BUILD_EXECUTABLE)
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux