forked from RobertCNelson/bb.org-overlays
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
- Loading branch information
1 parent
f6edf34
commit 9851562
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
pipeline { | ||
agent any | ||
|
||
stages { | ||
stage('Build') { | ||
steps { | ||
sh '/bin/bash ./jenkins_build.sh' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
|
||
#git://git.kernel.org/pub/scm/utils/dtc/dtc.git | ||
|
||
git_tag="v1.4.4" | ||
project="dtc" | ||
server="git://git.kernel.org/pub/scm/utils/dtc/dtc.git" | ||
|
||
if [ ! -d ${HOME}/git/ ] ; then | ||
mkdir -p ${HOME}/git/ || true | ||
fi | ||
|
||
if [ ! -f ${HOME}/git/${project}/.git/config ] ; then | ||
git clone ${server} ${HOME}/git/${project}/ | ||
fi | ||
|
||
cd ${HOME}/git/${project}/ | ||
make clean | ||
git checkout master -f | ||
git pull || true | ||
|
||
git checkout ${git_tag} -b ${git_tag}-build | ||
|
||
make clean | ||
make PREFIX=/usr/local/ CC=gcc CROSS_COMPILE= all | ||
echo "Installing into: /usr/local/bin/" | ||
sudo make PREFIX=/usr/local/ install | ||
sudo ln -sf /usr/local/bin/dtc /usr/bin/dtc | ||
echo "dtc: `/usr/local/bin/dtc --version`" |