Skip to content

Commit

Permalink
Update blkid to 2.25.0
Browse files Browse the repository at this point in the history
Break libblkid into 4 libraries: libblkid, libuuid, libutil-linux and libfdisk.

This should help in later patch updates.

Change-Id: I680d9a7feb031e5c29a603e9c58aff4b65826262
  • Loading branch information
bigbiff authored and Dees-Troy committed Jan 5, 2015
1 parent 183a6f8 commit 7b4c7a6
Show file tree
Hide file tree
Showing 311 changed files with 31,540 additions and 4,343 deletions.
3 changes: 2 additions & 1 deletion Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ LOCAL_SRC_FILES := \
twrp.cpp \
fixPermissions.cpp \
twrpTar.cpp \
twrpDU.cpp \
twrpDU.cpp \
twrpDigest.cpp \
digest/md5.c \
find_file.cpp \
infomanager.cpp

Expand Down
190 changes: 186 additions & 4 deletions libblkid/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,194 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := libblkid
LOCAL_MODULE := libutil-linux
LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T
LOCAL_SRC_FILES = aix.c at.c befs.c bfs.c blkdev.c bsd.c btrfs.c cache.c canonicalize.c colors.c config.c cramfs.c crc32.c ddf_raid.c dev.c devname.c devno.c dm.c dos.c drbd.c drbdproxy_datalog.c encode.c env.c evaluate.c evms.c exec_shell.c exfat.c ext.c f2fs.c fileutils.c getsize.c gfs.c gpt.c hfs.c highpoint_raid.c hpfs.c ioctl.c ismounted.c iso9660.c isw_raid.c jfs.c jmicron_raid.c langinfo.c linux_raid.c linux_version.c llseek.c loopdev.c lsi_raid.c luks.c lvm1.c lvm2.c mac.c mangle.c match.c mbsalign.c md5.c md.c minix1.c minix2.c netware.c nilfs.c ntfs.c nvidia_raid.c ocfs.c pager.c partitions.c path.c probe.c procutils.c promise_raid.c randutils.c read.c reiserfs.c resolve.c romfs.c save.c setproctitle.c sgi.c silicon_raid.c solaris_x86.c squashfs.c sun.c superblocks.c swap.c sysfs1.c sysfs2.c sysv.c tag.c topology.c ubifs.c udf.c ufs.c ultrix.c unixware.c verify.c version.c vfat.c via_raid.c vmfs.c vxfs.c wholedisk.c xfs.c zfs.c adaptec_raid.c
LOCAL_C_INCLUDES += $(LOCAL_PATH) \
LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
LOCAL_SRC_FILES = lib/at.c \
lib/blkdev.c \
lib/canonicalize.c \
lib/colors.c \
lib/crc32.c \
lib/crc64.c \
lib/env.c \
lib/exec_shell.c \
lib/fileutils.c \
lib/ismounted.c \
lib/langinfo.c \
lib/linux_version.c \
lib/loopdev.c \
lib/mangle.c \
lib/match.c \
lib/mbsalign.c \
lib/md5.c \
lib/pager.c \
lib/path.c \
lib/procutils.c \
lib/randutils.c \
lib/setproctitle.c \
lib/strutils.c \
lib/sysfs.c \

LOCAL_C_INCLUDES += $(LOCAL_PATH)/libfdisk/src \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libuuid/src \
$(LOCAL_PATH)/src

LOCAL_SHARED_LIBRARIES += libc
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := libuuid
LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
LOCAL_SRC_FILES = libuuid/src/clear.c \
libuuid/src/copy.c \
libuuid/src/isnull.c \
libuuid/src/parse.c \
libuuid/src/unpack.c \
libuuid/src/uuid_time.c \
libuuid/src/compare.c \
libuuid/src/gen_uuid.c \
libuuid/src/pack.c \
libuuid/src/test_uuid.c \
libuuid/src/unparse.c

LOCAL_C_INCLUDES += $(LOCAL_PATH)/libuuid/src \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/src

LOCAL_SHARED_LIBRARIES += libc libutil-linux

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := libfdisk
LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
LOCAL_SRC_FILES = libfdisk/src/alignment.c \
libfdisk/src/context.c \
libfdisk/src/init.c \
libfdisk/src/partition.c \
libfdisk/src/sgi.c \
libfdisk/src/test.c \
libfdisk/src/ask.c \
libfdisk/src/dos.c \
libfdisk/src/iter.c \
libfdisk/src/parttype.c \
libfdisk/src/sun.c \
libfdisk/src/utils.c \
libfdisk/src/bsd.c \
libfdisk/src/gpt.c \
libfdisk/src/label.c \
libfdisk/src/script.c \
libfdisk/src/table.c

LOCAL_C_INCLUDES += $(LOCAL_PATH)/libfdisk/src \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/libuuid/src \
$(LOCAL_PATH)/src

LOCAL_SHARED_LIBRARIES += libc libutil-linux libuuid
include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE := libblkid
LOCAL_MODULE_TAGS := optional
#LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DHAVE_LOFF_T -DHAVE_ERR_H -DHAVE_MEMPCPY -DHAVE_FSYNC
LOCAL_SRC_FILES = src/cache.c \
src/config.c \
src/dev.c \
src/devname.c \
src/devno.c \
src/encode.c \
src/evaluate.c \
src/getsize.c \
src/init.c \
src/llseek.c \
src/probe.c \
src/read.c \
src/resolve.c \
src/save.c \
src/tag.c \
src/verify.c \
src/version.c \
src/partitions/aix.c \
src/partitions/bsd.c \
src/partitions/dos.c \
src/partitions/gpt.c \
src/partitions/mac.c \
src/partitions/minix.c \
src/partitions/partitions.c \
src/partitions/sgi.c \
src/partitions/solaris_x86.c \
src/partitions/sun.c \
src/partitions/ultrix.c \
src/partitions/unixware.c \
src/superblocks/adaptec_raid.c \
src/superblocks/bcache.c \
src/superblocks/befs.c \
src/superblocks/bfs.c \
src/superblocks/btrfs.c \
src/superblocks/cramfs.c \
src/superblocks/ddf_raid.c \
src/superblocks/drbd.c \
src/superblocks/drbdproxy_datalog.c \
src/superblocks/exfat.c \
src/superblocks/ext.c \
src/superblocks/f2fs.c \
src/superblocks/gfs.c \
src/superblocks/hfs.c \
src/superblocks/highpoint_raid.c \
src/superblocks/hpfs.c \
src/superblocks/iso9660.c \
src/superblocks/isw_raid.c \
src/superblocks/jfs.c \
src/superblocks/jmicron_raid.c \
src/superblocks/linux_raid.c \
src/superblocks/lsi_raid.c \
src/superblocks/luks.c \
src/superblocks/lvm.c \
src/superblocks/minix.c \
src/superblocks/netware.c \
src/superblocks/nilfs.c \
src/superblocks/ntfs.c \
src/superblocks/nvidia_raid.c \
src/superblocks/ocfs.c \
src/superblocks/promise_raid.c \
src/superblocks/refs.c \
src/superblocks/reiserfs.c \
src/superblocks/romfs.c \
src/superblocks/silicon_raid.c \
src/superblocks/squashfs.c \
src/superblocks/superblocks.c \
src/superblocks/swap.c \
src/superblocks/sysv.c \
src/superblocks/ubifs.c \
src/superblocks/udf.c \
src/superblocks/ufs.c \
src/superblocks/vfat.c \
src/superblocks/via_raid.c \
src/superblocks/vmfs.c \
src/superblocks/vxfs.c \
src/superblocks/xfs.c \
src/superblocks/zfs.c \
src/topology/dm.c \
src/topology/evms.c \
src/topology/ioctl.c \
src/topology/lvm.c \
src/topology/md.c \
src/topology/sysfs.c \
src/topology/topology.c \

LOCAL_C_INCLUDES += $(LOCAL_PATH)/include \
$(LOCAL_PATH)/src

LOCAL_SHARED_LIBRARIES += libc libfdisk libutil-linux
include $(BUILD_SHARED_LIBRARY)
8 changes: 8 additions & 0 deletions libblkid/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later
version.

The complete text of the license is available in the
../Documentation/licenses/COPYING.LGPLv2.1 file.
16 changes: 16 additions & 0 deletions libblkid/Makemodule.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
if BUILD_LIBBLKID

include libblkid/src/Makemodule.am
include libblkid/samples/Makemodule.am

if ENABLE_GTK_DOC
# Docs uses separate Makefiles
SUBDIRS += libblkid/docs
endif

pkgconfig_DATA += libblkid/blkid.pc
PATHFILES += libblkid/blkid.pc
dist_man_MANS += libblkid/libblkid.3
EXTRA_DIST += libblkid/libblkid.3 libblkid/COPYING

endif # BUILD_LIBBLKID
11 changes: 11 additions & 0 deletions libblkid/blkid.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@usrlib_execdir@
includedir=@includedir@

Name: blkid
Description: Block device id library
Version: @LIBBLKID_VERSION@
Requires.private: uuid
Cflags: -I${includedir}/blkid
Libs: -L${libdir} -lblkid
121 changes: 0 additions & 121 deletions libblkid/blkid_parttypes.h

This file was deleted.

Loading

0 comments on commit 7b4c7a6

Please sign in to comment.