ports: src/bash-minimal noux package

This commit is contained in:
Norman Feske 2018-02-14 20:13:35 +01:00
parent 5d9eb55274
commit 1053d78201
7 changed files with 38 additions and 15 deletions

View File

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

View File

@ -0,0 +1 @@
2018-02-14 79db70c2f818a2e41ba051821bded822cd6dbd9a

View File

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

View File

@ -1,3 +1,5 @@
BASH_SRC ?= $(addprefix src/noux-pkg/bash/,target.inc target.mk)
content: src/noux-pkg/bash LICENSE
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/bash)
@ -5,7 +7,7 @@ PORT_DIR := $(call port_dir,$(REP_DIR)/ports/bash)
src/noux-pkg/bash:
mkdir -p $@
cp -a $(PORT_DIR)/src/noux-pkg/bash/* $@
cp -a $(REP_DIR)/src/noux-pkg/bash/* $@
cp -a $(addprefix $(REP_DIR)/,$(BASH_SRC)) $@
LICENSE:
cp $(PORT_DIR)/src/noux-pkg/bash/COPYING $@

View File

@ -0,0 +1,7 @@
BINARIES := bash
INSTALL_TAR_CONTENT := $(addprefix bin/,$(BINARIES))
PKG_DIR = $(call select_from_ports,bash)/src/noux-pkg/bash
include $(REP_DIR)/src/noux-pkg/bash/target.inc

View File

@ -0,0 +1,14 @@
CONFIGURE_ARGS = --without-bash-malloc
CFLAGS += -Dsh_xfree=free
#
# Do not expect the environment to be passed as third argument
# to the main function. The Genode startup code does only
# deliver 'argc' and 'argv'.
#
CFLAGS += -DNO_MAIN_ENV_ARG=1
# Prevent interactions with nonexisting tty driver
CFLAGS += -DNO_TTY_DRIVER
include $(call select_from_repositories,mk/noux.mk)

View File

@ -1,14 +1 @@
CONFIGURE_ARGS = --without-bash-malloc
CFLAGS += -Dsh_xfree=free
#
# Do not expect the environment to be passed as third argument
# to the main function. The Genode startup code does only
# deliver 'argc' and 'argv'.
#
CFLAGS += -DNO_MAIN_ENV_ARG=1
# Prevent interactions with nonexisting tty driver
CFLAGS += -DNO_TTY_DRIVER
include $(call select_from_repositories,mk/noux.mk)
include $(PRG_DIR)/target.inc