linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Henrik Austad <haustad@cisco.com>
To: linux-rt-users@vger.kernel.org
Cc: Henrik Austad <henrik@austad.us>, John Kacur <jkacur@redhat.com>,
	Henrik Austad <haustad@cisco.com>
Subject: [PATCH 2/4] android: rename arch from bionic to android
Date: Wed, 21 Oct 2015 15:49:00 +0200	[thread overview]
Message-ID: <1445435342-16969-3-git-send-email-haustad@cisco.com> (raw)
In-Reply-To: <1445435342-16969-1-git-send-email-haustad@cisco.com>

From: Henrik Austad <henrik@austad.us>

Bionic is the libc implementation used in Android and should not be
confused with the architecture.

Cc: John Kacur <jkacur@redhat.com>
Signed-off-by: Henrik Austad <haustad@cisco.com>
---
 Makefile                  |  2 +-
 src/arch/android/Makefile | 23 +++++++++++++++++++++++
 src/arch/bionic/Makefile  | 23 -----------------------
 3 files changed, 24 insertions(+), 24 deletions(-)
 create mode 100644 src/arch/android/Makefile
 delete mode 100644 src/arch/bionic/Makefile

diff --git a/Makefile b/Makefile
index c0801db45ced..804eb6824f0e 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,7 @@ endif
 
 # Include any arch specific makefiles here. Make sure that TARGETS aren't
 # evaluated until AFTER this include
-include src/arch/bionic/Makefile
+include src/arch/android/Makefile
 TARGETS = $(sources:.c=)
 
 VPATH	= src/cyclictest:
diff --git a/src/arch/android/Makefile b/src/arch/android/Makefile
new file mode 100644
index 000000000000..8e169f080adb
--- /dev/null
+++ b/src/arch/android/Makefile
@@ -0,0 +1,23 @@
+
+# Bionic (android) does not have:
+# - pthread barriers
+# - pthread_[gs]etaffinity
+#
+# Typically see something like "aarch64-linux-android"
+ifeq (android,$(ostype))
+	USE_BIONIC := 1
+	CFLAGS += -DNO_PTHREAD_BARRIER
+	CFLAGS += -DNO_PTHREAD_SETAFFINITY
+
+	LDFLAGS += -pie
+# -lrt and -lpthread is in standard bionic library, no standalone library
+	LIBS := $(filter-out -lrt,$(LIBS))
+	LIBS := $(filter-out -lpthread,$(LIBS))
+
+# BIONIC does not support PI, barriers and has different files in
+# include/. This means that currently, only these binaries will compile
+# and link properly:
+# - cyclictest
+# - hackbench
+	sources := cyclictest.c hackbench.c
+endif
diff --git a/src/arch/bionic/Makefile b/src/arch/bionic/Makefile
deleted file mode 100644
index 8e169f080adb..000000000000
--- a/src/arch/bionic/Makefile
+++ /dev/null
@@ -1,23 +0,0 @@
-
-# Bionic (android) does not have:
-# - pthread barriers
-# - pthread_[gs]etaffinity
-#
-# Typically see something like "aarch64-linux-android"
-ifeq (android,$(ostype))
-	USE_BIONIC := 1
-	CFLAGS += -DNO_PTHREAD_BARRIER
-	CFLAGS += -DNO_PTHREAD_SETAFFINITY
-
-	LDFLAGS += -pie
-# -lrt and -lpthread is in standard bionic library, no standalone library
-	LIBS := $(filter-out -lrt,$(LIBS))
-	LIBS := $(filter-out -lpthread,$(LIBS))

  parent reply	other threads:[~2015-10-21 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21 13:48 [PATCH 0/4] Android/Bionic cleanup patches Henrik Austad
2015-10-21 13:48 ` [PATCH 1/4] Android: clean up the bypass ifdeffery Henrik Austad
2015-10-21 16:39   ` John Kacur
2015-10-21 13:49 ` Henrik Austad [this message]
2015-10-21 13:49 ` [PATCH 3/4] android: Expand match for android in ostype Henrik Austad
2015-10-21 13:49 ` [PATCH 4/4] rt-sched.h: do not unconditionally define syscall-numbers Henrik Austad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1445435342-16969-3-git-send-email-haustad@cisco.com \
    --to=haustad@cisco.com \
    --cc=henrik@austad.us \
    --cc=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).