source: branches/contrib/plugins/example/Config.in @ 503

Last change on this file since 503 was 500, checked in by amain, 7 years ago

plugin: plugins now are mutual exclusive; plugins provide a new target, and only one target can be active at the some moment

File size: 3.6 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2012 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18# Example plugin Config.in file
19#
20# The first config option is mandatory and is in the format
21#
22# PLUGIN_<NAME>_ENABLE   ( All in uppercase )
23#
24# If your plugin is adding support for a new target platform,
25# please add deselect DO_CONF_TARGETS. This will disable the
26# conventional DebWrt Target and Target Profile menu's and allows
27# full override by the plugin.
28
29config PLUGIN_EXAMPLE_VERSION
30        string
31        default "1.0"
32
33config PLUGIN_EXAMPLE_UUID
34        string
35        default "128A6A00-29FA-11E2-81C1-0800200C9A66"
36
37if PLUGIN_EXAMPLE
38
39menu "Target Plugin Example Configuration"
40
41config PLUGIN_EXAMPLE_ENABLE
42        bool
43        default y if PLUGIN_EXAMPLE
44        deselect HAS_SUBTARGETS
45        deselect DO_CONF_TARGETS
46        select TARGET_example
47        select mipsel
48        help
49          Build firmware images for a...
50          .
51          Depending on the selected OPENWRT_BRANCH additional options become
52          available.
53          .
54          When selecting this plugin, some DebWrt defaults will be overriden. And
55          some menu's will become unavailable.
56
57config TARGET_example
58        bool
59        default n
60
61choice
62        prompt "Target Profile"
63        depends TARGET_example
64        default TARGET_example_None
65
66        config TARGET_example_None
67                bool "Subtarget A"
68                depends TARGET_example
69                help
70                  Package set optimized for....
71
72
73        config TARGET_example_subtarget2
74                bool "Subtarget B"
75                depends TARGET_example
76                help
77                  Package set optimized for...
78
79        config TARGET_example_subtarget3
80                bool "Subtarget C"
81                depends TARGET_example
82                help
83                  Package set optimized for ...
84
85        config TARGET_example_subtarget4
86                bool "Subtarget B"
87                depends TARGET_example
88                help
89                  Package set optimized for ...
90endchoice
91
92choice
93        prompt "Plugin Version"
94        depends TARGET_example
95        default PLUGIN_EXAMPLE_VERSION_EXPERIMENTAL
96
97        config PLUGIN_EXAMPLE_VERSION_EXPERIMENTAL
98                bool "Experimental"
99                depends TARGET_example
100                depends OPENWRT_BRANCH_TRUNK
101                select PLUGIN_EXAMPLE_DISABLE_OPENWRT_REVISION_MENU
102                help
103                  Use latest experimental patches for example.
104
105        config PLUGIN_EXAMPLE_VERSION_AA
106                bool "Attitude Adjustment"
107                depends TARGET_example
108                depends OPENWRT_BRANCH_ATTITUDE_ADJUSTMENT
109                help
110                  Use latest experimental patches for example.
111
112        config PLUGIN_EXAMPLE_VERSION_2012-05-28T17-30
113                bool "2012-05-28T17-30"
114                depends TARGET_example
115                depends OPENWRT_BRANCH_TRUNK
116                help
117                  Use patches from 2012-05-28T17-30 for example.
118
119endchoice
120
121# Disable DebWrt's OPENWRT_REVISON menu
122config PLUGIN_EXAMPLE_DISABLE_OPENWRT_REVISION_MENU
123        bool
124        default n
125        depends TARGET_example
126        deselect DO_CONF_OPENWRT_REVISON
127
128# Override DebWrt default values
129if TARGET_example
130config TARGET_BOARD
131        string
132        default "example"
133
134config FLASH_IP
135        string
136        default "192.168.1.1"
137
138config OPENWRT_REVISION
139        string
140        default "r31852" if PLUGIN_EXAMPLE_VERSION_EXPERIMENTAL
141        default "HEAD"
142
143config TARGET_IMAGE_NAME_TRX
144        string
145        default "debwrt-firmware-example-squashfs.trx"
146
147config DEFAULT_TARGET_OPTIMIZATION
148        string
149        default "-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time"
150endif
151
152endmenu
153
154endif
Note: See TracBrowser for help on using the repository browser.