Skip to content

Commit

Permalink
Generic amd64 device type
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Roberts committed Jun 23, 2017
1 parent 77af373 commit 2035fe4
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Set all files to use line feed endings (since we can't match only ones without an extension)
* eol=lf
# And then reset all the files with extensions back to default
*.* -eol

*.sh text eol=lf
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "resin-yocto-scripts"]
path = resin-yocto-scripts
url = https://github.com/resin-os/resin-yocto-scripts.git
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,38 @@
# resin-generic
Resin support for generic devices

## Clone/Initialize the repository

There are two ways of initializing this repository:
* Clone this repository with "git clone --recursive".

or

* Run "git clone" and then "git submodule update --init --recursive". This will
bring in all the needed dependencies.

## Contributing

### Issues

For issues we use an aggregated github repository available [here](https://github.com/resin-os/resinos/issues). When you create issue make sure you select the right labels.

### Pull requests

To contribute send github pull requests targeting this repository.

Please refer to: [Yocto Contribution Guidelines](https://wiki.yoctoproject.org/wiki/Contribution_Guidelines#General_Information) and try to use the commit log format as stated there. Example:
```
test.bb: I added a test
[Issue #01]
I'm going to explain here what my commit does in a way that history
would be useful.
Signed-off-by: Joe Developer <joe.developer@example.com>
```

Make sure you mention the issue addressed by a PR. See:
* https://help.github.com/articles/autolinked-references-and-urls/#issues-and-pull-requests
* https://help.github.com/articles/closing-issues-via-commit-messages/#closing-an-issue-in-a-different-repository
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.0.0
18 changes: 18 additions & 0 deletions automation/jenkins_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e

MACHINE=$1

$WORKSPACE/resin-yocto-scripts/build/build-device-type-json.sh

# Write deploy artifacts
BUILD_DEPLOY_DIR=$WORKSPACE/deploy
DEVICE_TYPE_JSON=$WORKSPACE/$MACHINE.json

mkdir -p $BUILD_DEPLOY_DIR

cp $WORKSPACE/$MACHINE.json $BUILD_DEPLOY_DIR/device-type.json
cp $WORKSPACE/VERSION $BUILD_DEPLOY_DIR/VERSION
cp $WORKSPACE/VERSION_HOSTOS $BUILD_DEPLOY_DIR/VERSION_HOSTOS
mkdir $WORKSPACE/empty
10 changes: 10 additions & 0 deletions generic-amd64.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports =
version: 1
slug: 'generic-amd64'
name: 'Generic amd64 device'
arch: 'amd64'
state: 'released'
yocto:
machine: ''
deployArtifact: 'empty'
archive: true
1 change: 1 addition & 0 deletions resin-yocto-scripts
Submodule resin-yocto-scripts added at af9e2b

0 comments on commit 2035fe4

Please sign in to comment.