forked from qualcomm-linux/qcom-deb-images
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 1.04 KB
/
Makefile
File metadata and controls
30 lines (22 loc) · 1.04 KB
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
# DEBOS_OPTS can be overridden with:
# make DEBOS_OPTS=... all
# To build large images, the debos resource defaults are not sufficient. These
# provide defaults that work for us as universally as we can manage.
FAKEMACHINE_BACKEND = $(shell [ -c /dev/kvm ] && echo kvm || echo qemu)
DEBOS_OPTS := --fakemachine-backend $(FAKEMACHINE_BACKEND) --memory 1GiB --scratchsize 4GiB
DEBOS := debos $(DEBOS_OPTS)
# Use http_proxy from the environment, or apt's http_proxy if set, to speed up
# builds.
http_proxy ?= $(shell apt-config dump --format '%v%n' Acquire::http::Proxy)
export http_proxy
all: disk-ufs.img.gz disk-sdcard.img.gz
rootfs.tar.gz: debos-recipes/qualcomm-linux-debian-rootfs.yaml
$(DEBOS) $<
disk-ufs.img disk-ufs.img.gz: debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar.gz
$(DEBOS) $<
disk-sdcard.img.gz: debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar.gz
$(DEBOS) -t imagetype:sdcard $<
test: disk-ufs.img
# rootfs/ is a build artifact, so should not be scanned for tests
py.test-3 --ignore=rootfs
.PHONY: all test