linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rt-tests Android.mk for cyclictest and hackbench
@ 2016-03-10 15:33 Eric Jensen
  0 siblings, 0 replies; 6+ messages in thread
From: Eric Jensen @ 2016-03-10 15:33 UTC (permalink / raw)
  To: linux-rt-users

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)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-11 18:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAB+ZbRV_5c_+e2YrcCSPFg6+7pxHfxZVvLGeWoGcH1Mf7_czLw@mail.gmail.com>
2016-03-10 16:18 ` rt-tests Android.mk for cyclictest and hackbench Clark Williams
2016-03-11 11:38   ` John Kacur
2016-03-11 15:10     ` Eric Jensen
2016-03-11 18:06       ` John Kacur
     [not found]         ` <CAB+ZbRVQMT3_9tzqt5=s18og98n+6rBn30LOX0YVGHLyDVGAKA@mail.gmail.com>
2016-03-11 18:39           ` Henrik Austad
2016-03-10 15:33 Eric Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).