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+
19jinx :
210 if [ ! -f " target/jinx" ]; then \
311 curl -Lo target/jinx https://github.com/mintsuki/jinx/raw/30e7d5487bff67a66dfba332113157a08a324820/jinx; \
@@ -15,7 +23,6 @@ distro: jinx
1523SOURCE_DIR := src
1624USERLAND_DIR := userland
1725USERLAND_TARGET := builds/userland/target/init
18- KERNEL_TARGET := src/target/x86_64-unknown-none/release/aero_kernel
1926
2027.PHONY : clean
2128clean :
2633 cd src && cargo check
2734
2835$(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 )
3037 ./build-support/mkiso.sh
3138
3239$(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