Skip to content

Commit 57a0bf1

Browse files
committed
ARM support #23
1 parent 9f8aa0a commit 57a0bf1

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ WORKDIR /build
1414

1515
RUN ./deps/readies/bin/getpy2
1616
RUN ./system-setup.py
17-
RUN make deps
18-
RUN make -j$(eval "$X_NPROC")
17+
RUN make deps SHOW=1
18+
RUN make build SHOW=1
1919

2020
#----------------------------------------------------------------------------------------------
2121
# FROM redisfab/redis-x64-${OSNICK}:5.0.5

Dockerfile.arm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ FROM redisfab/redis-${OSNICK}-xbuild:5.0.5 AS builder
88

99
RUN [ "cross-build-start" ]
1010

11-
ENV X_NPROC "cat /proc/cpuinfo|grep processor|wc -l"
12-
1311
ADD ./ /build
1412
WORKDIR /build
1513

1614
RUN ./deps/readies/bin/getpy2
1715
RUN ./system-setup.py
18-
RUN make deps
19-
RUN make -j$(eval "$X_NPROC")
16+
RUN make deps SHOW=1
17+
RUN make SHOW=1
2018

2119
RUN [ "cross-build-end" ]
2220

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $(BINDIR)/Makefile : CMakeLists.txt
3535
build: bindirs $(TARGET)
3636

3737
$(TARGET): bindirs deps $(BINDIR)/Makefile
38-
$(SHOW)$(MAKE) -C $(BINDIR)
38+
$(SHOW)$(MAKE) -C $(BINDIR) -j $(shell nproc)
3939
$(SHOW)cd bin; ln -sf ../$(TARGET) $(notdir $(TARGET))
4040

4141
clean:
@@ -53,7 +53,7 @@ setup:
5353
$(SHOW)./system-setup.py
5454

5555
fetch deps:
56-
$(SHOW)./get_deps.sh $(DEPS_FLAGS)
56+
$(SHOW)VERBOSE=$(SHOW) ./get_deps.sh $(DEPS_FLAGS)
5757

5858
#----------------------------------------------------------------------------------------------
5959

get_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# set -x
4-
set -e
4+
[[ $VERBOSE == 1 ]] && set -e
55

66
if [[ "$1" == "cpu" ]]; then
77
GPU=no

0 commit comments

Comments
 (0)