📄 split_by_variant.sh
字号:
#!/bin/sh# ---------------------------------------------------------# Set the core module defines according to Core Module# ---------------------------------------------------------# ---------------------------------------------------------# Set up the Versatile type define# ---------------------------------------------------------mkdir -p ${obj}includevariant=versatilepbif [ "$1" == "" ]then echo "$0:: No parameters - using versatilepb_config" echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h variant=versatilepbelse case "$1" in versatile_config) echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h ;; versatilepb_config) echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h ;; versatileab_config) echo "#define CONFIG_ARCH_VERSATILE_AB" > ${obj}include/config.h variant=versatileab ;; *) echo "$0:: Unrecognised config - using versatilepb_config" echo "#define CONFIG_ARCH_VERSATILE_PB" > ${obj}include/config.h variant=versatilepb ;; esacfi# ---------------------------------------------------------# Link variant header to versatile.h# ---------------------------------------------------------if [ "$variant" != "versatile" ] then if [ -h ./include/configs/$variant.h ] then rm ./include/configs/$variant.h fi ln -s ./versatile.h ./include/configs/$variant.hfi# ---------------------------------------------------------# Complete the configuration# ---------------------------------------------------------$MKCONFIG -a versatile arm arm926ejs versatile NULL versatileecho "Variant:: $variant"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -