source: Config.in@ 982ae7c

experimental
Last change on this file since 982ae7c was cbe3f2b, checked in by George Boudreau <georgeb@…>, 18 years ago

Changes to Config.in

  • Property mode set to 100644
File size: 13.4 KB
RevLine 
[613d46b]1mainmenu "JHALFS Build Script Configuration"
2
3 choice
4 prompt "Use BOOK"
5 default BOOK_LFS
6 help
7 Select the BOOK/Build style you wish to configure.
8
9 config BOOK_LFS
10 bool "lfs"
11 config BOOK_CLFS
12 bool "clfs"
13 config BOOK_CLFS2
14 bool "clfs2"
15 config BOOK_HLFS
16 bool "hlfs"
17 config BOOK_BLFS
18 bool "blfs"
19 endchoice
20 config RUN_ME
21 string
22 default "./lfs" if BOOK_LFS
23 default "./clfs" if BOOK_CLFS
24 default "./clfs2" if BOOK_CLFS2
25 default "./clfs3" if BOOK_CLFS3
26 default "./hlfs" if BOOK_HLFS
27 default "./blfs" if BOOK_BLFS
28
29
30#--- Book version
31#menu "Book Version"
32 choice
33 prompt "Release"
34 default relSVN
35 config relSVN
36 bool "SVN"
37 config WORKING_COPY
38 bool "Working Copy"
39 config BRANCH
40 bool "Branch" if !BOOK_HLFS && !BOOK_CLFS2
41 endchoice
42
43 config BRANCH_ID
[65a2be6]44 string "Branch (mandatory)"
[f2382aa]45 default "**EDIT ME**"
[613d46b]46 depends BRANCH
[14f86de]47 help
48 #-- A list of valid branch ID's is available here.
49 # http://wiki.linuxfromscratch.org/alfs/wiki/SupportedBooks
[613d46b]50
51 config BOOK
[65a2be6]52 string "Loc of working copy (mandatory)"
[613d46b]53 default "**EDIT ME**"
54 depends WORKING_COPY
[14f86de]55 help
56 #--- The full path to a local copy of the book
57 #
[613d46b]58#endmenu
59
60#-----------------------
61
62comment "--------CLFS specific params---------"
63depends on BOOK_CLFS || BOOK_CLFS2
64
65 choice
66 prompt "Target architecture"
67 default ARCH_X86
68 depends BOOK_CLFS || BOOK_CLFS2
69 help
70 Choose a base architecture
71 config ARCH_X86
72 bool "x86"
73 config ARCH_MIPS
74 bool "mips" if !BOOK_CLFS2
75 config ARCH_PPC
76 bool "ppc" if !BOOK_CLFS2
77 config ARCH_SPARC
78 bool "sparc" if !BOOK_CLFS2
79 config ARCH_ALPHA
80 bool "alpha" if !BOOK_CLFS2
81 config ARCH_ARM
82 bool "arm" if !BOOK_CLFS
83 endchoice
84
85 choice
86 prompt "Library"
87 depends (BOOK_CLFS || BOOK_CLFS2)
88 default DATA_32 if !ARCH_ALPHA
89 default DATA_64 if ARCH_ALPHA
90 config DATA_32
91 bool "32-bit" if !ARCH_ALPHA
92 config DATA_64
93 bool "64-bit" if !ARCH_PPC && !ARCH_ARM && !(BOOK_CLFS2 && ARCH_X86)
94 config DATA_MULTI
95 bool "multilib" if !ARCH_ALPHA && !ARCH_ARM && !(BOOK_CLFS2 && ARCH_X86)
96 endchoice
97
98 choice
99 prompt "Target"
100 depends (BOOK_CLFS || BOOK_CLFS2) && ((ARCH_X86 && DATA_32) || ARCH_MIPS)
101 config PROC_i486
102 bool "i486" if ARCH_X86 && DATA_32
103 config PROC_i586
104 bool "i586" if ARCH_X86 && DATA_32
105 config PROC_i686
106 bool "i686" if ARCH_X86 && DATA_32
107 config PROC_mipsel
108 bool "mips -little endian" if ARCH_MIPS
109 config PROC_mips
110 bool "mips" if ARCH_MIPS
111 endchoice
112
113
114 config TARGET
115 string
116 depends DATA_32
117 default "i486-pc-linux-gnu" if ARCH_X86 && PROC_i486
118 default "i586-pc-linux-gnu" if ARCH_X86 && PROC_i586
119 default "i686-pc-linux-gnu" if ARCH_X86 && PROC_i686
120 default "mipsel-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
121 default "mips-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
122 default "powerpc-unknown-linux-gnu" if ARCH_PPC
123 default "sparc-unknown-linux-gnu" if ARCH_SPARC
124 default "arm-unknown-linux-gnu" if ARCH_ARM
125
126 config TARGET
127 string
128 depends DATA_64
129 default "x86_64-unknown-linux-gnu" if ARCH_X86
130 default "mips64el-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
131 default "mips64-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
132 default "sparc64-unknown-linux-gnu" if ARCH_SPARC
133 default "alpha-unknown-linux-gnu" if ARCH_ALPHA
134
135 config TARGET
136 string
137 depends DATA_MULTI
138 default "x86_64-unknown-linux-gnu" if ARCH_X86
139 default "mips64el-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
140 default "mips64-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
141 default "sparc64-unknown-linux-gnu" if ARCH_SPARC
142 default "powerpc64-unknown-linux-gnu" if ARCH_PPC
143
144
145 config TARGET32
146 string
147 depends DATA_MULTI
148 default "i686-pc-linux-gnu" if ARCH_X86
149 default "mipsel-unknown-linux-gnu" if ARCH_MIPS && PROC_mipsel
150 default "mips-unknown-linux-gnu" if ARCH_MIPS && PROC_mips
151 default "sparc-unknown-linux-gnu" if ARCH_SPARC
152 default "powerpc-unknown-linux-gnu" if ARCH_PPC
153
154 config ARCH
155 string
156 depends DATA_32
157 default "x86" if ARCH_X86
158 default "ppc" if ARCH_PPC
159 default "mips" if ARCH_MIPS
160 default "sparc" if ARCH_SPARC
161 default "arm" if ARCH_ARM
162
163 config ARCH
164 string
165 depends DATA_64
166 default "x86_64-64" if ARCH_X86
167 default "mips64-64" if ARCH_MIPS
168 default "sparc64-64" if ARCH_SPARC
169 default "alpha" if ARCH_ALPHA
170
171 config ARCH
172 string
173 depends DATA_MULTI
174 default "x86_64" if ARCH_X86
175 default "mips64" if ARCH_MIPS
176 default "sparc64" if ARCH_SPARC
177 default "ppc64" if ARCH_PPC
178
179
180 choice
181 prompt "Build method"
182 depends BOOK_CLFS
183 help
184 #--- What build method should be used: a chroot jail or minimal boot system
185 # Review the Cross-LFS book chap6 "TO BOOT OR CHROOT" for a full explanation.
186 config BUILD_CHROOT
187 bool "chroot"
188 config BUILD_BOOT
189 bool "boot"
190 endchoice
191 config METHOD
192 string
193 default "chroot" if BUILD_CHROOT
[a181405]194 default "boot" if BUILD_BOOT
[53f7156]195
[613d46b]196 config BOOT_CONFIG
[65a2be6]197 string "BOOT kernel config file (mandatory)"
[613d46b]198 default ""
199 depends on BUILD_BOOT
200 help
201 #--- If METHOD=boot, location of boot-kernel config file
202 # The config file will be copied to ${BUILD_DIR}/sources
203 # and renamed 'bootkernel-config'
204 # NOTE: this setting is required
205
206 config BOOT_KEYMAP
207 string "BOOT kernel keyboard map (see help)"
208 default "none"
209 depends on BUILD_BOOT
210 help
211 #--- Include the keymap in the kernel if defined. Path to the
212 # keymap file relative to /usr/share/kbd/keymaps/
213 # (e.g., i386/qwerty/us.map.gz) or "none" if you do not want
214 # a keymap included in the kernel
[14f86de]215
216 === Note about CLFS ===
217 If building the SVN or 1.0.0rc3 version using the boot method and
218 compiling the keymap into the kernel, you MUST to edit the "loadkeys"
219 command found in $JHALFSDIR/clfs-commands/boot/066-kernel to set the
220 full path in your host to the keymap file.
[613d46b]221
222comment "----------------------------------------"
223depends on BOOK_CLFS || BOOK_CLFS2
224
225
226comment "--------HLFS specific params---------"
227depends on BOOK_HLFS
228
229 config GRSECURITY_HOST
230 bool "Building on grsecurity enabled host?"
231 default n
232 depends on BOOK_HLFS
233 help
234 #--- If your build system has grsecurity patches applied
235 # you MUST enable this switch.
236
237 choice
238 prompt "Library"
239 depends on BOOK_HLFS
240 help
241 #--- Which library model to use: uClibc/glibc
242 config LIB_GLIBC
243 bool "glibc"
244 config LIB_UCLIBC
245 bool "uClibc"
246 endchoice
247 config MODEL
248 depends on BOOK_HLFS
249 string
250 default "glibc" if LIB_GLIBC
251 default "uclibc" if LIB_UCLIBC
252
253comment "-------------------------------------"
254depends on BOOK_HLFS
255
256#-----------------------
257
[cbe3f2b]258 config BUILDDIR
259 string "Build Directory"
260 default "/mnt/build_dir"
261 help
262 #--- The directory where the created system will be located.
263
264 config SRC_ARCHIVE
265 string "Package Archive Directory"
266 default "$SRC_ARCHIVE"
267 help
268 #--- A local archive for packages/file (not BUILDDIR/sources)
269 # Used only if GETPKG = 1
270 # Any missing file will be downloaded and archived here,
271 # if the user has the right priviledges.
272
[613d46b]273
274 config CONFIG_GETPKG
275 bool "Retrieve source files"
276 default n
277 help
278 #--- Download all packages and patches required by the book selected
279 # NOTE: Looks for files in the local archive defined by SRC_ARCHIVE
280 # first and if necessary retrieve them from the 'net.
281 # Files will be transfered to $BUILDDIR/sources.
282
283 config CONFIG_GETKERNEL
284 bool "Always retrieve kernel package"
285 default n
286 help
287 # Get the kernel package and patches even if no configuration file
288 # has been supplied?
289
290 config CONFIG_RUNMAKE
[21dab83]291 bool "Run the makefile"
[613d46b]292 default n
293 help
294 #--- Automatically run the makefile once it has been created
295
[21dab83]296 config CONFIG_REBUILD
297 bool "Rebuild files"
298 default n
299 help
300 Clean the build directory before performing any other task. The directory
301 is cleaned only if it was populated by a previous JHALFS run.
302
[613d46b]303 config CONFIG_STRIP
304 bool "Strip Installed Binaries/Libraries"
305 default y
306
307
308 config CONFIG_VIMLANG
309 bool "Install vim-lang package"
310 default y
311 help
312 #--- install the optional vim-lang package
313
314
315#------------------
316 config CONFIG_OPTIMIZE
317 bool "Use optimization "
318 default n
319 help
320 # Actual optimzation flags are defined in ./optimize/*
321 #
322 # WARNING: The use of build optimizations may be dangerous.
323 # You should know what you are doing and be sure that the
324 # optimization settings listed below are what you want.
325 # There are build issues or the system doesn't work as
326 # expected, please rebuild without optimizations before
327 # asking for support.
328
329 choice
330 prompt "OPT level "
331 default OPT_1
332 depends CONFIG_OPTIMIZE
333 help
334 ***Optimization values are set in optimize/* files
335
336 config OPT_1
337 bool "Final system only"
338 config OPT_2
339 bool "Both temp tools and final system"
340 endchoice
341 config OPTIMIZE
342 int
343 default "0" if !CONFIG_OPTIMIZE
344 default "1" if OPT_1
345 default "2" if OPT_2
346
347#------------------
348 config CONFIG_COMPARE
349 bool "Run comparison analysis on final stage"
350 default n
351 help
352 #--- Should some iterative comparison analysis by made?
353 # Unless you are familiar with ICA and/or FARCE do not select this option
354 #
355 # ICA and FARCE are analysis tools for comparing one
356 # build to the next. Builds mays differ from one iteration
357 # to another due to the build order and these tools try
358 # to ferret out those differences by examining the stored
359 # build logs and binary files.
360 #
361 # The scripts are well commented and can be found here ./extras/*
362 #
363
364 config ITERATIONS
365 int "Number of test runs (2,3,4,5)"
366 depends on CONFIG_COMPARE
[53f7156]367 range 2 5
[613d46b]368 default 3
369
370 config CONFIG_ICA
371 bool "ICA testing"
372 depends on CONFIG_COMPARE
373 default y
374 help
375 #--- Run ICA testing
376
377 config CONFIG_FARCE
378 bool "farce testing"
379 depends on CONFIG_COMPARE
380 default n
381 help
382 #--- Run farce testing
383#------------------
384
385 config CONFIG_TESTS
386 bool "Run testsuites"
387 default n
388 help
389 #--- Run test suites [1-3]
390 # 1 = only chapter06 Glibc, GCC and Binutils testsuites
391 # 2 = all chapter06 testsuites
392 # 3 = all chapter05 and chapter06 testsuites
393 # (in CLFS, alias to 2)
[7b7c34a]394
395 HLFS has no testsuites available in the toolchain phase
396 # 1 = only chapter06 Glibc, Butterfly-tookchain
397 # 2 = all chapter06 testsuites
398 #
[613d46b]399
400 choice
401 prompt "Tests ->"
402 depends !BOOK_CLFS2 && CONFIG_TESTS
403 default TEST_1
404
405 config TST_1
[00818a6]406 bool "Only chap06 Glibc/GCC/Binutils tests" if !BOOK_HLFS
407 config TST_1
408 bool "Only chap06 Glibc/Butterfly-toolchain" if BOOK_HLFS
[613d46b]409 config TST_2
410 bool "All chap06 testsuites"
411 config TST_3
[7c4730c]412 bool "All chap05/06 testsuites" if !BOOK_HLFS
[613d46b]413 endchoice
414 config TEST
415 int
[21dab83]416 default "0" if !CONFIG_TESTS
[613d46b]417 default "1" if TST_1
418 default "2" if TST_2
419 default "3" if TST_3
420
421 config CONFIG_REPORT
422 bool "Create SBU and disk usage report"
423 default y
424
425 config TIMEZONE
426 string "TimeZone"
427 default "America/New_York"
428 help
429 This will be copied to /etc/localtime
430
431
432 config LANG
433 string "Language"
434 default "$LANG"
435 help
436 #--- Language information in /etc/profile See <locale -a> for values
437
438 config LC_ALL
439 string "Language"
440 default "$LC_ALL"
441 depends on !BOOK_LFS
442 help
443 #--- Language information in /etc/profile See <locale -a> for values
444
445 choice
446 prompt "Groff page size"
447 default PAGE_LETTER
448 help
449 #--- page definition for groff letter/A4
450
451 config PAGE_LETTER
452 bool "letter"
453 config PAGE_A4
454 bool "A4"
455 endchoice
456 config PAGE
457 string
458 default "letter" if PAGE_LETTER
459 default "A4" if PAGE_A4
460
[cbe3f2b]461 config HAVE_FSTAB
462 bool "Use this fstab file"
463 default n
[613d46b]464 help
[cbe3f2b]465 #--- The location of fstab file (if empty, a template is created)
[613d46b]466 config FSTAB
467 string "Fstab file (optional)"
[cbe3f2b]468 default "***EDIT ME***"
469 depends on HAVE_FSTAB
[613d46b]470 help
[cbe3f2b]471 #--- The location of fstab file (if empty, a template is created)
[613d46b]472
[cbe3f2b]473 config CONFIG_BUILD_KERNEL
474 bool "Build the kernel"
475 default n
476 help
477 #--- Select this option if you wish to build the kernel.
478 #
479 # You will be prompted for the full path to the .config
480 # file. It will be copied to the 'sources' directory and
481 # rename kernel-config
[613d46b]482 config CONFIG
[cbe3f2b]483 string "Kernel config file"
484 default "***EDIT ME***"
485 depends on CONFIG_BUILD_KERNEL
[613d46b]486 help
487 #--- Fully qualified path to a kernel config file
488 # The config file will be copied to ${BUILD_DIR}/sources
489 # and renamed 'kernel-config'
490
491 config KEYMAP
492 string "Keyboard map"
493 default "none"
494 depends on !BOOK_LFS
495 help
496 #--- Include the keymap in the kernel if defined. Path to the
497 # keymap file relative to /usr/share/kbd/keymaps/
498 # (e.g., i386/qwerty/us.map.gz) or "none" if you do not want
499 # a keymap included in the kernel
500
501
502# convert CONFIG_XXXX n/y to XXXX 0/1
503
504 config COMPARE
505 int
506 default 0 if !CONFIG_COMPARE
507 default 1 if CONFIG_COMPARE
508
509 config GETPKG
510 int
511 default 0 if !CONFIG_GETPKG
512 default 1 if CONFIG_GETPKG
513
514 config GETKERNEL
515 int
516 default 0 if !CONFIG_GETKERNEL
517 default 1 if CONFIG_GETKERNEL
518
519 config RUNMAKE
520 int
521 default 0 if !CONFIG_RUNMAKE
522 default 1 if CONFIG_RUNMAKE
523
524 config STRIP
525 int
526 default 0 if !CONFIG_STRIP
527 default 1 if CONFIG_STRIP
528
529 config REPORT
530 int
531 default 0 if !CONFIG_REPORT
532 default 1 if CONFIG_REPORT
533
534 config VIMLANG
535 int
536 default 0 if !CONFIG_VIMLANG
537 default 1 if CONFIG_VIMLANG
538
539 config RUN_ICA
540 int
541 default 0 if !CONFIG_ICA
542 default 1 if CONFIG_ICA
543
544 config RUN_FARCE
545 int
546 default 0 if !CONFIG_FARCE
547 default 1 if CONFIG_FARCE
548
[21dab83]549 config CLEAN
550 int
551 default 0 if !CONFIG_REBUILD
552 default 1 if CONFIG_REBUILD
Note: See TracBrowser for help on using the repository browser.