diff options
| author | Mister Oyster <oysterized@gmail.com> | 2017-07-05 14:59:09 +0200 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-07-05 14:59:57 +0200 |
| commit | 37c3ec83bb9f7e92464da06f683406810c8ffee2 (patch) | |
| tree | 259ffdca0e40bf238946cf5fa6de27b9bd294414 /patches | |
| parent | c2c073e8780f209c5a7b5989173a18c551e9d71f (diff) | |
patch: system: core: missing atomic symbols for old blobs
Diffstat (limited to 'patches')
| -rw-r--r-- | patches/install.sh | 2 | ||||
| -rw-r--r-- | patches/system/core/0001-mtk-O-reintroduce-atomic-symbols-in-libcutils-for-ol.patch | 60 |
2 files changed, 61 insertions, 1 deletions
diff --git a/patches/install.sh b/patches/install.sh index 9c1ec2a..6f00a79 100644 --- a/patches/install.sh +++ b/patches/install.sh @@ -4,7 +4,7 @@ echo $1 rootdirectory="$PWD" # --------------------------------- -dirs="" +dirs="system/core" # red + nocolor RED='\033[0;31m' diff --git a/patches/system/core/0001-mtk-O-reintroduce-atomic-symbols-in-libcutils-for-ol.patch b/patches/system/core/0001-mtk-O-reintroduce-atomic-symbols-in-libcutils-for-ol.patch new file mode 100644 index 0000000..4393cd7 --- /dev/null +++ b/patches/system/core/0001-mtk-O-reintroduce-atomic-symbols-in-libcutils-for-ol.patch @@ -0,0 +1,60 @@ +From 041026c3d8ab43a088e9907b1ec33f8e0bf7d685 Mon Sep 17 00:00:00 2001 +From: Mister Oyster <oysterized@gmail.com> +Date: Wed, 28 Jun 2017 19:41:05 +0200 +Subject: [PATCH] mtk: O: reintroduce atomic symbols in libcutils for old Mtk + audio hals & Mali blobs + +Change-Id: I4b7cf5e5a772f9c281ae4bf3d3fdfd2d3b41d4c1 +--- + libcutils/Android.bp | 1 + + libcutils/atomic.c | 26 ++++++++++++++++++++++++++ + 2 files changed, 27 insertions(+) + create mode 100644 libcutils/atomic.c + +diff --git a/libcutils/Android.bp b/libcutils/Android.bp +index 245deb113..45d7889eb 100644 +--- a/libcutils/Android.bp ++++ b/libcutils/Android.bp +@@ -52,6 +52,7 @@ cc_library { + vendor_available: true, + host_supported: true, + srcs: [ ++ "atomic.c", + "config_utils.c", + "fs_config.cpp", + "canned_fs_config.c", +diff --git a/libcutils/atomic.c b/libcutils/atomic.c +new file mode 100644 +index 000000000..d34aa0081 +--- /dev/null ++++ b/libcutils/atomic.c +@@ -0,0 +1,26 @@ ++/* ++ * Copyright (C) 2007 The Android Open Source Project ++ * ++ * Licensed under the Apache License, Version 2.0 (the "License"); ++ * you may not use this file except in compliance with the License. ++ * You may obtain a copy of the License at ++ * ++ * http://www.apache.org/licenses/LICENSE-2.0 ++ * ++ * Unless required by applicable law or agreed to in writing, software ++ * distributed under the License is distributed on an "AS IS" BASIS, ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ++ * See the License for the specific language governing permissions and ++ * limitations under the License. ++ */ ++ ++/* ++ * Generate non-inlined versions of android_atomic functions. ++ * Nobody should be using these, but some binary blobs currently (late 2014) ++ * are. ++ * If you read this in 2015 or later, please try to delete this file. ++ */ ++ ++#define ANDROID_ATOMIC_INLINE ++ ++#include <cutils/atomic.h> +-- +2.11.0 + |
