File: Kbuild

package info (click to toggle)
klibc 2.0.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 5,204 kB
  • sloc: ansic: 48,657; asm: 2,204; perl: 693; makefile: 220; sh: 177
file content (43 lines) | stat: -rw-r--r-- 1,156 bytes parent folder | download | duplicates (5)
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
#
# Kbuild file for kinit
#

# library part of kinit. Is used by programs in sub-directories (resume et al)
lib-y   := name_to_dev.o devname.o getarg.o capabilities.o
# use lib for kinit
static/kinit-y  := lib.a

static/kinit-y  += kinit.o do_mounts.o ramdisk_load.o initrd.o
static/kinit-y  += getintfile.o readfile.o xpio.o
static/kinit-y  += do_mounts_md.o do_mounts_mtd.o nfsroot.o

static/kinit-y  += ipconfig/
static/kinit-y  += nfsmount/
static/kinit-y  += run-init/
static/kinit-y  += fstype/
static/kinit-y  += resume/

static-y := static/kinit
shared-y := shared/kinit
shared/kinit-y := $(static/kinit-y)

# Additional include paths files
KLIBCCFLAGS += -I$(srctree)/$(src)/fstype \
	       -I$(srctree)/$(src)/ipconfig \
  	       -I$(srctree)/$(src)/nfsmount \
  	       -I$(srctree)/$(src)/resume \
 	       -I$(srctree)/$(src)/run-init

# Cleaning
targets += static/kinit static/kinit.g shared/kinit shared/kinit.g
subdir- := fstype ipconfig nfsmount resume run-init

# Clean deletes the static and shared dir
clean-dirs := static shared

# install binary
ifdef KLIBCSHAREDFLAGS
install-y := shared/kinit
else
install-y := static/kinit
endif