From 2ddb4fb5fc550da97596607c3322137bfabd1c50 Mon Sep 17 00:00:00 2001 From: Sukru Senli Date: Thu, 27 Jan 2022 11:15:34 +0100 Subject: [PATCH] iop: genconfig: remove unsupported targets --- iop/scripts/genconfig.sh | 55 ++-------------------------------------- 1 file changed, 2 insertions(+), 53 deletions(-) diff --git a/iop/scripts/genconfig.sh b/iop/scripts/genconfig.sh index e0acf711c..ed962b988 100755 --- a/iop/scripts/genconfig.sh +++ b/iop/scripts/genconfig.sh @@ -13,12 +13,9 @@ function genconfig { export DEVELOPER=0 target="bogus" target_config_path="" - bcm27xx="target/linux/iopsys-bcm27xx" brcm63xx_arm="target/linux/iopsys-brcm63xx-arm" ramips="target/linux/iopsys-ramips" - mediatek="target/linux/iopsys-mediatek" econet="target/linux/iopsys-econet" - intel_mips="target/linux/intel_mips" x86="target/linux/iopsys-x86" armvirt="target/linux/iopsys-armvirt" @@ -114,21 +111,15 @@ function genconfig { iopsys_brcm63xx_arm=$(cd $brcm63xx_arm; ./genconfig) [ -e $ramips/genconfig ] && iopsys_ramips=$(cd $ramips; ./genconfig) - [ -e $mediatek/genconfig ] && - iopsys_mediatek=$(cd $mediatek; ./genconfig) [ -e $econet/genconfig ] && iopsys_econet=$(cd $econet; ./genconfig) - [ -e $intel_mips/genconfig ] && - iopsys_intel_mips=$(cd $intel_mips; ./genconfig) [ -e $x86/genconfig ] && iopsys_x86=$(cd $x86; ./genconfig) [ -e $armvirt/genconfig ] && iopsys_armvirt=$(cd $armvirt; ./genconfig) - [ -e $bcm27xx/genconfig ] && - iopsys_bcm27xx=$(cd $bcm27xx; ./genconfig) if [ "$profile" == "LIST" ]; then - for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_mediatek iopsys_econet iopsys_intel_mips iopsys_x86 iopsys_armvirt iopsys_bcm27xx; do + for list in iopsys_brcm63xx_arm iopsys_ramips iopsys_econet iopsys_x86 iopsys_armvirt; do echo "$list based boards:" for b in ${!list}; do echo -e "\t$b" @@ -153,14 +144,6 @@ function genconfig { fi done - for p in $iopsys_mediatek; do - if [ $p == $profile ]; then - target="iopsys_mediatek" - target_config_path="$mediatek/config" - return - fi - done - for p in $iopsys_econet; do if [ $p == $profile ]; then target="iopsys_econet" @@ -169,14 +152,6 @@ function genconfig { fi done - for p in $iopsys_intel_mips; do - if [ $p == $profile ]; then - target="intel_mips" - target_config_path="$intel_mips/config" - return - fi - done - for p in $iopsys_x86; do if [ $p == $profile ]; then target="iopsys_x86" @@ -192,15 +167,6 @@ function genconfig { return fi done - - for p in $iopsys_bcm27xx; do - if [ $p == $profile ]; then - target="iopsys_bcm27xx" - target_config_path="$bcm27xx/config" - return - fi - done - } git remote -v | grep -qE '(git@|ssh://)' && { @@ -352,32 +318,15 @@ function genconfig { echo "" >> .config fi - #special handling for intel_mips/iopsys_ramips which use TARGET_DEVICES - if [ "$target" = "intel_mips" ]; then - subtarget="xrx500" - echo "CONFIG_TARGET_${target}=y" >> .config - echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config - device=$(echo $BOARDTYPE | tr a-z A-Z) - echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${device}=y" >> .config - elif [ "$target" = "iopsys_ramips" ]; then + if [ "$target" = "iopsys_ramips" ]; then subtarget="mt7621" echo "CONFIG_TARGET_${target}=y" >> .config echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config - elif [ "$target" = "iopsys_mediatek" ]; then - subtarget="mt7622" - echo "CONFIG_TARGET_${target}=y" >> .config - echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config - echo "CONFIG_TARGET_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config elif [ "$target" = "iopsys_econet" ]; then subtarget="en7562" echo "CONFIG_TARGET_${target}=y" >> .config echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config - elif [ "$target" = "iopsys_bcm27xx" ]; then - subtarget="iopsys_bcm2711" - echo "CONFIG_TARGET_${target}=y" >> .config - echo "CONFIG_TARGET_${target}_${subtarget}=y" >> .config - echo "CONFIG_TARGET_DEVICE_${target}_${subtarget}_DEVICE_${BOARDTYPE}=y" >> .config else echo "CONFIG_TARGET_${target}=y" >> .config echo "CONFIG_TARGET_${target}_${BOARDTYPE}=y" >> .config