mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
Add options to disable compilation for kernel, userspace or drivers
This commit is contained in:
parent
dbee38f2ed
commit
61587abc9e
6
Makefile
6
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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user