Redis is working with patches and also copy a redis.conf to build dir

master
Jiajie Chen 6 years ago
parent 41d8f344a3
commit 81a1f9356c

@ -82,10 +82,11 @@ endif
redis:
ifneq ($(arch), riscv64)
ifneq ($(shell uname), Darwin)
mkdir -p $(out_dir)
@mkdir -p $(out_dir)
@cd redis && make arch=$(arch) all
@cp redis/build/$(arch)/redis-server $(out_dir)/redis-server
@cp redis/build/$(arch)/redis-cli $(out_dir)/redis-cli
@cp redis/redis.conf $(out_dir)/redis.conf
endif
endif

@ -23,6 +23,8 @@ $(redis_dir): $(redis_tarball_path)
$(redis_dir)/src/redis-server: $(redis_dir)
# we do not support epoll at the time
sed -i 's/#define HAVE_EPOLL 1//' $(redis_dir)/src/config.h
# our accept does not have backlog
sed -i 's/#define MAX_ACCEPTS_PER_CALL 1000/#define MAX_ACCEPTS_PER_CALL 1/' $(redis_dir)/src/networking.c
cd $(redis_dir) && make CC=$(cc) MALLOC=libc
$(bin_server_unstripped): $(redis_dir)/src/redis-server

@ -0,0 +1 @@
protected-mode no
Loading…
Cancel
Save