mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
miragesdk: fix the compilation of the calf
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
This commit is contained in:
parent
725a6e8070
commit
5223c08d05
@ -19,7 +19,7 @@ system:
|
||||
command: [/usr/bin/binfmt, -dir, /etc/binfmt.d/, -mount, /binfmt_misc]
|
||||
- name: dhcp-client
|
||||
network_mode: host
|
||||
image: "mobylinux/dhcp-client:d545cabade15a525f56fb411641f2b0630357a53"
|
||||
image: "mobylinux/dhcp-client:da4e4b37ecd11ce411b0b45bde988281c2b35e3a"
|
||||
capabilities:
|
||||
- CAP_NET_ADMIN # to bring eth0 up
|
||||
- CAP_NET_RAW # to read /dev/eth0
|
||||
|
@ -36,9 +36,9 @@ enter-dev: .dev
|
||||
$(CALF_OBJS): $(CALF_FILES)
|
||||
mkdir -p obj/bin
|
||||
( cd obj && \
|
||||
tar -C ../calf -cf - $(CALF_FILES:calf/%=%) | \
|
||||
tar -C ../dhcp-client/calf -cf - $(CALF_FILES:dhcp-client/calf/%=%) | \
|
||||
docker run --rm -i --log-driver=none $(MIRAGE_COMPILE) -o dhcp-client-calf | \
|
||||
tar xf - ) && \
|
||||
tar xf - || exit 1) && \
|
||||
touch $@
|
||||
|
||||
$(OBJS): .build $(FILES)
|
||||
@ -47,7 +47,7 @@ $(OBJS): .build $(FILES)
|
||||
docker run --rm --net=none --log-driver=none -i $(IMAGE):build tar -cf - $(OBJS:obj/%=/%) | tar xf - ) && \
|
||||
touch $@
|
||||
|
||||
hash: Dockerfile.build Dockerfile.pkg $(FILES) $(CALF_FILES) .build
|
||||
hash: Makefile Dockerfile.build Dockerfile.pkg $(FILES) $(CALF_FILES) .build
|
||||
{ cat $^; \
|
||||
docker run --rm --entrypoint sh $(IMAGE):build -c 'cat /lib/apk/db/installed'; \
|
||||
docker run --rm --entrypoint sh $(IMAGE):build -c 'opam list'; } \
|
||||
|
Loading…
Reference in New Issue
Block a user