Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scripts for Redis #35

Open
wants to merge 2 commits into
base: scripts
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions redis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/9pfs-rootfs/
/workdir/
32 changes: 32 additions & 0 deletions redis/Config.uk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Configure Redis server application for a build with bridged networking and
# using initrd to pass the root filesystem.
# Enable initrd / CPIO-related core components and configurations.
# Enable extendeded information for configuring network parameters.

config APPREDIS
bool "Configure Redis server application with initrd as rootfs"
default y

# Select application library (Redis). Use the server main function the
# application library. Other libraries, such as Musl or LWIP, are selected
# as dependencies of Redis.
select LIBREDIS
select LIBREDIS_SERVER
select LIBREDIS_SERVER_MAIN_FUNCTION
select LIBREDIS_LUA

# Select filesystem core components: vfscore, cpio, ramfs, devfs. For
# each select corresponding features. The other core components are
# selected as dependencies of Redis.
select LIBVFSCORE
select LIBVFSCORE_AUTOMOUNT_UP
select LIBRAMFS
select LIBUKCPIO
select LIBDEVFS
select LIBDEVFS_AUTOMOUNT
select LIBDEVFS_DEVSTDOUT

# Use extended information (einfo) for configuring network parameters.
# This component parses the configuration string in the command line:
# netdev.ip=172.44.0.2/24:172.44.0.1:::
select LIBUKNETDEV_EINFO_LIBPARAM
13 changes: 13 additions & 0 deletions redis/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
UK_ROOT ?= $(PWD)/workdir/unikraft
UK_BUILD ?= $(PWD)/workdir/build
UK_APP ?= $(PWD)
LIBS_BASE = $(PWD)/workdir/libs
UK_LIBS ?= $(LIBS_BASE)/musl:$(LIBS_BASE)/redis:$(LIBS_BASE)/lwip

.PHONY: all

all:
@$(MAKE) -C $(UK_ROOT) L=$(UK_LIBS) A=$(UK_APP) O=$(UK_BUILD)

$(MAKECMDGOALS):
@$(MAKE) -C $(UK_ROOT) L=$(UK_LIBS) A=$(UK_APP) O=$(UK_BUILD) $(MAKECMDGOALS)
Empty file added redis/Makefile.uk
Empty file.
Loading