Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

gcc-arm-embedded (3) Versions 0.1.0

Installs/Configures gcc-arm-embedded

Policyfile
Berkshelf
Knife
cookbook 'gcc-arm-embedded', '= 0.1.0', :supermarket
cookbook 'gcc-arm-embedded', '= 0.1.0'
knife supermarket install gcc-arm-embedded
knife supermarket download gcc-arm-embedded
README
Dependencies
Quality 0%

gcc-arm-embedded Cookbook

Installs gcc-arm-embedded from a pre-built binary. Puts the binary on the system and links it to the user's PATH.

Requirements

Platforms

  • Debian/Ubuntu
  • Mac OS X

Works on common Unix/Linux systems with typical userland utilities like tar, gzip, etc. May require the installation of build tools for compiling from source, but that installation is currently not supported by this cookbook.

Chef

  • Chef 12.0+

Cookbooks

  • apt -- needed for lib32c packages
  • ark -- downloads and puts the binary, symlinks

Attributes

Customize the attributes to suit site specific conventions and defaults.
- node['gcc_arm']['dir'] - user to use for install. defaults to /home/[user]/gcc-arm-embedded.
- node['gcc_arm']['directories']['tmp'] - location of tmp folder to use for cookbook activities.

gcc-arm-embedded::default

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm']['user']</span></td>
<td>String</td>
<td>User name used for install. The binary package will be given these user permissions and placed under this users home directory.</td>
<td><span style="font-family: monospace;">vagrant</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm']['group']</span></td>
<td>String</td>
<td>Group to use for install.</td>
<td><span style="font-family: monospace;">vagrant</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm']['dir']</span></td>
<td>String</td>
<td>Directory to place gcc_arm_embedded downloads/binaries/sources.</td>
<td><span style="font-family: monospace;">/home/#{node['gcc_arm']['user']}/gcc-arm-embedded</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm']['directories']['tmp']</span></td>
<td>String</td>
<td>tmp folder for cookbook-related activities</td>
<td><span style="font-family: monospace;">#{node['gcc_arm']['dir']}/bin</span></td>
</tr>
</table>

gcc-arm-embedded::gcc_arm

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm'][%platform_name%]['binary']</span></td>
<td>Array</td>
<td>Array of hashes that define binary source url, checksum, and versions.</td>
<td><span style="font-family: monospace;">none</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm'][%platform_name%]['binary']['url']</span></td>
<td>String</td>
<td>gcc-arm-embedded-EMBED binary download URL.</td>
<td><span style="font-family: monospace;">https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm'][%platform_name%]['binary']['sha256_checksum']</span></td>
<td>String</td>
<td>SHA-256 checksum of binary file.</td>
<td><span style="font-family: monospace;">a397c49bdd0cf17a38a494cb691baf68b8dcffa4d4c06561ef3d71b2ab4c92a1</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm'][%platform_name%]['binary']['version']</span></td>
<td>String</td>
<td>User-defined version number.</td>
<td><span style="font-family: monospace;">5.4.1</span></td>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm'][%platform_name%]['binary']['binary_reported_version']</span></td>
<td>String</td>
<td>Version number reported by binary (e.g. arm-none-eabi-gcc --version).</td>
<td><span style="font-family: monospace;">5.4.1 20160919</span></td>
</tr>
</table>

gcc-arm-embedded::gcc

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><span style="font-family: monospace;">['gcc_arm']['build-essential']['compile_time']</span></td>
<td>Boolean</td>
<td>Attempt to obtain gcc before chef does anything.</td>
<td><span style="font-family: monospace;">true</span></td>
</tr>
</table>

Resources

Not currently defined.

Actions

  • :create: downloads the gcc-arm-embedded-embed binary and creates a 'friendly' symbolic link to the extracted directory path.

Usage

gcc-arm-embedded::default

Just include gcc-arm-embedded in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[gcc-arm-embedded]"
  ]
}

Examples

Install gcc-arm-embedded in non-default folder with non-default user.
ruby
gcc-arm-embedded do
user 'my-user'
group 'my-group'
dir '/opt/gcc-arm-embedded'
action :default
end

Install gcc-arm-embedded in default folder for default user with non-default binary version.
ruby
gcc-arm-embedded do
linux binary [
{
'url' => 'https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2',
'sha256_checksum' => 'a397c49bdd0cf17a38a494cb691baf68b8dcffa4d4c06561ef3d71b2ab4c92a1',
'version' => '5.4.1',
'binary_reported_version' => '5.4.1 20160919'
}
]
action :default
end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License & Authors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

build-essential >= 0.0.0
apt >= 0.0.0
ark >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

0.1.0 failed this metric

FC064: Ensure issues_url is set in metadata: /tmp/edc899590ca3c915cde6c1b5/gcc-arm-embedded/metadata.rb:1
FC065: Ensure source_url is set in metadata: /tmp/edc899590ca3c915cde6c1b5/gcc-arm-embedded/metadata.rb:1
Run with Foodcritic Version 8.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any