From patchwork Fri Oct 19 22:07:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Auer X-Patchwork-Id: 987086 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aisec.fraunhofer.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42cLBG1qRZz9sj7 for ; Sat, 20 Oct 2018 09:27:02 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id E9800C21DD4; Fri, 19 Oct 2018 22:14:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A45E5C21E3B; Fri, 19 Oct 2018 22:12:34 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A2957C21E3A; Fri, 19 Oct 2018 22:10:17 +0000 (UTC) Received: from mail-edgeS23.fraunhofer.de (mail-edges23.fraunhofer.de [153.97.7.23]) by lists.denx.de (Postfix) with ESMTPS id 6B5F7C21C57 for ; Fri, 19 Oct 2018 22:10:17 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2EPAABKVcpb/xwBYJlkGgEBAQEBAgEBAQEHAgEBAQGBUwMBAQEBCwGCBIFTOoxsizuDB5YVgXoNhGwChQkhNgsNAQMBAQIBAQICAmkohTwGeRAdND0MDgYOBYMhggEBqH+KGgkBhyKEI4FYP4EQAYJdhgCEayICiEkklVQHAoENgQEEjk8LF4krhn6WUoFKBiyBVTMaJIM7kFltAYwkAQE X-IPAS-Result: A2EPAABKVcpb/xwBYJlkGgEBAQEBAgEBAQEHAgEBAQGBUwMBAQEBCwGCBIFTOoxsizuDB5YVgXoNhGwChQkhNgsNAQMBAQIBAQICAmkohTwGeRAdND0MDgYOBYMhggEBqH+KGgkBhyKEI4FYP4EQAYJdhgCEayICiEkklVQHAoENgQEEjk8LF4krhn6WUoFKBiyBVTMaJIM7kFltAYwkAQE X-IronPort-AV: E=Sophos;i="5.54,401,1534802400"; d="scan'208";a="6664194" Received: from mail-mtaka28.fraunhofer.de ([153.96.1.28]) by mail-edgeS23.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2018 00:10:17 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BPAAAiVcpb/xBhWMBkHAEBAQQBAQcEAQGBUwUBAQsBhBGMbI5ClhWBeg2EbAKFKTYLDQEDAQECAQECbSiFOwZ5EB00PQwOBg4FgyGCAqh/ihoJAYcihXs/gRABgl2GAIRrIgKISSSVVAcCgQ2BAQSOTwsXiSuGfpZSgUoGK4FVMxokgzuQWT0wAYwkAQE X-IronPort-AV: E=Sophos;i="5.54,401,1534802400"; d="scan'208";a="18910100" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP11EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaKA28.fraunhofer.de with ESMTP/TLS/AES256-SHA; 20 Oct 2018 00:10:17 +0200 Received: from localhost.de (10.80.233.50) by FGDEMUCIMP11EXC.ads.fraunhofer.de (10.80.232.42) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sat, 20 Oct 2018 00:11:35 +0200 From: Lukas Auer To: Date: Sat, 20 Oct 2018 00:07:22 +0200 Message-ID: <20181019220743.15020-10-lukas.auer@aisec.fraunhofer.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019220743.15020-1-lukas.auer@aisec.fraunhofer.de> References: <20181019220743.15020-1-lukas.auer@aisec.fraunhofer.de> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.200.1013-24166.002 X-TM-AS-Result: No--4.869700-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Subject: [U-Boot] [PATCH 09/30] riscv: move target selection into separate file X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Move the target selection into a separate file (Kconfig.board) to avoid clutter once we support more boards. Signed-off-by: Lukas Auer --- arch/riscv/Kconfig | 17 ++--------------- arch/riscv/Kconfig.board | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 15 deletions(-) create mode 100644 arch/riscv/Kconfig.board diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index ce07fb4b55..10d17a0e18 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -4,21 +4,6 @@ menu "RISC-V architecture" config SYS_ARCH default "riscv" -choice - prompt "Target select" - optional - -config TARGET_AX25_AE350 - bool "Support ax25-ae350" - -config TARGET_QEMU_VIRT - bool "Support QEMU Virt Board" - -endchoice - -source "board/AndesTech/ax25-ae350/Kconfig" -source "board/emulation/qemu-riscv/Kconfig" - choice prompt "Base ISA" default ARCH_RV32I @@ -72,4 +57,6 @@ config 32BIT config 64BIT bool +source "arch/riscv/Kconfig.board" + endmenu diff --git a/arch/riscv/Kconfig.board b/arch/riscv/Kconfig.board new file mode 100644 index 0000000000..fcada760c8 --- /dev/null +++ b/arch/riscv/Kconfig.board @@ -0,0 +1,14 @@ +choice + prompt "Target select" + optional + +config TARGET_AX25_AE350 + bool "Support ax25-ae350" + +config TARGET_QEMU_VIRT + bool "Support QEMU Virt Board" + +endchoice + +source "board/AndesTech/ax25-ae350/Kconfig" +source "board/emulation/qemu-riscv/Kconfig"