-
Notifications
You must be signed in to change notification settings - Fork 3
/
Kbuild
48 lines (37 loc) · 1.01 KB
/
Kbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# SPDX-License-Identifier: GPL-2.0-or-later
#
# Copyright(c) 2021 Sanpe <[email protected]>
#
include $(build_home)/platform.mk
include $(build_home)/compile.mk
#####################################
# Subproject #
#####################################
obj-y += doc/logo/
obj-y += doc/translate/
obj-y += arch/
obj-y += drivers/
obj-y += fs/
obj-y += init/
obj-y += ipc/
obj-y += kernel/
obj-y += lib/
obj-y += mm/
obj-y += net/
obj-$(CONFIG_KUSER) += usr/
#####################################
# Generate romdisk #
#####################################
romdisk_files := $(shell $(FIND) $(obj)/boot/romdisk/)
$(romdisk_files): $(obj)/doc/translate
$(obj)/boot/romdisk.cpio: $(romdisk_files) FORCE
$(call if_changed,cpio)
ifdef CONFIG_ROMDISK
$(obj)/drivers: $(obj)/boot/romdisk.cpio FORCE
targets += boot/romdisk.cpio
endif
lightcore-objs += built-in.o
elf-always-y += lightcore
lightcore.dump-obj += lightcore
dump-always-$(CONFIG_KERNEL_DUMP) += lightcore.dump
clean-subdir-y += boot/