ports: coreutils-minimal noux package/recipe

This variant of coreutils contains only the tools that are essential
for the sculpt scenario's initial state.
This commit is contained in:
Norman Feske 2017-12-08 21:29:37 +01:00 committed by Christian Helmuth
parent 366bba0227
commit cb24b1064d
7 changed files with 36 additions and 12 deletions

View File

@ -0,0 +1,9 @@
# keep 'coreutils/target.inc' but not 'coreutils/target.mk'
COREUTILS_SRC := src/noux-pkg/coreutils/target.inc
include $(REP_DIR)/recipes/src/coreutils/content.mk
content: src/noux-pkg/coreutils-minimal
src/noux-pkg/coreutils-minimal:
$(mirror_from_rep_dir)

View File

@ -0,0 +1 @@
2017-12-08 ec96fa22e1ebe33c8c312e20f844b80f6ce5b8c7

View File

@ -0,0 +1,3 @@
libc
noux
posix

View File

@ -1,3 +1,6 @@
# allow coreutils-minimal to exclude 'coreutils/target.mk'
COREUTILS_SRC ?= $(addprefix src/noux-pkg/coreutils/,target.inc target.mk)
content: src/noux-pkg/coreutils LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/coreutils)
@ -5,7 +8,7 @@ PORT_DIR := $(call port_dir,$(REP_DIR)/ports/coreutils)
src/noux-pkg/coreutils:
mkdir -p $@
cp -r $(PORT_DIR)/src/noux-pkg/coreutils/* $@
cp -r $(REP_DIR)/src/noux-pkg/coreutils/* $@
cp -r $(addprefix $(REP_DIR)/,$(COREUTILS_SRC)) $@
LICENSE:
cp $(PORT_DIR)/src/noux-pkg/coreutils/COPYING $@

View File

@ -0,0 +1,7 @@
BINARIES := cat cp ls mkdir mv rm rmdir sort tail md5sum
INSTALL_TAR_CONTENT := $(addprefix bin/,$(BINARIES))
PKG_DIR = $(call select_from_ports,coreutils)/src/noux-pkg/coreutils
include $(REP_DIR)/src/noux-pkg/coreutils/target.inc

View File

@ -0,0 +1,11 @@
CONFIGURE_ARGS = --disable-acl --disable-largefile --disable-xattr \
--disable-libcap --disable-nls
#
# Prevent building stdbuf because this involves the linkage of a shared
# libary, which is not supported by Noux, yet.
#
CPPFLAGS += -U__ELF__
MAKE_ENV += "MAKEINFO=true"
include $(call select_from_repositories,mk/noux.mk)

View File

@ -1,11 +1 @@
CONFIGURE_ARGS = --disable-acl --disable-largefile --disable-xattr \
--disable-libcap --disable-nls
#
# Prevent building stdbuf because this involves the linkage of a shared
# libary, which is not supported by Noux, yet.
#
CPPFLAGS += -U__ELF__
MAKE_ENV += "MAKEINFO=true"
include $(call select_from_repositories,mk/noux.mk)
include $(PRG_DIR)/target.inc