Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
--- e2fsprogs-1.41.9/MCONFIG.in.orig 2009-10-07 20:25:07.000000000 +0800
|
||||
+++ e2fsprogs-1.41.9/MCONFIG.in 2009-10-07 20:21:41.000000000 +0800
|
||||
@@ -85,7 +85,7 @@
|
||||
#
|
||||
LIB = $(top_builddir)/lib
|
||||
LIBSS = $(LIB)/libss@LIB_EXT@ @PRIVATE_LIBS_CMT@ @DLOPEN_LIB@
|
||||
-LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @PRIVATE_LIBS_CMT@ @SEM_INIT_LIB@
|
||||
+LIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@ @SEM_INIT_LIB@
|
||||
LIBE2P = $(LIB)/libe2p@LIB_EXT@
|
||||
LIBEXT2FS = $(LIB)/libext2fs@LIB_EXT@
|
||||
LIBUUID = @LIBUUID@ @SOCKET_LIB@
|
||||
@@ -1,35 +0,0 @@
|
||||
From b5baf15b36107925186d89af9097b4b8e2d7cad6 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Wed, 21 Sep 2016 08:38:21 +0200
|
||||
Subject: [PATCH] MCONFIG.in: handle CLOCK_GETTIME_LIB
|
||||
|
||||
Commit 62bc243f1bfe623312a350e4cd0d2e17a69aac45 ("fuse2fs: might need
|
||||
librt") added a check for the clock_gettime() to verify whether linking
|
||||
with the librt library is needed or not to use this function.
|
||||
|
||||
However, this commit forgot the change in MCONFIG.in that allows to
|
||||
define the make variable CLOCK_GETTIME_LIB from the CLOCK_GETTIME_LIB
|
||||
variable substituted by the configure script. Due to this, from a make
|
||||
perspective $(CLOCK_GETTIME_LIB) is always empty, and we get link
|
||||
failure on platforms where clock_gettime() is available in librt.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
MCONFIG.in | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/MCONFIG.in b/MCONFIG.in
|
||||
index e82963d..9ba9ce2 100644
|
||||
--- a/MCONFIG.in
|
||||
+++ b/MCONFIG.in
|
||||
@@ -125,6 +125,7 @@ LIBSUPPORT = $(LIBINTL) $(LIB)/libsupport@STATIC_LIB_EXT@
|
||||
LIBBLKID = @LIBBLKID@ @PRIVATE_LIBS_CMT@ $(LIBUUID)
|
||||
LIBINTL = @LIBINTL@
|
||||
SYSLIBS = @LIBS@
|
||||
+CLOCK_GETTIME_LIB = @CLOCK_GETTIME_LIB@
|
||||
DEPLIBSS = $(LIB)/libss@LIB_EXT@
|
||||
DEPLIBCOM_ERR = $(LIB)/libcom_err@LIB_EXT@
|
||||
DEPLIBUUID = @DEPLIBUUID@
|
||||
--
|
||||
2.7.4
|
||||
|
||||
@@ -1,129 +0,0 @@
|
||||
From 3fb715b55426875902dfef3056b2cf7335953178 Mon Sep 17 00:00:00 2001
|
||||
From: Mike Frysinger <vapier@gentoo.org>
|
||||
Date: Fri, 19 May 2017 13:25:59 -0400
|
||||
Subject: [PATCH] include sys/sysmacros.h as needed
|
||||
|
||||
The minor/major/makedev macros are not entirely standard. glibc has had
|
||||
the definitions in sys/sysmacros.h since the start, and wants to move away
|
||||
from always defining them implicitly via sys/types.h (as this pollutes the
|
||||
namespace in violation of POSIX). Other C libraries have already dropped
|
||||
them. Since the configure script already checks for this header, use that
|
||||
to pull in the header in files that use these macros.
|
||||
|
||||
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
|
||||
|
||||
Upstream commit 3fb715b55426875902dfef3056b2cf7335953178
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
debugfs/debugfs.c | 3 +++
|
||||
lib/blkid/devname.c | 3 +++
|
||||
lib/blkid/devno.c | 3 +++
|
||||
lib/ext2fs/finddev.c | 3 +++
|
||||
lib/ext2fs/ismounted.c | 3 +++
|
||||
misc/create_inode.c | 4 ++++
|
||||
misc/mk_hugefiles.c | 3 +++
|
||||
7 files changed, 22 insertions(+)
|
||||
|
||||
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c
|
||||
index 059ddc39..453f5b52 100644
|
||||
--- a/debugfs/debugfs.c
|
||||
+++ b/debugfs/debugfs.c
|
||||
@@ -26,6 +26,9 @@ extern char *optarg;
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "debugfs.h"
|
||||
#include "uuid/uuid.h"
|
||||
diff --git a/lib/blkid/devname.c b/lib/blkid/devname.c
|
||||
index 3e2efa9d..671e781f 100644
|
||||
--- a/lib/blkid/devname.c
|
||||
+++ b/lib/blkid/devname.c
|
||||
@@ -36,6 +36,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
#include <time.h>
|
||||
|
||||
#include "blkidP.h"
|
||||
diff --git a/lib/blkid/devno.c b/lib/blkid/devno.c
|
||||
index aa6eb907..480030f2 100644
|
||||
--- a/lib/blkid/devno.c
|
||||
+++ b/lib/blkid/devno.c
|
||||
@@ -31,6 +31,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "blkidP.h"
|
||||
|
||||
diff --git a/lib/ext2fs/finddev.c b/lib/ext2fs/finddev.c
|
||||
index 311608de..62fa0dbe 100644
|
||||
--- a/lib/ext2fs/finddev.c
|
||||
+++ b/lib/ext2fs/finddev.c
|
||||
@@ -31,6 +31,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
#include <sys/mkdev.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "ext2_fs.h"
|
||||
#include "ext2fs.h"
|
||||
diff --git a/lib/ext2fs/ismounted.c b/lib/ext2fs/ismounted.c
|
||||
index bcac0f15..7d524715 100644
|
||||
--- a/lib/ext2fs/ismounted.c
|
||||
+++ b/lib/ext2fs/ismounted.c
|
||||
@@ -49,6 +49,9 @@
|
||||
#if HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
|
||||
#include "ext2_fs.h"
|
||||
#include "ext2fs.h"
|
||||
diff --git a/misc/create_inode.c b/misc/create_inode.c
|
||||
index ae22ff6f..8ce3fafa 100644
|
||||
--- a/misc/create_inode.c
|
||||
+++ b/misc/create_inode.c
|
||||
@@ -22,6 +22,10 @@
|
||||
#include <attr/xattr.h>
|
||||
#endif
|
||||
#include <sys/ioctl.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
+
|
||||
#include <ext2fs/ext2fs.h>
|
||||
#include <ext2fs/ext2_types.h>
|
||||
#include <ext2fs/fiemap.h>
|
||||
diff --git a/misc/mk_hugefiles.c b/misc/mk_hugefiles.c
|
||||
index 049c6f41..5882394d 100644
|
||||
--- a/misc/mk_hugefiles.c
|
||||
+++ b/misc/mk_hugefiles.c
|
||||
@@ -35,6 +35,9 @@ extern int optind;
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
+#ifdef HAVE_SYS_SYSMACROS_H
|
||||
+#include <sys/sysmacros.h>
|
||||
+#endif
|
||||
#include <libgen.h>
|
||||
#include <limits.h>
|
||||
#include <blkid/blkid.h>
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
config BR2_PACKAGE_E2FSPROGS
|
||||
menuconfig BR2_PACKAGE_E2FSPROGS
|
||||
bool "e2fsprogs"
|
||||
depends on BR2_USE_MMU # util-linux/libblkid
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
@@ -7,95 +7,63 @@ config BR2_PACKAGE_E2FSPROGS
|
||||
help
|
||||
The EXT2 file system utilities.
|
||||
|
||||
http://e2fsprogs.sf.net
|
||||
The following programs are always built and installed:
|
||||
badblocks chattr debugfs dumpe2fs e2freefrag e2fsck e2image
|
||||
e2undo e4crypt e4defrag filefrag fsck fuse2fs logsave lsattr
|
||||
mke2fs mklost+found resize2fs tune2fs
|
||||
|
||||
The uuid utilities (uuidd, uuidgen) are not built. Use the
|
||||
ones from util-linux, instead.
|
||||
|
||||
Other programs can be selected individually.
|
||||
|
||||
http://e2fsprogs.sourceforge.net
|
||||
|
||||
if BR2_PACKAGE_E2FSPROGS
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_BADBLOCKS
|
||||
bool "badblocks"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_CHATTR
|
||||
bool "chattr"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_DEBUGFS
|
||||
bool "debugfs"
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_DUMPE2FS
|
||||
bool "dumpe2fs"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2FREEFRAG
|
||||
bool "e2freefrag"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2FSCK
|
||||
bool "e2fsck"
|
||||
default y
|
||||
help
|
||||
ext2/ext3/ext4 file system debugger
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2IMAGE
|
||||
bool "e2image"
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2LABEL
|
||||
bool "e2label"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E2UNDO
|
||||
bool "e2undo"
|
||||
default y
|
||||
help
|
||||
Save critical ext2/ext3/ext4 filesystem metadata to a file
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_E4DEFRAG
|
||||
bool "e4defrag"
|
||||
depends on !BR2_nios2 # fallocate not implemented
|
||||
depends on !BR2_TOOLCHAIN_USES_UCLIBC # sync_file_range not impl
|
||||
help
|
||||
Online defragmenter for ext4 filesystem
|
||||
|
||||
comment "e4defrag needs a glibc or musl toolchain"
|
||||
depends on !BR2_nios2
|
||||
depends on BR2_TOOLCHAIN_USES_UCLIBC
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_FILEFRAG
|
||||
bool "filefrag"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_FSCK
|
||||
bool "fsck"
|
||||
default y
|
||||
depends on !BR2_PACKAGE_UTIL_LINUX_FSCK
|
||||
help
|
||||
Check and repair a Linux file system. This is a wrapper around
|
||||
the filesystem-specific fsck tools.
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_FUSE2FS
|
||||
bool "fuse2fs"
|
||||
depends on !BR2_STATIC_LIBS # libfuse
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libfuse
|
||||
select BR2_PACKAGE_LIBFUSE
|
||||
help
|
||||
FUSE file system client for ext2/ext3/ext4 file systems
|
||||
|
||||
comment "fuse2fs needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_LOGSAVE
|
||||
bool "logsave"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_LSATTR
|
||||
bool "lsattr"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_MKE2FS
|
||||
bool "mke2fs"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND
|
||||
bool "mklost+found"
|
||||
default y
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_RESIZE2FS
|
||||
bool "resize2fs"
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_TUNE2FS
|
||||
bool "tune2fs"
|
||||
default y
|
||||
select BR2_PACKAGE_E2FSPROGS_E2LABEL
|
||||
|
||||
config BR2_PACKAGE_E2FSPROGS_UUIDGEN
|
||||
bool "uuidgen"
|
||||
default y
|
||||
help
|
||||
ext2/ext3/ext4 file system resizer
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_HOST_E2FSPROGS
|
||||
bool "host e2fsprogs"
|
||||
select BR2_PACKAGE_HOST_UTIL_LINUX
|
||||
help
|
||||
The EXT2/3/4 file system utilities.
|
||||
|
||||
|
||||
@@ -1,2 +1,6 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.43.3/sha256sums.asc
|
||||
sha256 744ca4e9a8e6c943601b2744d1ae658e5f37d35b5ea5b1dea86985320bd87f37 e2fsprogs-1.43.3.tar.xz
|
||||
# From https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.43.9/sha256sums.asc
|
||||
sha256 926f8e8de1ffba55d791f21b71334e8a32b5227257ad370f2bf7e4396629e97f e2fsprogs-1.43.9.tar.xz
|
||||
# Locally calculated
|
||||
sha256 680f852df303874fe9c722283a7da571ae9a0477768df8af1e363298e2adc51e NOTICE
|
||||
sha256 032989b508f1a72ebee5b3417e55d06d473f9ee203e45ab11864a7e49cdec63d lib/ss/mit-sipb-copyright.h
|
||||
sha256 47182fe6631a32f271a15bbe210751b3825b7199f588879aac7d4804fc8b4b8f lib/et/internal.h
|
||||
|
||||
@@ -4,34 +4,55 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
E2FSPROGS_VERSION = 1.43.3
|
||||
E2FSPROGS_VERSION = 1.43.9
|
||||
E2FSPROGS_SOURCE = e2fsprogs-$(E2FSPROGS_VERSION).tar.xz
|
||||
E2FSPROGS_SITE = $(BR2_KERNEL_MIRROR)/linux/kernel/people/tytso/e2fsprogs/v$(E2FSPROGS_VERSION)
|
||||
E2FSPROGS_LICENSE = GPLv2, BSD-3c (libuuid), MIT-like with advertising clause (libss and libet)
|
||||
E2FSPROGS_LICENSE_FILES = NOTICE lib/uuid/COPYING lib/ss/mit-sipb-copyright.h lib/et/internal.h
|
||||
E2FSPROGS_LICENSE = GPL-2.0, MIT-like with advertising clause (libss and libet)
|
||||
E2FSPROGS_LICENSE_FILES = NOTICE lib/ss/mit-sipb-copyright.h lib/et/internal.h
|
||||
E2FSPROGS_INSTALL_STAGING = YES
|
||||
|
||||
# Use libblkid and libuuid from util-linux for host and target packages.
|
||||
# This prevents overriding them with e2fsprogs' ones, which may cause
|
||||
# problems for other packages.
|
||||
E2FSPROGS_DEPENDENCIES = host-pkgconf util-linux
|
||||
# we don't have a host-util-linux
|
||||
HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf
|
||||
HOST_E2FSPROGS_DEPENDENCIES = host-pkgconf host-util-linux
|
||||
|
||||
# If both e2fsprogs and busybox are selected, make certain e2fsprogs
|
||||
# wins the fight over who gets to have their utils actually installed
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
E2FSPROGS_DEPENDENCIES += busybox
|
||||
endif
|
||||
|
||||
# e4defrag doesn't build on older systems like RHEL5.x, and we don't
|
||||
# need it on the host anyway.
|
||||
# Disable fuse2fs as well to avoid carrying over deps, and it's unused
|
||||
HOST_E2FSPROGS_CONF_OPTS += --disable-defrag --disable-fuse2fs
|
||||
HOST_E2FSPROGS_CONF_OPTS = \
|
||||
--disable-defrag \
|
||||
--disable-e2initrd-helper \
|
||||
--disable-fuse2fs \
|
||||
--disable-libblkid \
|
||||
--disable-libuuid \
|
||||
--enable-symlink-install \
|
||||
--disable-testio-debug
|
||||
|
||||
# Set the binary directories to "/bin" and "/sbin" to override programs
|
||||
# installed by busybox.
|
||||
E2FSPROGS_CONF_OPTS = \
|
||||
$(if $(BR2_STATIC_LIBS),,--enable-elf-shlibs) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \
|
||||
--bindir=/bin \
|
||||
--sbindir=/sbin \
|
||||
$(if $(BR2_STATIC_LIBS),--disable-elf-shlibs,--enable-elf-shlibs) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),--enable-debugfs,--disable-debugfs) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),--enable-imager,--disable-imager) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),--enable-defrag,--disable-defrag) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_FSCK),--enable-fsck,--disable-fsck) \
|
||||
$(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),--enable-resizer,--disable-resizer) \
|
||||
--disable-uuidd \
|
||||
--disable-libblkid \
|
||||
--disable-libuuid \
|
||||
--enable-fsck \
|
||||
--disable-e2initrd-helper \
|
||||
--disable-testio-debug \
|
||||
--disable-rpath
|
||||
--disable-rpath \
|
||||
--enable-symlink-install
|
||||
|
||||
ifeq ($(BR2_PACKAGE_E2FSPROGS_FUSE2FS),y)
|
||||
E2FSPROGS_CONF_OPTS += --enable-fuse2fs
|
||||
@@ -56,17 +77,13 @@ HOST_E2FSPROGS_CONF_ENV += \
|
||||
ac_cv_header_magic_h=no \
|
||||
ac_cv_lib_magic_magic_file=no
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
# util-linux libuuid pulls in libintl if needed, so ensure we also
|
||||
# link against it, otherwise static linking fails
|
||||
E2FSPROGS_CONF_ENV += LIBS=-lintl
|
||||
endif
|
||||
|
||||
E2FSPROGS_MAKE_OPTS = LDCONFIG=true
|
||||
|
||||
E2FSPROGS_INSTALL_STAGING_OPTS = \
|
||||
DESTDIR=$(STAGING_DIR) \
|
||||
LDCONFIG=true \
|
||||
install-libs
|
||||
|
||||
E2FSPROGS_INSTALL_TARGET_OPTS = \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
LDCONFIG=true \
|
||||
@@ -76,90 +93,5 @@ define HOST_E2FSPROGS_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install install-libs
|
||||
endef
|
||||
|
||||
# binaries to keep or remove
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_BADBLOCKS) += usr/sbin/badblocks
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_CHATTR) += usr/bin/chattr
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_DUMPE2FS) += usr/sbin/dumpe2fs
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2FREEFRAG) += usr/sbin/e2freefrag
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2FSCK) += usr/sbin/e2fsck
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2LABEL) += usr/sbin/e2label
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2UNDO) += usr/sbin/e2undo
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E4DEFRAG) += usr/sbin/e4defrag
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_FILEFRAG) += usr/sbin/filefrag
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_FSCK) += usr/sbin/fsck
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LOGSAVE) += usr/sbin/logsave
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LSATTR) += usr/bin/lsattr
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_MKE2FS) += usr/sbin/mke2fs
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND) += usr/sbin/mklost+found
|
||||
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UUIDGEN) += usr/bin/uuidgen
|
||||
|
||||
# files to remove
|
||||
E2FSPROGS_TXTTARGETS_ = \
|
||||
usr/sbin/mkfs.ext[234] \
|
||||
usr/sbin/mkfs.ext4dev \
|
||||
usr/sbin/fsck.ext[234] \
|
||||
usr/sbin/fsck.ext4dev \
|
||||
usr/sbin/tune2fs
|
||||
|
||||
define E2FSPROGS_TARGET_REMOVE_UNNEEDED
|
||||
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_BINTARGETS_))
|
||||
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_TXTTARGETS_))
|
||||
endef
|
||||
|
||||
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_REMOVE_UNNEEDED
|
||||
|
||||
define E2FSPROGS_TARGET_MKE2FS_SYMLINKS
|
||||
ln -sf mke2fs $(TARGET_DIR)/usr/sbin/mkfs.ext2
|
||||
ln -sf mke2fs $(TARGET_DIR)/usr/sbin/mkfs.ext3
|
||||
ln -sf mke2fs $(TARGET_DIR)/usr/sbin/mkfs.ext4
|
||||
ln -sf mke2fs $(TARGET_DIR)/usr/sbin/mkfs.ext4dev
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_E2FSPROGS_MKE2FS),y)
|
||||
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_MKE2FS_SYMLINKS
|
||||
endif
|
||||
|
||||
define E2FSPROGS_TARGET_E2FSCK_SYMLINKS
|
||||
ln -sf e2fsck $(TARGET_DIR)/usr/sbin/fsck.ext2
|
||||
ln -sf e2fsck $(TARGET_DIR)/usr/sbin/fsck.ext3
|
||||
ln -sf e2fsck $(TARGET_DIR)/usr/sbin/fsck.ext4
|
||||
ln -sf e2fsck $(TARGET_DIR)/usr/sbin/fsck.ext4dev
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_E2FSPROGS_E2FSCK),y)
|
||||
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_E2FSCK_SYMLINKS
|
||||
endif
|
||||
|
||||
# If BusyBox is included, its configuration may supply its own variant
|
||||
# of ext2-related tools. Since Buildroot desires having full blown
|
||||
# variants take precedence (in this case, e2fsprogs), we want to remove
|
||||
# BusyBox's variant of e2fsprogs provided binaries. e2fsprogs targets
|
||||
# /usr/{bin,sbin} where BusyBox targets /{bin,sbin}. We will attempt to
|
||||
# remove BusyBox-generated ext2-related tools from /{bin,sbin}. We need
|
||||
# to do this in the pre-install stage to ensure we do not accidentally
|
||||
# remove e2fsprogs's binaries in usr-merged environments (ie. if they
|
||||
# are removed, they would be re-installed in this package's install
|
||||
# stage).
|
||||
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
||||
E2FSPROGS_DEPENDENCIES += busybox
|
||||
|
||||
define E2FSPROGS_REMOVE_BUSYBOX_APPLETS
|
||||
$(RM) -f $(TARGET_DIR)/bin/chattr
|
||||
$(RM) -f $(TARGET_DIR)/bin/lsattr
|
||||
$(RM) -f $(TARGET_DIR)/sbin/fsck
|
||||
$(RM) -f $(TARGET_DIR)/sbin/tune2fs
|
||||
$(RM) -f $(TARGET_DIR)/sbin/e2label
|
||||
endef
|
||||
E2FSPROGS_PRE_INSTALL_TARGET_HOOKS += E2FSPROGS_REMOVE_BUSYBOX_APPLETS
|
||||
endif
|
||||
|
||||
define E2FSPROGS_TARGET_TUNE2FS_SYMLINK
|
||||
ln -sf e2label $(TARGET_DIR)/usr/sbin/tune2fs
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_E2FSPROGS_TUNE2FS),y)
|
||||
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_TUNE2FS_SYMLINK
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user