summaryrefslogtreecommitdiffstats
path: root/rules/klibc.in
blob: 6956e0882a0a7e36a7f9d6fc6cd5330b79486d59 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
## SECTION=initramfs

#
# rules/klibc.in
#
menuconfig KLIBC
	bool
	prompt "klibc                         "
	help
	  This feature contains a collection of programs that are
	  linked against klibc. These duplicate some of the
	  functionality of a regular Linux toolset, but are typically
	  much smaller than their full-function counterparts. They are
	  intended for inclusion in initramfs images and can do the
	  network configuration outside the kernel and someting
	  special before mounting the final root filesystem.

if KLIBC

choice
	prompt "link klibc programs"
	help
	  You can select how to link the klibc programs.

	  There are two possibilities, either links shared or
	  static. When linking statically the klibc is linked into
	  each program. Select this if you only have a few
	  programs. On the other hand if you have many tools a
	  dynamically linked klibc saves some space.

config KLIBC_SHARED
	bool "shared"

config KLIBC_STATIC
	bool "static"

endchoice

config KLIBC_DASH
	bool
	prompt "dash"
	help
	  install a minimum shell (dash) under /bin/sh

config KLIBC_INIT
	string
	prompt "create a link from /init to the specified program"
	default "/kinit"
	help
	  A kernel will always start /init in the initramfs if not
	  otherwise specified (see kernel parameter "init="). With
	  this link ist possible to start any program you like.

menu "klibc utils"

config KLIBC_CAT
	bool
	prompt "cat"
	help
	  This is a "cat" command. It gets installed into /bin/cat

config KLIBC_CHROOT
	bool
	prompt "chroot"
	help
	  This is a "chroot" command. It gets installed into /bin/chroot

config KLIBC_CPIO
	bool
	prompt "cpio"
	help
	  This is a "cpio" command. It gets installed into /bin/cpio

config KLIBC_DD
	bool
	prompt "dd"
	help
	  This is a "dd" command. It gets installed into /bin/dd

config KLIBC_DMESG
	bool
	prompt "dmesg"
	help
	  This is a "dmesg" command. It gets installed into /bin/dmesg

config KLIBC_FALSE
	bool
	prompt "false"
	help
	  This is a "false" command. It gets installed into /bin/false

config KLIBC_HALT
	bool
	prompt "halt"
	help
	  This is a "halt" command. It gets installed into /bin/halt

config KLIBC_KILL
	bool
	prompt "kill"
	help
	  This is a "kill" command. It gets installed into /bin/kill

config KLIBC_LN
	bool
	prompt "ln"
	help
	  This is a "ln" command. It gets installed into /bin/ln

config KLIBC_LS
	bool
	prompt "ls"
	help
	  This is a "ls" command. It gets installed into /bin/ln

config KLIBC_MINIPS
	bool
	prompt "minips"
	help
	  This is a "minips" command. It gets installed into /bin/minips

config KLIBC_MKDIR
	bool
	prompt "mkdir"
	help
	  This is a "mkdir" command. It gets installed into /bin/mkdir

config KLIBC_MKFIFO
	bool
	prompt "mkfifo"
	help
	  This is a "mkfifo" command. It gets installed into /bin/mkfifo

config KLIBC_MKNOD
	bool
	prompt "mknod"
	help
	  This is a "mknod" command. It gets installed into /bin/mknod

config KLIBC_MOUNT
	bool
	prompt "mount"
	help
	  This is a "mount" command. It gets installed into /bin/mount

config KLIBC_NUKE
	bool
	prompt "nuke"
	help
	  This is a "nuke" command. It gets installed into /bin/nuke

config KLIBC_PIVOT_ROOT
	bool
	prompt "pivot_root"
	help
	  This is a "pivot_root" command. It gets installed into /bin/pivot_root

config KLIBC_POWEROFF
	bool
	prompt "poweroff"
	help
	  This is a "poweroff" command. It gets installed into /bin/poweroff

config KLIBC_READLINK
	bool
	prompt "readlink"
	help
	  This is a "readlink" command. It gets installed into /bin/readlink

config KLIBC_REBOOT
	bool
	prompt "reboot"
	help
	  This is a "reboot" command. It gets installed into /bin/reboot

config KLIBC_SLEEP
	bool
	prompt "sleep"
	help
	  This is a "sleep" command. It gets installed into /bin/sleep

config KLIBC_SYNC
	bool
	prompt "sync"
	help
	  This is a "sync" command. It gets installed into /bin/sync

config KLIBC_TRUE
	bool
	prompt "true"
	help
	  This is a "true" command. It gets installed into /bin/true

config KLIBC_UMOUNT
	bool
	prompt "umount"
	help
	  This is a "umount" command. It gets installed into /bin/umount

config KLIBC_UNAME
	bool
	prompt "uname"
	help
	  This is a "uname" command. It gets installed into /bin/uname

endmenu


menu "klibc init"

config KLIBC_FSTYPE
	bool
	prompt "fstype"
	help
	  This is a "fstype" command. It gets installed into /bin/fstype

config KLIBC_IPCONFIG
	bool
	prompt "ipconfig"
	help
	  This is a "ipconfig" command. It gets installed into /bin/ipconfig

config KLIBC_KINIT
	bool
	prompt "kinit"
	default y
	help
	  It will be installed into /kinit and is intended to
	  configure the network and mounting NFS based filesystems. It
	  will be controlled by the standard kernel command line,
	  anything else in /arch.cmd and anything else after a --
	  parameter.  All three parts gets combined into one parameter
	  list and will be used for configuration.

config KLIBC_NFSMOUNT
	bool
	prompt "nfsmount"
	help
	  This is a "nfsmount" command. It gets installed into /bin/nfsmount

config KLIBC_RESUME
	bool
	prompt "resume"
	help
	  This is a "resume" command. It gets installed into /bin/resume

config KLIBC_RUN_INIT
	bool
	prompt "run-init"
	default y
	help
	  It will be installed into /bin/run-init.
	  Usage: exec run-init [-c /dev/console] /real-root /sbin/init "$@"

	  This program should be called as the last thing in a shell
	  script acting as /init in an initramfs; it does the
	  following:

	   - Delete all files in the initramfs;
	   - Remounts /real-root onto the root filesystem;
	   - Chroots;
	   - Opens /dev/console;
	   - Spawns the specified init program (with arguments.)

endmenu

endif