File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ # DEBOS_OPTS can be overridden with:
2+ # make DEBOS_OPTS=... all
3+
4+ # To build large images, the debos resource defaults are not sufficient. These
5+ # provide defaults that work for us as universally as we can manage.
6+ FAKEMACHINE_BACKEND = $(shell [ -c /dev/kvm ] && echo kvm || echo qemu)
7+ DEBOS_OPTS := --fakemachine-backend $(FAKEMACHINE_BACKEND ) --memory 1GiB --scratchsize 4GiB
8+ DEBOS := debos $(DEBOS_OPTS )
9+
10+ # Use http_proxy from the environment, or apt's http_proxy if set, to speed up
11+ # builds.
12+ http_proxy ?= $(shell apt-config dump --format '% v% n' Acquire::http::Proxy)
13+ export http_proxy
14+
15+ all : disk-ufs.img.gz disk-sdcard.img.gz
16+
17+ rootfs.tar.gz : debos-recipes/qualcomm-linux-debian-rootfs.yaml
18+ $(DEBOS ) $<
19+
20+ disk-ufs.img.gz : debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar.gz
21+ $(DEBOS ) $<
22+
23+ disk-sdcard.img.gz : debos-recipes/qualcomm-linux-debian-image.yaml rootfs.tar.gz
24+ $(DEBOS ) -t imagetype:sdcard $<
25+
26+ .PHONY : all
You can’t perform that action at this time.
0 commit comments