Skip to content

Commit 9123669

Browse files
committed
Place binaries in ./bin not ./build
Signed-off-by: Rolf Neugebauer <[email protected]>
1 parent b70842a commit 9123669

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
/build
1+
/bin
22
*.img
33
*.iso
44
*-cmdline
55
*-kernel
6-
*-state
6+
*-state

Dockerfile.linuxkit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM scratch
22
COPY ./c/build/* /usr/bin/
3-
COPY ./build/virtsock_stress.linux /usr/bin/virtsock_stress
3+
COPY ./bin/virtsock_stress.linux /usr/bin/virtsock_stress

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,32 @@ build-in-container: $(DEPS) clean
55
@echo "+ $@"
66
@docker build -t virtsock-build -f ./Dockerfile.build .
77
@docker run --rm \
8-
-v ${CURDIR}/build:/go/src/github.com/linuxkit/virtsock/build \
8+
-v ${CURDIR}/bin:/go/src/github.com/linuxkit/virtsock/bin \
99
virtsock-build
1010

1111
build-binaries: vsudd virtsock_stress
12-
virtsock_stress: build/virtsock_stress.darwin build/virtsock_stress.linux build/virtsock_stress.exe
13-
vsudd: build/vsudd.linux
12+
virtsock_stress: bin/virtsock_stress.darwin bin/virtsock_stress.linux bin/virtsock_stress.exe
13+
vsudd: bin/vsudd.linux
1414

15-
build/vsudd.linux: $(DEPS)
15+
bin/vsudd.linux: $(DEPS)
1616
@echo "+ $@"
1717
GOOS=linux GOARCH=amd64 \
1818
go build -o $@ -buildmode pie --ldflags '-s -w -extldflags "-static"' \
1919
cmd/vsudd/main.go cmd/vsudd/vsyslog.go
2020

21-
build/virtsock_stress.linux: $(DEPS)
21+
bin/virtsock_stress.linux: $(DEPS)
2222
@echo "+ $@"
2323
GOOS=linux GOARCH=amd64 \
2424
go build -o $@ -buildmode pie --ldflags '-s -w -extldflags "-static"' \
2525
cmd/virtsock_stress/virtsock_stress.go cmd/virtsock_stress/common_hvsock.go cmd/virtsock_stress/common_vsock.go cmd/virtsock_stress/common_linux.go
2626

27-
build/virtsock_stress.darwin: $(DEPS)
27+
bin/virtsock_stress.darwin: $(DEPS)
2828
@echo "+ $@"
2929
GOOS=darwin GOARCH=amd64 \
3030
go build -o $@ --ldflags '-extldflags "-fno-PIC"' \
3131
cmd/virtsock_stress/virtsock_stress.go cmd/virtsock_stress/common_vsock.go cmd/virtsock_stress/common_darwin.go
3232

33-
build/virtsock_stress.exe: $(DEPS)
33+
bin/virtsock_stress.exe: $(DEPS)
3434
@echo "+ $@"
3535
GOOS=windows GOARCH=amd64 \
3636
go build -o $@ cmd/virtsock_stress/virtsock_stress.go cmd/virtsock_stress/common_hvsock.go cmd/virtsock_stress/common_windows.go
@@ -43,7 +43,7 @@ hvtest-efi.iso: build-in-container Dockerfile.linuxkit hvtest.yml
4343
moby build -output iso-efi hvtest.yml
4444

4545
clean:
46-
rm -rf build
46+
rm -rf bin c/build
4747

4848
fmt:
4949
@echo "+ $@"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ This should create a directory called `./hvtest-state`.
3737
Run the server in the VM and client on the host:
3838
```
3939
linux$ virtsock_stress -s -v 1
40-
macos$ ./build/virtsock_stress.darwin -c 3 -m hyperkit:./hvtest-state -v 1
40+
macos$ ./bin/virtsock_stress.darwin -c 3 -m hyperkit:./hvtest-state -v 1
4141
```
4242

4343
Run the server on the host and the client inside the VM:
4444
```
45-
macos$ ./build/virtsock_stress.darwin -s -m hyperkit:./hvtest-state -v 1
45+
macos$ ./bin/virtsock_stress.darwin -s -m hyperkit:./hvtest-state -v 1
4646
linux$ virtsock_stress -c 2 -v 1
4747
```
4848

0 commit comments

Comments
 (0)