开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
1 Star 0 Fork 27

liu_nix/MiniGUI

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (13)
标签 (10)
master
rel-4-0
rel-5-0
dev-4-1
rel-3-2
gpu-integration
drm
dev-3-4
complex-scripts
tmp-3-2-2
dev-3-2-2
rel-3-0
64b
ver-4-0-8
ver-5-0-2
ver-5-0-0
ver-4-0-7
dev-4-9-1
ver-4-0-5
ver-4-0-4
ver-4-0-2
ver-3-2-3
ver-4-0-0
master
分支 (13)
标签 (10)
master
rel-4-0
rel-5-0
dev-4-1
rel-3-2
gpu-integration
drm
dev-3-4
complex-scripts
tmp-3-2-2
dev-3-2-2
rel-3-0
64b
ver-4-0-8
ver-5-0-2
ver-5-0-0
ver-4-0-7
dev-4-9-1
ver-4-0-5
ver-4-0-4
ver-4-0-2
ver-3-2-3
ver-4-0-0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (13)
标签 (10)
master
rel-4-0
rel-5-0
dev-4-1
rel-3-2
gpu-integration
drm
dev-3-4
complex-scripts
tmp-3-2-2
dev-3-2-2
rel-3-0
64b
ver-4-0-8
ver-5-0-2
ver-5-0-0
ver-4-0-7
dev-4-9-1
ver-4-0-5
ver-4-0-4
ver-4-0-2
ver-3-2-3
ver-4-0-0
MiniGUI
/
scripts
/
Configure
MiniGUI
/
scripts
/
Configure
Configure 13.18 KB
一键复制 编辑 原始数据 按行查看 历史
Vincent Wei 提交于 2017年05月29日 12:20 +08:00 . initical commit
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 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
#! /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/g
p
}" Documentation/Configure.help)
if [ -z "$text" ]
then
echo; echo " Sorry, no help available for this option yet.";echo
else
(echo; echo "$text") | ${PAGER:-more}
fi
else
echo;
echo " Can't access the file Documentation/Configure.help which"
echo " should contain the help texts."
echo
fi
}
#
# readln reads a line into $ans.
#
# readln prompt default oldval
#
function readln () {
if [ "$DEFAULT" = "-d" -a -n "3ドル" ]; then
echo "1ドル"
ans=2ドル
else
echo -n "1ドル"
[ -z "3ドル" ] && echo -n "(NEW) "
if [ "$NONINTERACTIVE" = "y" ]; then
echo "1ドル" >> nodefaults
broken="y"
ans="n"
else
IFS='@' read ans || exit 1
[ -z "$ans" ] && ans=2ドル
fi
fi
}
#
# 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" >>$CONFIG
echo "#define 1ドル 1" >>$CONFIG_H
;;
"m")
echo "1ドル=m" >>$CONFIG
echo "#undef 1ドル" >>$CONFIG_H
echo "#define 1ドル_MODULE 1" >>$CONFIG_H
;;
"n")
echo "# 1ドル is not set" >>$CONFIG
echo "#undef 1ドル" >>$CONFIG_H
;;
esac
eval "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/?"
;;
esac
while :; do
readln "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ドル"
;;
esac
done
}
#
# tristate processes a tristate argument
#
# tristate question define
#
function tristate () {
if [ "$CONFIG_MODULES" != "y" ]; then
bool "1ドル" "2ドル"
else
old=$(eval echo "\${2ドル}")
def=${old:-'n'}
case "$def" in
"y") defprompt="Y/m/n/?"
;;
"m") defprompt="M/n/y/?"
;;
"n") defprompt="N/y/m/?"
;;
esac
while :; do
readln "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ドル"
;;
esac
done
fi
}
#
# 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=0
shift 2
while [ $# -gt 0 ]; do
case "1ドル" in
n)
define_tristate "$var" "n"
return
;;
m)
need_module=1
;;
esac
shift
done
if [ $need_module = 1 ]; then
if [ "$CONFIG_MODULES" = "y" ]; then
case "$def" in
"y" | "m") defprompt="M/n/?"
def="m"
;;
"n") defprompt="N/m/?"
;;
esac
while :; do
readln "$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 ) echo
echo " 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"
;;
esac
done
fi
else
tristate "$ques" "$var"
fi
}
function dep_bool () {
ques=1ドル
var=2ドル
shift 2
while [ $# -gt 0 ]; do
case "1ドル" in
m | n)
define_bool "$var" "n"
return
;;
esac
shift
done
bool "$ques" "$var"
}
function dep_mbool () {
ques=1ドル
var=2ドル
shift 2
while [ $# -gt 0 ]; do
case "1ドル" in
n)
define_bool "$var" "n"
return
;;
esac
shift
done
bool "$ques" "$var"
}
#
# define_int sets the value of a integer argument
#
# define_int define value
#
function define_int () {
echo "1ドル=2ドル" >>$CONFIG
echo "#define 1ドル (2ドル)" >>$CONFIG_H
eval "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 ]; then
min=4ドル
else
min=-10000000 # !!
fi
if [ $# -gt 4 ]; then
max=5ドル
else
max=10000000 # !!
fi
while :; do
readln "1ドル (2ドル) [$def] " "$def" "$old"
if expr \( \( $ans + 0 \) \>= $min \) \& \( $ans \<= $max \) >/dev/null 2>&1 ; then
define_int "2ドル" "$ans"
break
else
help "2ドル"
fi
done
}
#
# define_hex sets the value of a hexadecimal argument
#
# define_hex define value
#
function define_hex () {
echo "1ドル=2ドル" >>$CONFIG
echo "#define 1ドル 0x${2#*[x,X]}" >>$CONFIG_H
eval "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 :; do
readln "1ドル (2ドル) [$def] " "$def" "$old"
ans=${ans#*[x,X]}
if expr "$ans" : '[0-9a-fA-F][0-9a-fA-F]*$' > /dev/null; then
define_hex "2ドル" "$ans"
break
else
help "2ドル"
fi
done
}
#
# define_string sets the value of a string argument
#
# define_string define value
#
function define_string () {
echo "1ドル=\"2ドル\"" >>$CONFIG
echo "#define 1ドル\"2ドル\"" >>$CONFIG_H
eval "1ドル=\"2ドル\""
}
#
# define_mystring is a bit different with define_string
#
# define_mystring define value
#
function define_mystring () {
echo "1ドル=2ドル" >>$CONFIG
echo "#define 1ドル2ドル" >>$CONFIG_H
eval "1ドル=2ドル"
}
#
# string processes a string argument
#
# string question define default
#
function string () {
old=$(eval echo "\${2ドル}")
def=${old:-3ドル}
while :; do
if [ "$old" = "?" ]; then
readln "1ドル (2ドル) [$def] " "$def" ""
else
readln "1ドル (2ドル) [$def] " "$def" "$old"
fi
if [ "$ans" = "?" ]; then
help "2ドル"
else
break
fi
done
define_string "2ドル" "$ans"
}
function mystring () {
old=$(eval echo "\${2ドル}")
def=${old:-3ドル}
while :; do
if [ "$old" = "?" ]; then
readln "1ドル (2ドル) [$def] " "$def" ""
else
readln "1ドル (2ドル) [$def] " "$def" "$old"
fi
if [ "$ans" = "?" ]; then
help "2ドル"
else
break
fi
done
define_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 -- $choices
firstvar=2ドル
while [ -n "2ドル" ]; do
if [ -n "$names" ]; then
names="$names, 1ドル"
else
names="1ドル"
fi
if [ "$(eval echo \"\${2ドル}\")" = "y" ]; then
old=1ドル
def=1ドル
fi
shift; shift
done
val=""
while [ -z "$val" ]; do
ambg=n
readln "$question ($names) [$def] " "$def" "$old"
ans=$(echo $ans | tr a-z A-Z)
set -- $choices
while [ -n "1ドル" ]; do
name=$(echo 1ドル | tr a-z A-Z)
case "$name" in
"$ans"* | */"$ans"* )
case "$name" in
"$ans" | */"$ans"/* | \
"$ans"/* | */"$ans" )
val="2ドル"
break # exact match
;;
esac
if [ -n "$val" ]; then
echo;echo \
" Sorry, \"$ans\" is ambiguous; please enter a longer string."
echo
val=""
ambg=y
break
else
val="2ドル"
fi;;
esac
shift; shift
done
if [ "$val" = "" -a "$ambg" = "n" ]; then
help "$firstvar"
fi
done
set -- $choices
while [ -n "2ドル" ]; do
if [ "2ドル" = "$val" ]; then
echo " defined $val"
define_bool "2ドル" "y"
else
define_bool "2ドル" "n"
fi
shift; shift
done
}
CONFIG=.tmpconfig
CONFIG_H=.tmpconfig.h
trap "rm -f $CONFIG$CONFIG_H ; exit 1" 1 2
trap "rm -f nodefaults ; exit 1" 1 2
#
# Make sure we start out with a clean slate.
#
echo "#" > $CONFIG
echo "# Automatically generated make config: don't edit" >> $CONFIG
echo "#" >> $CONFIG
echo "/*" > $CONFIG_H
echo " * Automatically generated C config: don't edit" >> $CONFIG_H
echo " */" >> $CONFIG_H
echo "#define AUTOCONF_INCLUDED" >> $CONFIG_H
DEFAULT=""
NONINTERACTIVE=""
if [ "1ドル" = "-d" ] ; then
DEFAULT="-d"
shift
fi
if [ "1ドル" = "-D" ] ; then
# non interactive oldconfig
DEFAULT="-d"
NONINTERACTIVE="y"
shift
fi
CONFIG_IN=./config.in
if [ "1ドル" != "" ] ; then
CONFIG_IN=1ドル
fi
DEFAULTS=arch/$ARCH/defconfig
KERNTYPE=`sed -n 's_^/\* Kernel type \(.*\) \*/_1円_p' /boot/kernel.h 2>/dev/null`
RHCONFIG=`set +f; echo configs/*-$KERNTYPE.config`
if [ -f .config ]; then
DEFAULTS=.config
elif [ -f "$RHCONFIG" ]; then
DEFAULTS=$RHCONFIG
fi
if [ -f $DEFAULTS ]; then
echo "#"
echo "# Using defaults found in" $DEFAULTS
echo "#"
. $DEFAULTS
sed -e 's/# \(CONFIG_[^ ]*\) is not.*/1円=n/' <$DEFAULTS >.config-is-not.$$
. .config-is-not.$$
rm .config-is-not.$$
else
echo "#"
echo "# No defaults found"
echo "#"
fi
. $CONFIG_IN
rm -f .config.old
if [ -f .config ]; then
mv .config .config.old
fi
mv .tmpconfig .config
echo
echo "*** End of MiniGUI kernel configuration."
echo "*** Check the top-level Makefile for additional configuration."
if [ ! -f .hdepend -o "$CONFIG_MODVERSIONS" = "y" ] ; then
echo "*** Next, you must run 'make dep'."
else
echo "*** Next, you may run 'make bzImage', 'make bzdisk', or 'make install'."
fi
echo
if [ "$broken" = "y" ] ; then
echo "The following defaults are missing:"
cat nodefaults
exit 1
fi
exit 0
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

MiniGUI 是一个自由软件项目。其目标是提供一个快速、稳定、跨操作系统的图形用户界面(GUI)支持系统,尤其是基于 Linux/uClinux、eCos 以及其他传统 RTOS(如 VxWorks、ThreadX、uC/OS-II、Nucleus 等)的实时嵌入式操作系统。
暂无标签
GPL-3.0
使用 GPL-3.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/liunix61/MiniGUI.git
git@gitee.com:liunix61/MiniGUI.git
liunix61
MiniGUI
MiniGUI
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /