File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ profile ?= release
2
+
3
+ ifneq ($(filter $(profile ) , dev debug) , )
4
+ KERNEL_TARGET := src/target/x86_64-unknown-none/debug/aero_kernel
5
+ else
6
+ KERNEL_TARGET := src/target/x86_64-unknown-none/release/aero_kernel
7
+ endif
8
+
1
9
jinx :
2
10
if [ ! -f " target/jinx" ]; then \
3
11
curl -Lo target/jinx https://github.com/mintsuki/jinx/raw/30e7d5487bff67a66dfba332113157a08a324820/jinx; \
@@ -15,7 +23,6 @@ distro: jinx
15
23
SOURCE_DIR := src
16
24
USERLAND_DIR := userland
17
25
USERLAND_TARGET := builds/userland/target/init
18
- KERNEL_TARGET := src/target/x86_64-unknown-none/release/aero_kernel
19
26
20
27
.PHONY : clean
21
28
clean :
26
33
cd src && cargo check
27
34
28
35
$(KERNEL_TARGET ) : $(shell find $(SOURCE_DIR ) -type f -not -path '$(SOURCE_DIR ) /target/* ')
29
- cd src && cargo build --package aero_kernel --release
36
+ cd src && cargo build --package aero_kernel --profile $( profile )
30
37
./build-support/mkiso.sh
31
38
32
39
$(USERLAND_TARGET ) : $(shell find $(USERLAND_DIR ) -type f -not -path '$(USERLAND_DIR ) /target/* ')
You can’t perform that action at this time.
0 commit comments