#
# Copyright (c) 2008-2011 Wind River Systems, Inc.
#
# The right to copy, distribute, modify, or otherwise make use
# of this software may be licensed only pursuant to the terms
# of an applicable Wind River license agreement.
#
#

######################################################################################################
### Target Button definitions

[SECTION WIND_WRLINUX_TARGET_BUTTONS]

# comment
# global 
#layout="3,1" // the x,y layout of the buttons (no check will be done if this
#allows total number of buttons from above) (required)

# per button
#button.0.name="build" // text on button (required)
#button.0.rule="$package-value.build" // the make rule to call $package-value
#will be substituted with package-value from below  (required)

#button.0.pre-rule="..." // optional rule that needs to be called before
#can also use the $package-value variable (optional)

#button.0.post-rule="..." // optional rule that needs to be called after
#can also use the $package-value variable (optional)

#button.0.post-action="placeholder:reload,installed:reload" // ui action that needs to be done 
#after executing the rule(s) predefined values "reload" (others may be available
#in the future)  available filter of package-state (optional)

#button.0.package-state="installed|available|placeholder|all" // button enablement based on
#selected package predefined values "installed|available|placeholder|all"  (required)

#button.0.package-value="build-name // value that should be used
#in rules using $package-value predefined values "build-name" (others
#may be available in the future)  (required)


# comment
layout="5,2"

button.0.name="patch"
button.0.rule="$package-value.patch" 
button.0.package-state="installed" 
button.0.package-value="build-name"

button.1.name="quilt"
button.1.rule="$package-value.quilt" 
button.1.package-state="installed"
button.1.package-value="build-name" 

button.2.name="compile"
button.2.rule="$package-value.compile" 
button.2.package-state="installed" 
button.2.package-value="build-name"

button.3.name="build"
button.3.rule="$package-value.build" 
button.3.package-state="installed" 
button.3.package-value="build-name"
button.3.post-action="placeholder:reload"

button.4.name="rebuild"
button.4.rule="$package-value.rebuild" 
button.4.package-state="installed" 
button.4.package-value="build-name"

button.5.name="clean"
button.5.rule="$package-value.clean" 
button.5.package-state="installed" 
button.5.package-value="build-name"

button.6.name="distclean"
button.6.rule="$package-value.distclean" 
button.6.package-state="installed" 
button.6.package-value="build-name"

button.7.name="install"
button.7.rule="$package-value.install" 
button.7.package-state="installed" 
button.7.package-value="build-name"

button.8.name="build+depslog"
button.8.rule="$package-value.build_depslog" 
button.8.package-state="installed" 
button.8.package-value="build-name"

button.9.name="rebuild_nodep"
button.9.rule="$package-value.rebuild_nodep" 
button.9.package-state="installed" 
button.9.package-value="build-name"

button.10.name="prepatch"
button.10.rule="$package-value.prepatch" 
button.10.package-state="installed" 
button.10.package-value="build-name"

button.11.name="postpatch"
button.11.rule="$package-value.postpatch" 
button.11.package-state="installed" 
button.11.package-value="build-name"

button.12.name="custom"
button.12.rule="$package-value.custom" 
button.12.package-state="installed" 
button.12.package-value="build-name"

button.13.name="manage"
button.13.rule="$package-value.manage" 
button.13.package-state="installed" 
button.13.package-value="build-name"

[SECTIONEND]

######################################################################################################
### File Systems Tool definitions

[SECTION WIND_WRLINUX_FS_TARGET_BUTTONS]
 
#layout="3,1"

#button.0.name="Export Dependencies"
#button.0.rule="export-dependencies" 

#button.1.name="Import Snapshot Footprint"
#button.1.rule="import-footprint-snapshot" 
#button.1.post-action="reloadAll"

#button.2.name="Export Snapshot Footprint"
#button.2.rule="export-footprint-snapshot" 

[SECTIONEND]

######################################################################################################
### Target Deploy Tool definitions

[SECTION WIND_WRLINUX_TDT_DEFAULT]

<?xml version="1.0" encoding="UTF-8"?>
<options>

  <option choices="usernfs;cdrom;disk" default="usernfs" name="TARGET_VIRT_BOOT_TYPE" type="Choice" value="cdrom"><description>Boot type</description>
  </option>
  
  <option default="" name="NFS_EXPORT_DIR" type="Directory" value="/home/uwe/wrlinux-tests/arm_versatile_926ejs"><description>NFS Export Directory</description></option><option default="" name="NFS_MOUNT_DIR" type="String" value="export/dist"><description>NFS Export Directory</description>
  </option>
  
  <option default="" name="NFS_PORT" type="String" value="3049"><description>NFS port number</description>
  </option>
  
  <option choices="slirp;slirpvde;tuntap" default="slirp" name="TARGET_VIRT_ENET_TYPE" type="Choice" value="slirp"><description>Enet Type[slirp,slirpvde,tuntap]</description>
  </option>
  
  <option default="" name="TARGET_TAP_UID" type="Directory" value="/tmp"><description>Directory</description>
  </option>
  
  <option default="" name="TARGET_TAP_IP" type="File" value="/tmp/xxx"><description>File</description>
  </option>
  
  <option choices="true;false" default="true" name="TRUE" type="Boolean" value="true"><description>Boolean true</description>
  </option>
  
  <option choices="true;false" default="false" name="FALSE" type="Boolean" value="false"><description>Boolean false</description>
  </option>
  
</options>


[SECTIONEND]


