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
|
endif
|
||||||
|
|
||||||
build_kernel:
|
build_kernel:
|
||||||
|
ifeq ($(BUILD_KERNEL), 1)
|
||||||
make -j$(shell nproc) --quiet -C Kernel build
|
make -j$(shell nproc) --quiet -C Kernel build
|
||||||
|
endif
|
||||||
|
|
||||||
build_userspace:
|
build_userspace:
|
||||||
ifeq ($(OSARCH), amd64)
|
ifeq ($(OSARCH), amd64)
|
||||||
|
ifeq ($(BUILD_USERSPACE), 1)
|
||||||
make --quiet -C Userspace build
|
make --quiet -C Userspace build
|
||||||
cp -r Userspace/out/* initrd/
|
cp -r Userspace/out/* initrd/
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
build_drivers:
|
build_drivers:
|
||||||
ifeq ($(OSARCH), amd64)
|
ifeq ($(OSARCH), amd64)
|
||||||
|
ifeq ($(BUILD_DRIVERS), 1)
|
||||||
make --quiet -C Drivers build
|
make --quiet -C Drivers build
|
||||||
cp Drivers/out/* initrd/system/drivers/
|
cp Drivers/out/* initrd/system/drivers/
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
build_image:
|
build_image:
|
||||||
mkdir -p iso_tmp_data
|
mkdir -p iso_tmp_data
|
||||||
|
@ -20,6 +20,10 @@ KERNEL_VERSION = pre-alpha-0.0.0.1
|
|||||||
# - grub - GRUB
|
# - grub - GRUB
|
||||||
BOOTLOADER=limine
|
BOOTLOADER=limine
|
||||||
|
|
||||||
|
BUILD_KERNEL = 1
|
||||||
|
BUILD_USERSPACE = 1
|
||||||
|
BUILD_DRIVERS = 1
|
||||||
|
|
||||||
# The path of the cross-compiler.
|
# The path of the cross-compiler.
|
||||||
COMPILER_PATH = tools/cross/bin
|
COMPILER_PATH = tools/cross/bin
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user