-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
71 lines (57 loc) · 2.01 KB
/
Copy pathMakefile
File metadata and controls
71 lines (57 loc) · 2.01 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SHELL := /usr/bin/env bash
TARGET ?= jflte
CONFIG ?= $(CURDIR)/configs/$(TARGET).env
OUT_DIR ?= $(CURDIR)/out/$(TARGET)
.PHONY: help sync-assets check-kernel initramfs bootimg overlay gui-host gui-host-build run-gui-host backup-recovery flash-recovery clean
help:
@echo "PRP standalone build system"
@echo "Targets:"
@echo " make sync-assets TARGET=jflte"
@echo " make check-kernel TARGET=jflte"
@echo " make initramfs TARGET=jflte"
@echo " make bootimg TARGET=jflte"
@echo " make overlay TARGET=jflte"
@echo " make gui-host TARGET=jflte (build + run host SDL simulator)"
@echo " make gui-host-build TARGET=jflte (build only)"
@echo " make backup-recovery TARGET=jflte"
@echo " make flash-recovery TARGET=jflte"
@echo " make clean TARGET=jflte"
@echo ""
@echo "Override vars:"
@echo " CONFIG=/abs/path/to/device.env"
@echo " OUT_DIR=/abs/path/to/output"
@echo " GUI_HOST_RUN=0 (for gui-host: build only, don't launch)"
sync-assets:
@mkdir -p "$(OUT_DIR)"
@./scripts/sync-runtime-assets.sh "$(CONFIG)" "$(OUT_DIR)"
check-kernel:
@mkdir -p "$(OUT_DIR)"
@./scripts/check-kernel-config.sh "$(CONFIG)" "$(OUT_DIR)"
initramfs:
@mkdir -p "$(OUT_DIR)"
@./scripts/build-initramfs.sh "$(CONFIG)" "$(OUT_DIR)"
bootimg:
@mkdir -p "$(OUT_DIR)"
@./scripts/build-bootimg.sh "$(CONFIG)" "$(OUT_DIR)"
overlay:
@mkdir -p "$(OUT_DIR)"
@./scripts/build-overlay.sh "$(CONFIG)" "$(OUT_DIR)"
gui-host:
@mkdir -p "$(OUT_DIR)"
@./scripts/build-gui-host.sh "$(CONFIG)" "$(OUT_DIR)"
@if [ "$${GUI_HOST_RUN:-1}" = "1" ]; then ./scripts/run-gui-host.sh "$(CONFIG)" "$(OUT_DIR)"; fi
gui-host-build:
@mkdir -p "$(OUT_DIR)"
@./scripts/build-gui-host.sh "$(CONFIG)" "$(OUT_DIR)"
run-gui-host:
@mkdir -p "$(OUT_DIR)"
@./scripts/run-gui-host.sh "$(CONFIG)" "$(OUT_DIR)"
backup-recovery:
@mkdir -p "$(OUT_DIR)"
@./scripts/backup-recovery.sh "$(CONFIG)" "$(OUT_DIR)"
flash-recovery:
@mkdir -p "$(OUT_DIR)"
@./scripts/flash-recovery.sh "$(CONFIG)" "$(OUT_DIR)"
clean:
@rm -rf "$(OUT_DIR)"
@echo "cleaned $(OUT_DIR)"