Kbuild.liblcd 1.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# Kernel build file for liblcd
# 

# Paths are all relative to the liblcd build dir (exported
# and available in this file as $(LIBLCD_BUILD_DIR)).

# This single line of magic makes it so we can do an out of src tree
# build. It has to do with how and where this Kbuild file is included
# in the kernel build system.
11
src = $(LCD_DOMAINS_TOP_SRC_DIR)
12

13 14 15 16 17 18 19 20 21 22 23 24
lib-y += $(addprefix liblcd/lcd-domains/, \
	allocator.o \
	boot_info.o \
	cap.o \
	console.o \
	create.o \
	enter_exit.o \
	heap.o \
	mem_itree.o \
	module_load.o \
	ram_map.o \
	sync_ipc.o \
25
	ioremap.o \
26
	trace.o \
27
	irq.o \
28
	)
29

30
lib-y += $(addprefix liblcd/lib/, \
31
	find_bit.o \
32 33 34 35 36 37
	kstrtox.o \
	string.o \
	vsprintf.o \
	ctype.o \
	hexdump.o \
	reciprocal_div.o \
38
	rbtree.o \
39 40 41
	crc16.o \
	parser.o \
	cmdline.o \
42 43
	dynamic_queue_limits.o \
	checksum.o \
44
	)
45

46
lib-y += $(addprefix liblcd/mm/, \
47 48 49 50 51
	slab.o \
	slab_common.o \
	util.o \
	)

52 53 54 55 56 57
lib-y += $(addprefix liblcd/arch/x86/lib/, \
      memset_64.o \
      memcpy_64.o \
      memmove_64.o \
      )

58
lib-y += liblcd/resolve.o
59 60

# code shared by kliblcd and isolated liblcd
61
lib-y += $(addprefix common/, \
62 63
	resource_tree.o \
	module_create.o \
64
        sync_ipc_poll.o \
65 66
	)

67
# Other libraries (libcap, libasync, libfipc) are linked in with an ar script.
68 69

# Extra includes
70
ccflags-y += $(LIBLCD_CFLAGS)