Compare commits

...

8 Commits

2 changed files with 27 additions and 4 deletions

View File

@ -11,11 +11,12 @@ function clone_ipxe_upstream() {
#git clone git://git.ipxe.org/ipxe.git "$ipxe_src_dir" || return 1
git submodule update --init --recursive
curr="$(pwd)"
cd "$ipxe_src_dir"
# Known good commit
git checkout 56f7d44fde1d6ac196d115cc7dddd58e7ec098fa || return 1
cd "$curr"
return 0
}
@ -77,11 +78,12 @@ function make_ipxe_lkrn() {
return 1
fi
curr="$(pwd)"
cd "${ipxe_src_dir}/src/" || return 1
make bin/ipxe.lkrn EMBED="${embed_file}" CERT="${signing_cert},${ca_cert}" TRUST="${ca_cert}" || return 2
cd "$curr"
return 0
}
@ -112,10 +114,12 @@ function make_ipxe_iso() {
return 1
fi
curr="$(pwd)"
cd "${ipxe_src_dir}/src/" || return 1
make bin/ipxe.iso EMBED="${embed_file}" CERT="${signing_cert},${ca_cert}" TRUST="${ca_cert}" || return 2
cd "$curr"
return 0
}
@ -135,10 +139,11 @@ function make_ipxe_bin_shasums() {
return 1
fi
curr="$(pwd)"
cd "${ipxe_src_dir}/src/bin/" || return 1
sha256sum ipxe.lkrn ipxe.iso > SHA256SUMS || return 2
cd "$curr"
return 0
}
@ -163,8 +168,12 @@ function tag_head_and_push() {
return 1
fi
curr="$(pwd)"
cd "$git_repo_dir"
git config user.name "BuildBot"
git config user.email "buildbot@bitmessage.io"
git tag -n | grep $(git rev-parse HEAD)
if [ $? -eq 0 ]; then
>&2 echo 'HEAD tag already exists, bailing out...'
@ -172,12 +181,13 @@ function tag_head_and_push() {
fi
git tag -a "g_$(git rev-parse HEAD)" HEAD -m "BuildBot: tag commit for release $(git rev-parse HEAD)" || return 2
git push --tags "$remote" "$branch"
#git push --tags origin master
if [ $? -ne 0 ]; then
>&2 echo 'Error during attempted git push of new tag'
return 3
fi
cd "$curr"
return 0
}
@ -209,6 +219,7 @@ function create_release() {
return 1
fi
curr="$(pwd)"
cd "$git_repo_dir"
head="$(git rev-parse HEAD)"
@ -242,6 +253,7 @@ EOF
return 2
fi
cd "$curr"
return 0
}
@ -290,6 +302,7 @@ function upload_release_ipxe_lkrn() {
return 1
fi
curr="$(pwd)"
cd "$git_repo_dir"
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
@ -321,6 +334,7 @@ function upload_release_ipxe_lkrn() {
return 2
fi
cd "$curr"
return 0
}
@ -369,6 +383,7 @@ function upload_release_ipxe_iso() {
return 1
fi
curr="$(pwd)"
cd "$git_repo_dir"
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
@ -400,6 +415,7 @@ function upload_release_ipxe_iso() {
return 2
fi
cd "$curr"
return 0
}
@ -448,6 +464,7 @@ function upload_release_ipxe_shasums() {
return 1
fi
curr="$(pwd)"
cd "$git_repo_dir"
cat release_results.txt | grep ^HTTP/ | grep 201 >/dev/null
@ -479,6 +496,7 @@ function upload_release_ipxe_shasums() {
return 2
fi
cd "$curr"
return 0
}

View File

@ -37,6 +37,11 @@ isset ${net${idx}/mac} || goto loop_done
iseq ${net${idx}/mac:string} "00:01:02:A0:B1:C1" && set ip-dev-name eth0 && set ip-addr "192.168.1.5" && set ip-gateway "192.168.1.1" && set ip-netmask "255.255.255.0" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
iseq ${net${idx}/mac:string} "03:04:05:D4:E5:F6" && set ip-dev-name eth0 && set ip-addr "192.168.99.2" && set ip-gateway "192.168.99.1" && set ip-netmask "255.255.255.0" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
# node1.bitmessage.at
iseq ${net${idx}/mac:string} "40:a8:f0:31:cc:58" && set ip-dev-name eth0 && set ip-addr "93.189.28.82" && set ip-gateway "93.189.28.81" && set ip-netmask "255.255.255.240" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
iseq ${net${idx}/mac:string} "40:a8:f0:31:cc:59" && set ip-dev-name eth0 && set ip-addr "93.189.28.82" && set ip-gateway "93.189.28.81" && set ip-netmask "255.255.255.240" && set ip-dns "1.1.1.1" && set successful t && goto loop_done ||
##############################################################################
inc idx && goto loop