From 77f086ad6cd58fb76936785a9037eadc60123292 Mon Sep 17 00:00:00 2001 From: wangzijiao Date: Fri, 7 Sep 2018 10:45:18 +0800 Subject: [PATCH] add hw menuconfig --- config/Config-hw.in | 38 ++++++++++++++++++++++++++++++++++++++ config/top_config.in | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 config/Config-hw.in diff --git a/config/Config-hw.in b/config/Config-hw.in new file mode 100644 index 000000000..12ebe1c9d --- /dev/null +++ b/config/Config-hw.in @@ -0,0 +1,38 @@ +# Copyright (C) 2006-2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +menu "Hardward Version" + comment "Choise the board hardware version" + + choice + prompt "Hardware Version" + default BOARD_HARDWARE_VERSION_DVT + help + Select hardware version. + + config BOARD_HARDWARE_VERSION_DVT + bool "Build for DVT board" + help + This will set hardware version to DVT. + + config BOARD_HARDWARE_VERSION_EVT + bool "Build for EVT board" + help + This will set hardware version to EVT. + + config BOARD_HARDWARE_VERSION_R311_PV1 + bool "Build for R311 PV1 board" + help + This will set hardware version to r311 pv1. + + config BOARD_HARDWARE_VERSION_R311_PV2 + bool "Build for R311 PV2 board" + help + This will set hardware version to r311 pv2. + + endchoice + +endmenu diff --git a/config/top_config.in b/config/top_config.in index 827ed84d8..bfff7ef9d 100644 --- a/config/top_config.in +++ b/config/top_config.in @@ -26,6 +26,8 @@ source "config/Config-systeminit.in" source "config/Config-devel.in" +source "config/Config-hw.in" + source "toolchain/Config.in" source "target/imagebuilder/Config.in"