-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 1 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
##
## Copyright (c) 2022 Lucas Dietrich <[email protected]>
##
## SPDX-License-Identifier: Apache-2.0
##
# Choose the target to build
# BOARD="netduinoplus2"
# BOARD="lm3s6965evb"
BOARD="mps2_an385"
# Tell if disassembly files should be generated (could take additional time)
DO_DISASSEMBLY=0
# Application configuration
CONFIG_NETWORKING=1
CONFIG_FS=1
all: cmake make
cmake:
cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-arm-none-eabi.cmake \
-DBOARD=$(BOARD) -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DDO_DISASSEMBLY=$(DO_DISASSEMBLY) \
-DCONFIG_NETWORKING=$(CONFIG_NETWORKING) \
-DCONFIG_FS=$(CONFIG_FS)
cmake_lm3s6965evb:
cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-arm-none-eabi.cmake \
-DBOARD=lm3s6965evb -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DDO_DISASSEMBLY=$(DO_DISASSEMBLY) \
-DCONFIG_NETWORKING=0 \
-DCONFIG_FS=0
make:
make -C build --no-print-directory
qemu: make
make -C build qemu --no-print-directory
run: make
make -C build run --no-print-directory
clean:
rm -rf build