-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
86 lines (75 loc) · 3.69 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
all:
if [ ! -d $(BUILD_PATH)/cvitek/build/arch ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/arch; \
fi
cd $(BUILD_PATH)/cvitek/build/arch && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DRUN_TYPE=CVIRTOS \
-DRUN_ARCH=riscv64 \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
$(BUILD_PATH)/cvitek/arch
cd $(BUILD_PATH)/cvitek/build/arch && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
if [ ! -d $(BUILD_PATH)/cvitek/build/kernel ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/kernel; \
fi
cd $(BUILD_PATH)/cvitek/build/kernel && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DRUN_ARCH=riscv64 \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
$(BUILD_PATH)/cvitek/kernel
cd $(BUILD_PATH)/cvitek/build/kernel && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
if [ ! -d $(BUILD_PATH)/cvitek/build/common ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/common; \
fi
cd $(BUILD_PATH)/cvitek/build/common && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DRUN_ARCH=riscv64 \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
$(BUILD_PATH)/cvitek/common
cd $(BUILD_PATH)/cvitek/build/common && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
if [ ! -d $(BUILD_PATH)/cvitek/build/hal ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/hal; \
fi
cd $(BUILD_PATH)/cvitek/build/hal && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DRUN_ARCH=riscv64 \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DRUN_TYPE=CVIRTOS \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
-DBOARD_FPGA=n \
$(BUILD_PATH)/cvitek/hal/cv180x
cd $(BUILD_PATH)/cvitek/build/hal && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
if [ ! -d $(BUILD_PATH)/cvitek/build/driver ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/driver; \
fi
cd $(BUILD_PATH)/cvitek/build/driver && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DRUN_ARCH=riscv64 \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DRUN_TYPE=CVIRTOS \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DBOARD_FPGA=n \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
$(BUILD_PATH)/cvitek/driver
cd $(BUILD_PATH)/cvitek/build/driver && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
if [ ! -d $(BUILD_PATH)/cvitek/build/task ]; then \
mkdir -p $(BUILD_PATH)/cvitek/build/task; \
fi
cd $(BUILD_PATH)/cvitek/build/task && \
$(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) -G Ninja -DCHIP=cv180x \
-DRUN_ARCH=riscv64 \
-DRUN_TYPE=CVIRTOS \
-DTOP_DIR=$(BUILD_PATH)/cvitek \
-DBUILD_ENV_PATH=$(BUILD_PATH)/cvitek/build \
-DBOARD_FPGA=n \
-DCMAKE_TOOLCHAIN_FILE=$(BUILD_PATH)/cvitek/scripts/toolchain-riscv64-elf.cmake \
$(BUILD_PATH)/cvitek/task
cd $(BUILD_PATH)/cvitek/build/task && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target install -- -v
cd $(BUILD_PATH)/cvitek/build/task && $(MK_ENV) CROSS_COMPILE=$(CROSS_COMPILE) $(TARGET_CMAKE) --build . --target cvirtos.bin -- -v