git » android-tools.git » commit 931206d

upgpkg: 5.0.0_r2-1

author Anatol Pomozov
2014-11-08 18:52:51 UTC
committer Anatol Pomozov
2014-11-08 18:52:51 UTC
parent e1efc53811ef11d9308d0df60e2fdd2f08ff138e

upgpkg: 5.0.0_r2-1

PKGBUILD +15 -7
adbMakefile +1 -1
fastbootMakefile +14 -1

diff --git a/PKGBUILD b/PKGBUILD
index 5fe3771..cc870c0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: Alucryd <alucryd at gmail dot com>
 
 pkgname=android-tools
-pkgver=4.4.4_r2.0.1
+pkgver=5.0.0_r2
 pkgrel=1
 pkgdesc='Android platform tools'
 arch=(i686 x86_64)
@@ -14,15 +14,23 @@ makedepends=(git)
 source=(git+https://android.googlesource.com/platform/system/core#tag=android-$pkgver
         git+https://android.googlesource.com/platform/system/extras#tag=android-$pkgver
         git+https://android.googlesource.com/platform/external/libselinux#tag=android-$pkgver
+        git+https://android.googlesource.com/platform/external/f2fs-tools#tag=android-$pkgver
         adbMakefile
         fastbootMakefile
         bash_completion) # Bash completion file was taken from https://github.com/mbrubeck/android-completion
-md5sums=('SKIP'
-         'SKIP'
-         'SKIP'
-         '887d868e544330ef850334961685cab3'
-         'cd1a1a9d16b523119245bfe17120d73b'
-         '421f8640d7b4ec156f1d37167f3e7a45')
+sha1sums=('SKIP'
+          'SKIP'
+          'SKIP'
+          'SKIP'
+          'cc3d5bbf7f38574bfe597555b39d983db87ec37f'
+          '5a66a188e35ec09393f5bd85d5b63fe7a7e38c0f'
+          'd99991b208c7c2d8d0053e9937653cca22d09b6d')
+
+
+prepare() {
+  # another way to fix the compilation error is to add #include <stddef.h>
+  sed -e 's/f2fs_sparse_file = NULL/f2fs_sparse_file = 0/g' -i extras/f2fs_utils/f2fs_utils.c 
+}
 
 build() {
   make -C core/adb -f "$srcdir"/adbMakefile
diff --git a/adbMakefile b/adbMakefile
index 9a76a9b..970b625 100644
--- a/adbMakefile
+++ b/adbMakefile
@@ -15,7 +15,6 @@ SRCS+= usb_linux.c
 SRCS+= usb_vendors.c
 
 VPATH+= ../libcutils
-SRCS+= list.c
 SRCS+= load_file.c
 SRCS+= socket_inaddr_any_server.c
 SRCS+= socket_local_client.c
@@ -30,6 +29,7 @@ SRCS+= zipfile.c
 
 CPPFLAGS+= -DADB_HOST=1
 CPPFLAGS+= -DHAVE_FORKEXEC=1
+CPPFLAGS+= -DHAVE_OFF64_T=1
 CPPFLAGS+= -I.
 CPPFLAGS+= -I../include
 
diff --git a/fastbootMakefile b/fastbootMakefile
index 778da3d..962a786 100644
--- a/fastbootMakefile
+++ b/fastbootMakefile
@@ -4,6 +4,8 @@ SRCS+=fastboot.c
 SRCS+=protocol.c
 SRCS+=usb_linux.c
 SRCS+=util_linux.c
+SRCS+=util.c
+SRCS+=fs.c
 
 VPATH+= ../libsparse
 SRCS+= backed_block.c
@@ -22,6 +24,7 @@ SRCS+= allocate.c
 SRCS+= contents.c
 SRCS+= crc16.c
 SRCS+= ext4_utils.c
+SRCS+= ext4_sb.c
 SRCS+= extent.c
 SRCS+= indirect.c
 SRCS+= make_ext4fs.c
@@ -29,6 +32,11 @@ SRCS+= sha1.c
 SRCS+= uuid.c
 SRCS+= wipe.c
 
+VPATH+= ../../extras/f2fs_utils
+SRCS+= f2fs_utils.c
+SRCS+= f2fs_dlutils.c
+SRCS+= f2fs_ioutils.c
+
 VPATH+= ../../libselinux/src
 SRCS+= callbacks.c
 SRCS+= check_context.c
@@ -42,9 +50,14 @@ CPPFLAGS+= -I../include
 CPPFLAGS+= -I../libsparse/include
 CPPFLAGS+= -I../mkbootimg
 CPPFLAGS+= -I../../extras/ext4_utils
+CPPFLAGS+= -I../../extras/f2fs_utils/
 CPPFLAGS+= -I../../libselinux/include
+CPPFLAGS+= -I../../f2fs-tools/include
+CPPFLAGS+= -I../../f2fs-tools/mkfs
+CPPFLAGS+= -DHAVE_OFF64_T=1
+CPPFLAGS+= -std=gnu99
 
-LIBS+= -lz
+LIBS+= -lz -ldl
 
 OBJS= $(SRCS:.c=.o)