[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/12: gnu: Add android-bionic-uapi.
From: |
Danny Milosavljevic |
Subject: |
05/12: gnu: Add android-bionic-uapi. |
Date: |
Wed, 9 May 2018 16:34:57 -0400 (EDT) |
dannym pushed a commit to branch master
in repository guix.
commit cc39d592d92102091c8d73ce6e6e63fde5e9e030
Author: Danny Milosavljevic <address@hidden>
Date: Thu Apr 26 02:45:10 2018 +0200
gnu: Add android-bionic-uapi.
* gnu/packages/android.scm (android-bionic-uapi): New variable.
---
gnu/packages/android.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 7eb683c..17c9de7 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -103,6 +103,18 @@ use their packages mostly unmodified in our Android NDK
build system.")
"adb-add-libraries.patch"
"libziparchive-add-includes.patch"))))
+(define (android-platform-bionic version)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://android.googlesource.com/platform/bionic")
+ (commit (string-append "android-" version))))
+ (file-name (string-append "android-platform-bionic-"
+ version "-checkout"))
+ (sha256
+ (base32
+ "0n9wkz3ynqw39if1ss9n32m66iga14nndf29hpm7g1aqn4wvvgzk"))))
+
(define (android-platform-external version subdirectory checksum)
(origin
(method git-fetch)
@@ -352,6 +364,37 @@ performing and checking safe integer operations. Ensure
that integer
operations do not result in silent overflow.")
(license license:bsd-2)))
+(define-public android-bionic-uapi
+ (package
+ (name "android-bionic-uapi")
+ (version (android-platform-version))
+ (source (android-platform-bionic version))
+ (build-system android-ndk-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'enter-source
+ (lambda _ (chdir "libc") #t))
+ (replace 'check
+ (const #t))
+ (replace 'build
+ (const #t))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (out-sys (string-append out "/include/sys")))
+ (mkdir-p out-sys)
+ (install-file "include/sys/system_properties.h" out-sys)
+ (install-file "include/sys/_system_properties.h" out-sys)
+ (copy-recursively "kernel/uapi" (string-append out "/include"))
+ #t))))))
+ (home-page "https://developer.android.com/")
+ (synopsis "Android Linux API that is safe for user space")
+ (description "@code{android-bionic-uapi} provides the part of the Linux API
+that is safe to use for user space. It also includes
address@hidden and @code{_system_properties.h}.")
+ (license license:asl2.0)))
+
(define-public android-udev-rules
(package
(name "android-udev-rules")
- branch master updated (ad23a3f -> 81abe37), Danny Milosavljevic, 2018/05/09
- 01/12: gnu: Patch Android system core at the origin., Danny Milosavljevic, 2018/05/09
- 06/12: gnu: libcutils: Install header files., Danny Milosavljevic, 2018/05/09
- 03/12: gnu: Add android-libsparse., Danny Milosavljevic, 2018/05/09
- 04/12: gnu: Add android-safe-iop., Danny Milosavljevic, 2018/05/09
- 07/12: gnu: Add android-libselinux., Danny Milosavljevic, 2018/05/09
- 08/12: gnu: Add android-ext4-utils., Danny Milosavljevic, 2018/05/09
- 05/12: gnu: Add android-bionic-uapi.,
Danny Milosavljevic <=
- 12/12: gnu: liblog: Build library correctly., Danny Milosavljevic, 2018/05/09
- 11/12: gnu: android-make-stub: Update to 0.4., Danny Milosavljevic, 2018/05/09
- 10/12: gnu: Add android-libutils., Danny Milosavljevic, 2018/05/09
- 09/12: gnu: Add android-f2fs-utils., Danny Milosavljevic, 2018/05/09
- 02/12: gnu: Add android-libziparchive., Danny Milosavljevic, 2018/05/09