同步操作将从 Gitee 极速下载/MiniGUI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /bin/sh## This script is used to configure the Linux kernel.## It was inspired by the challenge in the original Configure script# to ``do something better'', combined with the actual need to ``do# something better'' because the old configure script wasn't flexible# enough.## Raymond Chen was the original author of Configure.# Michael Elizabeth Chastain (mec@shout.net) is the current maintainer.## 050793 - use IFS='@' to get around a bug in a pre-version of bash-1.13# with an empty IFS.## 030995 (storner@osiris.ping.dk) - added support for tri-state answers,# for selecting modules to compile.## 180995 Bernhard Kaindl (bkaindl@ping.at) - added dummy functions for# use with a config.in modified for make menuconfig.## 301195 (boldt@math.ucsb.edu) - added help text support## 281295 Paul Gortmaker - make tri_state functions collapse to boolean# if module support is not enabled.## 010296 Aaron Ucko (ucko@vax1.rockhurst.edu) - fix int and hex to accept# arbitrary ranges## 150296 Dick Streefland (dicks@tasking.nl) - report new configuration# items and ask for a value even when doing a "make oldconfig"## 200396 Tom Dyas (tdyas@eden.rutgers.edu) - when the module option is# chosen for an item, define the macro <option_name>_MODULE## 090397 Axel Boldt (boldt@math.ucsb.edu) - avoid ? and + in regular# expressions for GNU expr since version 1.15 and up use \? and \+.## 300397 Phil Blundell (pjb27@cam.ac.uk) - added support for min/max# arguments to "int", allow dep_tristate to take a list of dependencies# rather than just one.## 090398 Axel Boldt (boldt@math.ucsb.edu) - allow for empty lines in help# texts.## 102598 Michael Chastain (mec@shout.net) - put temporary files in# current directory, not in /tmp.## 24 January 1999, Michael Elizabeth Chastain, <mec@shout.net># - Improve the exit message (Jeff Ronne).## Make sure we're really running bash.## I would really have preferred to write this script in a language with# better string handling, but alas, bash is the only scripting language# that I can be reasonable sure everybody has on their linux machine.#[ -z "$BASH" ] && { echo "Configure requires bash" 1>&2; exit 1; }# Disable filename globbing once and for all.# Enable function cacheing.set -f -h## Dummy functions for use with a config.in modified for menuconf#function mainmenu_option () {:}function mainmenu_name () {:}function endmenu () {:}## help prints the corresponding help text from Configure.help to stdout## help variable#function help () {if [ -f Documentation/Configure.help ]then#first escape regexp special characters in the argument:var=$(echo "1ドル"|sed 's/[][\/.^$*]/\\&/g')#now pick out the right help text:text=$(sed -n "/^$var[ ]*\$/,\${/^$var[ ]*\$/c\\${var}:\\/^#/b/^[^ ]/q/<file:\\([^>]*\\)>/s//\\1/gp}" Documentation/Configure.help)if [ -z "$text" ]thenecho; echo " Sorry, no help available for this option yet.";echoelse(echo; echo "$text") | ${PAGER:-more}fielseecho;echo " Can't access the file Documentation/Configure.help which"echo " should contain the help texts."echofi}## readln reads a line into $ans.## readln prompt default oldval#function readln () {if [ "$DEFAULT" = "-d" -a -n "3ドル" ]; thenecho "1ドル"ans=2ドルelseecho -n "1ドル"[ -z "3ドル" ] && echo -n "(NEW) "if [ "$NONINTERACTIVE" = "y" ]; thenecho "1ドル" >> nodefaultsbroken="y"ans="n"elseIFS='@' read ans || exit 1[ -z "$ans" ] && ans=2ドルfifi}## comment does some pretty-printing## comment 'xxx'#function comment () {echo "*"; echo "* 1ドル" ; echo "*"(echo "" ; echo "#"; echo "# 1ドル" ; echo "#") >>$CONFIG(echo "" ; echo "/*"; echo " * 1ドル" ; echo " */") >>$CONFIG_H}## define_bool sets the value of a boolean argument## define_bool define value#function define_bool () {define_tristate 1ドル 2ドル}function define_tristate () {case "2ドル" in"y")echo "1ドル=y" >>$CONFIGecho "#define 1ドル 1" >>$CONFIG_H;;"m")echo "1ドル=m" >>$CONFIGecho "#undef 1ドル" >>$CONFIG_Hecho "#define 1ドル_MODULE 1" >>$CONFIG_H;;"n")echo "# 1ドル is not set" >>$CONFIGecho "#undef 1ドル" >>$CONFIG_H;;esaceval "1ドル=2ドル"}## bool processes a boolean argument## bool question define#function bool () {old=$(eval echo "\${2ドル}")def=${old:-'n'}case "$def" in"y" | "m") defprompt="Y/n/?"def="y";;"n") defprompt="N/y/?";;esacwhile :; doreadln "1ドル (2ドル) [$defprompt] " "$def" "$old"case "$ans" in[yY] | [yY]es ) define_bool "2ドル" "y"break;;[nN] | [nN]o ) define_bool "2ドル" "n"break;;* ) help "2ドル";;esacdone}## tristate processes a tristate argument## tristate question define#function tristate () {if [ "$CONFIG_MODULES" != "y" ]; thenbool "1ドル" "2ドル"elseold=$(eval echo "\${2ドル}")def=${old:-'n'}case "$def" in"y") defprompt="Y/m/n/?";;"m") defprompt="M/n/y/?";;"n") defprompt="N/y/m/?";;esacwhile :; doreadln "1ドル (2ドル) [$defprompt] " "$def" "$old"case "$ans" in[yY] | [yY]es ) define_tristate "2ドル" "y"break ;;[nN] | [nN]o ) define_tristate "2ドル" "n"break ;;[mM] ) define_tristate "2ドル" "m"break ;;* ) help "2ドル";;esacdonefi}## dep_tristate processes a tristate argument that depends upon# another option or options. If any of the options we depend upon is a# module, then the only allowable options are M or N. If all are Y, then# this is a normal tristate. This is used in cases where modules# are nested, and one module requires the presence of something# else in the kernel.## dep_tristate question define default ...#function dep_tristate () {old=$(eval echo "\${2ドル}")def=${old:-'n'}ques=1ドルvar=2ドルneed_module=0shift 2while [ $# -gt 0 ]; docase "1ドル" inn)define_tristate "$var" "n"return;;m)need_module=1;;esacshiftdoneif [ $need_module = 1 ]; thenif [ "$CONFIG_MODULES" = "y" ]; thencase "$def" in"y" | "m") defprompt="M/n/?"def="m";;"n") defprompt="N/m/?";;esacwhile :; doreadln "$ques ($var) [$defprompt] " "$def" "$old"case "$ans" in[nN] | [nN]o ) define_tristate "$var" "n"break ;;[mM] ) define_tristate "$var" "m"break ;;[yY] | [yY]es ) echoecho " This answer is not allowed, because it is not consistent with"echo " your other choices."echo " This driver depends on another one which you chose to compile"echo " as a module. This means that you can either compile this one"echo " as a module as well (with M) or leave it out altogether (N)."echo;;* ) help "$var";;esacdonefielsetristate "$ques" "$var"fi}function dep_bool () {ques=1ドルvar=2ドルshift 2while [ $# -gt 0 ]; docase "1ドル" inm | n)define_bool "$var" "n"return;;esacshiftdonebool "$ques" "$var"}function dep_mbool () {ques=1ドルvar=2ドルshift 2while [ $# -gt 0 ]; docase "1ドル" inn)define_bool "$var" "n"return;;esacshiftdonebool "$ques" "$var"}## define_int sets the value of a integer argument## define_int define value#function define_int () {echo "1ドル=2ドル" >>$CONFIGecho "#define 1ドル (2ドル)" >>$CONFIG_Heval "1ドル=2ドル"}## int processes an integer argument with optional limits## int question define default [min max]#function int () {old=$(eval echo "\${2ドル}")def=${old:-3ドル}if [ $# -gt 3 ]; thenmin=4ドルelsemin=-10000000 # !!fiif [ $# -gt 4 ]; thenmax=5ドルelsemax=10000000 # !!fiwhile :; doreadln "1ドル (2ドル) [$def] " "$def" "$old"if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; thendefine_int "2ドル" "$ans"breakelsehelp "2ドル"fidone}## define_hex sets the value of a hexadecimal argument## define_hex define value#function define_hex () {echo "1ドル=2ドル" >>$CONFIGecho "#define 1ドル 0x${2#*[x,X]}" >>$CONFIG_Heval "1ドル=2ドル"}## hex processes an hexadecimal argument## hex question define default#function hex () {old=$(eval echo "\${2ドル}")def=${old:-3ドル}def=${def#*[x,X]}while :; doreadln "1ドル (2ドル) [$def] " "$def" "$old"ans=${ans#*[x,X]}if expr "$ans" : '[0-9a-fA-F][0-9a-fA-F]*$' > /dev/null; thendefine_hex "2ドル" "$ans"breakelsehelp "2ドル"fidone}## define_string sets the value of a string argument## define_string define value#function define_string () {echo "1ドル=\"2ドル\"" >>$CONFIGecho "#define 1ドル\"2ドル\"" >>$CONFIG_Heval "1ドル=\"2ドル\""}## define_mystring is a bit different with define_string## define_mystring define value#function define_mystring () {echo "1ドル=2ドル" >>$CONFIGecho "#define 1ドル2ドル" >>$CONFIG_Heval "1ドル=2ドル"}## string processes a string argument## string question define default#function string () {old=$(eval echo "\${2ドル}")def=${old:-3ドル}while :; doif [ "$old" = "?" ]; thenreadln "1ドル (2ドル) [$def] " "$def" ""elsereadln "1ドル (2ドル) [$def] " "$def" "$old"fiif [ "$ans" = "?" ]; thenhelp "2ドル"elsebreakfidonedefine_string "2ドル" "$ans"}function mystring () {old=$(eval echo "\${2ドル}")def=${old:-3ドル}while :; doif [ "$old" = "?" ]; thenreadln "1ドル (2ドル) [$def] " "$def" ""elsereadln "1ドル (2ドル) [$def] " "$def" "$old"fiif [ "$ans" = "?" ]; thenhelp "2ドル"elsebreakfidonedefine_mystring "2ドル" "$ans"}## choice processes a choice list (1-out-of-n)## choice question choice-list default## The choice list has a syntax of:# NAME WHITESPACE VALUE { WHITESPACE NAME WHITESPACE VALUE }# The user may enter any unique prefix of one of the NAMEs and# choice will define VALUE as if it were a boolean option.# VALUE must be in all uppercase. Normally, VALUE is of the# form CONFIG_<something>. Thus, if the user selects <something>,# the CPP symbol CONFIG_<something> will be defined and the# shell variable CONFIG_<something> will be set to "y".#function choice () {question="1ドル"choices="2ドル"old=def=3ドル# determine default answer:names=""set -- $choicesfirstvar=2ドルwhile [ -n "2ドル" ]; doif [ -n "$names" ]; thennames="$names, 1ドル"elsenames="1ドル"fiif [ "$(eval echo \"\${2ドル}\")" = "y" ]; thenold=1ドルdef=1ドルfishift; shiftdoneval=""while [ -z "$val" ]; doambg=nreadln "$question ($names) [$def] " "$def" "$old"ans=$(echo $ans | tr a-z A-Z)set -- $choiceswhile [ -n "1ドル" ]; doname=$(echo 1ドル | tr a-z A-Z)case "$name" in"$ans"* | */"$ans"* )case "$name" in"$ans" | */"$ans"/* | \"$ans"/* | */"$ans" )val="2ドル"break # exact match;;esacif [ -n "$val" ]; thenecho;echo \" Sorry, \"$ans\" is ambiguous; please enter a longer string."echoval=""ambg=ybreakelseval="2ドル"fi;;esacshift; shiftdoneif [ "$val" = "" -a "$ambg" = "n" ]; thenhelp "$firstvar"fidoneset -- $choiceswhile [ -n "2ドル" ]; doif [ "2ドル" = "$val" ]; thenecho " defined $val"define_bool "2ドル" "y"elsedefine_bool "2ドル" "n"fishift; shiftdone}CONFIG=.tmpconfigCONFIG_H=.tmpconfig.htrap "rm -f $CONFIG$CONFIG_H ; exit 1" 1 2trap "rm -f nodefaults ; exit 1" 1 2## Make sure we start out with a clean slate.#echo "#" > $CONFIGecho "# Automatically generated make config: don't edit" >> $CONFIGecho "#" >> $CONFIGecho "/*" > $CONFIG_Hecho " * Automatically generated C config: don't edit" >> $CONFIG_Hecho " */" >> $CONFIG_Hecho "#define AUTOCONF_INCLUDED" >> $CONFIG_HDEFAULT=""NONINTERACTIVE=""if [ "1ドル" = "-d" ] ; thenDEFAULT="-d"shiftfiif [ "1ドル" = "-D" ] ; then# non interactive oldconfigDEFAULT="-d"NONINTERACTIVE="y"shiftfiCONFIG_IN=./config.inif [ "1ドル" != "" ] ; thenCONFIG_IN=1ドルfiDEFAULTS=arch/$ARCH/defconfigKERNTYPE=`sed -n 's_^/\* Kernel type \(.*\) \*/_1円_p' /boot/kernel.h 2>/dev/null`RHCONFIG=`set +f; echo configs/*-$KERNTYPE.config`if [ -f .config ]; thenDEFAULTS=.configelif [ -f "$RHCONFIG" ]; thenDEFAULTS=$RHCONFIGfiif [ -f $DEFAULTS ]; thenecho "#"echo "# Using defaults found in" $DEFAULTSecho "#". $DEFAULTSsed -e 's/# \(CONFIG_[^ ]*\) is not.*/1円=n/' <$DEFAULTS >.config-is-not.$$. .config-is-not.$$rm .config-is-not.$$elseecho "#"echo "# No defaults found"echo "#"fi. $CONFIG_INrm -f .config.oldif [ -f .config ]; thenmv .config .config.oldfimv .tmpconfig .configechoecho "*** End of MiniGUI kernel configuration."echo "*** Check the top-level Makefile for additional configuration."if [ ! -f .hdepend -o "$CONFIG_MODVERSIONS" = "y" ] ; thenecho "*** Next, you must run 'make dep'."elseecho "*** Next, you may run 'make bzImage', 'make bzdisk', or 'make install'."fiechoif [ "$broken" = "y" ] ; thenecho "The following defaults are missing:"cat nodefaultsexit 1fiexit 0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。