-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
58 lines (45 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# A master make file - currently just to help with build-depends and clean
#
SUBDIRS += docs/
SUBDIRS += debian/
SUBDIRS += firmware/
SUBDIRS += linux/
# The boards/* subdirs should probably be controlled from a boards/Makefile
# - maybe later
QEMUDIRS += boards/qemu_armhf/
QEMUDIRS += boards/qemu_i386/
SUBDIRS += $(QEMUDIRS)
BOARDDIRS += boards/raspberrypi2/
#BOARDDIRS += boards/sun4i-a10-cubieboard/
BOARDDIRS += boards/sun7i-a20-bananapi/
BOARDDIRS += boards/sun8i-h2-plus-orangepi-zero/
BOARDDIRS += boards/sun8i-h3-orangepi-lite/
BOARDDIRS += boards/sun8i-v3s-licheepi-zero/
SUBDIRS += $(BOARDDIRS)
# This is a list of files that only exist after any submodules are initialised
SUBMODULES += debian/Makefile
# A place that we needs to be removed during reallyclean
CACHEDIR = apt.cache/
all:
$(error This Makefile currently has no default build target)
# Perform simple tests that this repository is building correctly
# TODO
# - boot up all the emulatable platforms and confirm that they work
.PHONY: test
test: image
$(MAKE) -C docs
@echo Everything builds ok
$(MAKE) -C debian test
remove_cache:
rm -rf $(CACHEDIR)
reallyclean: remove_cache
build-depends clean reallyclean: $(SUBMODULES)
$(foreach dir,$(SUBDIRS),$(MAKE) -C $(dir) $@ &&) true
.PHONY: image
image: $(SUBMODULES)
$(foreach dir,$(BOARDDIRS),$(MAKE) -C $(dir) $@ &&) true
# Ensure that the submodules are actually present and up to date
.PHONY: $(SUBMODULES)
$(SUBMODULES):
git submodule update --init