Initial Commit
- initial default booting image
This commit is contained in:
24
package/libcap/Config.in
Normal file
24
package/libcap/Config.in
Normal file
@@ -0,0 +1,24 @@
|
||||
config BR2_PACKAGE_LIBCAP
|
||||
bool "libcap"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
This library implements the user-space interfaces to the
|
||||
POSIX 1003.1e capabilities available in Linux kernels. These
|
||||
capabilities are a partitioning of the all powerful root
|
||||
privilege into a set of distinct privileges.
|
||||
|
||||
https://sites.google.com/site/fullycapable/
|
||||
|
||||
if BR2_PACKAGE_LIBCAP
|
||||
|
||||
config BR2_PACKAGE_LIBCAP_TOOLS
|
||||
bool "install tools"
|
||||
help
|
||||
Install setcap, getcap, getpcaps and capsh tools.
|
||||
|
||||
For these tools to run properly, you should enable, in your
|
||||
kernel configuration, extended file attributes/security labels
|
||||
support for the file system type used on target system (e.g.
|
||||
CONFIG_EXT2_FS_XATTR and CONFIG_EXT2_FS_SECURITY for ext2).
|
||||
|
||||
endif
|
||||
5
package/libcap/libcap.hash
Normal file
5
package/libcap/libcap.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/sha256sums.asc
|
||||
sha256 0d621e562fd932ccf67b9660fb018e468a683d7b827541df27813228c996bb11 libcap-2.78.tar.xz
|
||||
|
||||
# Hash for license file:
|
||||
sha256 68467e731f4744bd6e0bb69e8df9c3a994e09cd6b203d0c41327ac6d079c581d License
|
||||
75
package/libcap/libcap.mk
Normal file
75
package/libcap/libcap.mk
Normal file
@@ -0,0 +1,75 @@
|
||||
################################################################################
|
||||
#
|
||||
# libcap
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBCAP_VERSION = 2.78
|
||||
LIBCAP_SITE = https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2
|
||||
LIBCAP_SOURCE = libcap-$(LIBCAP_VERSION).tar.xz
|
||||
LIBCAP_LICENSE = GPL-2.0 or BSD-3-Clause
|
||||
LIBCAP_LICENSE_FILES = License
|
||||
LIBCAP_CPE_ID_VALID = YES
|
||||
|
||||
LIBCAP_DEPENDENCIES = host-gperf
|
||||
LIBCAP_INSTALL_STAGING = YES
|
||||
|
||||
HOST_LIBCAP_DEPENDENCIES = host-gperf
|
||||
|
||||
LIBCAP_MAKE_FLAGS = \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
BUILD_CC="$(HOSTCC)" \
|
||||
BUILD_CFLAGS="$(HOST_CFLAGS)" \
|
||||
lib=lib \
|
||||
prefix=/usr \
|
||||
SHARED=$(if $(BR2_STATIC_LIBS),,yes) \
|
||||
PTHREADS=$(if $(BR2_TOOLCHAIN_HAS_THREADS),yes,)
|
||||
|
||||
LIBCAP_MAKE_DIRS = libcap
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCAP_TOOLS),y)
|
||||
LIBCAP_MAKE_DIRS += progs
|
||||
endif
|
||||
|
||||
define LIBCAP_BUILD_CMDS
|
||||
$(foreach d,$(LIBCAP_MAKE_DIRS), \
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/$(d) \
|
||||
$(LIBCAP_MAKE_FLAGS) all
|
||||
)
|
||||
endef
|
||||
|
||||
define LIBCAP_INSTALL_STAGING_CMDS
|
||||
$(foreach d,$(LIBCAP_MAKE_DIRS), \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/$(d) $(LIBCAP_MAKE_FLAGS) \
|
||||
DESTDIR=$(STAGING_DIR) install
|
||||
)
|
||||
endef
|
||||
|
||||
define LIBCAP_INSTALL_TARGET_CMDS
|
||||
$(foreach d,$(LIBCAP_MAKE_DIRS), \
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/$(d) $(LIBCAP_MAKE_FLAGS) \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
)
|
||||
endef
|
||||
|
||||
HOST_LIBCAP_MAKE_FLAGS = \
|
||||
DYNAMIC=yes \
|
||||
GOLANG=no \
|
||||
lib=lib \
|
||||
prefix=$(HOST_DIR) \
|
||||
RAISE_SETFCAP=no
|
||||
|
||||
define HOST_LIBCAP_BUILD_CMDS
|
||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
$(HOST_LIBCAP_MAKE_FLAGS)
|
||||
endef
|
||||
|
||||
# Set DESTDIR to a non-empty path, so that libcap's Makefile
|
||||
# does not trigger calls to ldconfig
|
||||
define HOST_LIBCAP_INSTALL_CMDS
|
||||
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_LIBCAP_MAKE_FLAGS) \
|
||||
DESTDIR=/ install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user