-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 747 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (23 loc) · 747 Bytes
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
YOTTA=yt
all: ble400 microbit pca10031
ble400: dist .yotta.json
$(YOTTA) build --config config/ble400.json
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-ble400.hex
$(YOTTA) clean
microbit: dist .yotta.json
$(YOTTA) build
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-microbit.hex
$(YOTTA) clean
pca10031: dist .yotta.json
$(YOTTA) build --config config/pca10031.json
cp build/bbc-microbit-classic-gcc/source/ubit-ble-sniffer-combined.hex dist/btlejack-firmware-pca10031.hex
$(YOTTA) clean
dist:
@mkdir -p dist
@rm dist/* -rf
.yotta.json:
$(YOTTA) target bbc-microbit-classic-gcc
clean:
$(YOTTA) clean
rm dist/ -rf
rm .yotta.json