This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
Makefile
42 lines (28 loc) · 1.89 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
DEFAULT_OPTS=-e HYPRIOT_HOSTNAME -e HYPRIOT_GROUPNAME -e HYPRIOT_USERNAME -e HYPRIOT_PASSWORD
default: build
build:
docker build -t rootfs-builder .
all: build amd64 i386 arm64-debian armhf-debian mips armhf-raspbian
amd64: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=amd64 -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder
i386: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=i386 -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder
arm64-debian: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=arm64 -e QEMU_ARCH=aarch64 -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder
armhf-debian: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=armhf -e QEMU_ARCH=arm -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder
armhf-raspbian: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=armhf -e QEMU_ARCH=arm -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -e VARIANT=raspbian -v $(shell pwd):/workspace --privileged rootfs-builder
mips: build
docker run --rm $(DEFAULT_OPTS) -e BUILD_ARCH=mips -e QEMU_ARCH=mips -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder
shell: build
docker run --rm -ti -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace --privileged rootfs-builder bash
test: build
docker run --rm -ti $(DEFAULT_ENV) -e BUILD_ARCH=$(BUILD_ARCH) -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -e VARIANT -v $(shell pwd):/workspace --privileged rootfs-builder /builder/test.sh
testshell: build
docker run --rm -ti -e TRAVIS_TAG -e HYPRIOT_OS_VERSION -v $(shell pwd):/workspace -v $(shell pwd)/test:/test --privileged rootfs-builder bash
shellcheck: build
docker run --rm -ti -v $(shell pwd):/workspace rootfs-builder bash -c 'shellcheck builder/*.sh'
tag:
git tag ${TAG}
git push origin ${TAG}