diff --git a/Makefile b/Makefile index 5669759d..06096a89 100644 --- a/Makefile +++ b/Makefile @@ -106,19 +106,25 @@ ifeq ($(BOOTLOADER), lynx) endif build_kernel: +ifeq ($(BUILD_KERNEL), 1) make -j$(shell nproc) --quiet -C Kernel build +endif build_userspace: ifeq ($(OSARCH), amd64) +ifeq ($(BUILD_USERSPACE), 1) make --quiet -C Userspace build cp -r Userspace/out/* initrd/ endif +endif build_drivers: ifeq ($(OSARCH), amd64) +ifeq ($(BUILD_DRIVERS), 1) make --quiet -C Drivers build cp Drivers/out/* initrd/system/drivers/ endif +endif build_image: mkdir -p iso_tmp_data diff --git a/Makefile.conf b/Makefile.conf index 17507b83..c79502d9 100644 --- a/Makefile.conf +++ b/Makefile.conf @@ -20,6 +20,10 @@ KERNEL_VERSION = pre-alpha-0.0.0.1 # - grub - GRUB BOOTLOADER=limine +BUILD_KERNEL = 1 +BUILD_USERSPACE = 1 +BUILD_DRIVERS = 1 + # The path of the cross-compiler. COMPILER_PATH = tools/cross/bin