diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-02 17:12:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-06-02 17:13:35 +0200 |
commit | c222886f38ea1185c1b420f03d1e1fb377506af0 (patch) | |
tree | 0ba5c36cb5d1ad37e8969dc96d47181234a175c0 /scripts/create-sys | |
parent | 48758993b09a96f83c2bd190a5586421c90428e7 (diff) |
simplify adding new arch
Generate all data needed when adding a new arch or system.
Recognize any changes in target/*/systems as reported as bug by
Joerg.
Diffstat (limited to 'scripts/create-sys')
-rwxr-xr-x | scripts/create-sys | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/scripts/create-sys b/scripts/create-sys deleted file mode 100755 index 3f2dc2c81..000000000 --- a/scripts/create-sys +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -topdir=$(readlink -nf $(dirname $0)/.. 2>/dev/null || (cd $(dirname $0)/..; pwd -P)) -systems=$(grep -h config target/*/systems/*|cut -d " " -f 2) - -echo '' > $topdir/target/config/Config.in.system.default -for j in $systems;do - system=${j#ADK_TARGET_SYSTEM_} - systemu=$(echo $system|tr '[:upper:]' '[:lower:]') - printf "config ADK_$systemu\n" >> $topdir/target/config/Config.in.system.default - printf "\tboolean\n\n" >> $topdir/target/config/Config.in.system.default -done - -cat >> $topdir/target/config/Config.in.system.default << EOD -config ADK_TARGET_SYSTEM - string -EOD -for i in $systems;do - system=${i#ADK_TARGET_SYSTEM_} - systemu=$(echo $system|tr '[:upper:]' '[:lower:]') - system=$(echo $system|tr '[:upper:]_' '[:lower:]-') - system=$(echo $system|sed 's#x86-64#x86_64#') - printf "\tdefault \"${system}\" if ADK_$systemu\n" >> $topdir/target/config/Config.in.system.default -done - -for i in $(ls $topdir/target/);do - if [ -d "$topdir/target/$i/systems" ];then - cat $topdir/target/$i/systems/* > $topdir/target/$i/Config.in.systems 2>/dev/null - fi -done -exit 0 |