created linux_xcompile.sh
This commit is contained in:
parent
91be01b7b7
commit
b1ab8b5261
2 changed files with 105 additions and 0 deletions
44
build.sh
44
build.sh
|
|
@ -347,6 +347,46 @@ policies_diff() {
|
||||||
|
|
||||||
done_something=0
|
done_something=0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# cross-compile actions...
|
||||||
|
#
|
||||||
|
# linux_patches - the 'do_patches' for linux->win crosscompile.
|
||||||
|
# linux_artifacts - standard artifact zip file. perhaps a -setup.exe.
|
||||||
|
# setup_deb_root - setup compile environment (root stuff)
|
||||||
|
# setup_deb_user - setup compile environmnet (build user)
|
||||||
|
# setup_rpm_root - setup compile environment (root stuff)
|
||||||
|
# setup_rpm_user - setup compile environmnet (build user)
|
||||||
|
|
||||||
|
. ./linux_xcompile.sh
|
||||||
|
|
||||||
|
if [[ "$*" == *linux_patches* ]]; then
|
||||||
|
linux_patches
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *linux_artifacts* ]]; then
|
||||||
|
linux_artifacts
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *setup_deb_root* ]]; then
|
||||||
|
setup_deb_root
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *setup_deb_user* ]]; then
|
||||||
|
setup_deb_user
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *setup_rpm_root* ]]; then
|
||||||
|
setup_rpm_root
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
if [[ "$*" == *setup_rpm_user* ]]; then
|
||||||
|
setup_rpm_user
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# various administrative actions...
|
# various administrative actions...
|
||||||
|
|
||||||
if [[ "$*" == *clean* ]]; then
|
if [[ "$*" == *clean* ]]; then
|
||||||
|
|
@ -509,6 +549,10 @@ Use: ./build.sh clean | all | [other stuff...]
|
||||||
|
|
||||||
linux_patches - the 'do_patches' for linux->win crosscompile.
|
linux_patches - the 'do_patches' for linux->win crosscompile.
|
||||||
linux_artifacts - standard artifact zip file. perhaps a -setup.exe.
|
linux_artifacts - standard artifact zip file. perhaps a -setup.exe.
|
||||||
|
setup_deb_root - setup compile environment (root stuff)
|
||||||
|
setup_deb_user - setup compile environmnet (build user)
|
||||||
|
setup_rpm_root - setup compile environment (root stuff)
|
||||||
|
setup_rpm_user - setup compile environmnet (build user)
|
||||||
|
|
||||||
Documentation is in the build-howto.md. In a docker situation, we'd like
|
Documentation is in the build-howto.md. In a docker situation, we'd like
|
||||||
to run something like:
|
to run something like:
|
||||||
|
|
|
||||||
61
linux_xcompile.sh
Normal file
61
linux_xcompile.sh
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
# Crosscompile on linux (debian,fedora)
|
||||||
|
|
||||||
|
proto() {
|
||||||
|
echo "proto: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "proto: done."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
linux_patches() {
|
||||||
|
echo "linux_patches: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "linux_patches: done."
|
||||||
|
}
|
||||||
|
linux_artifacts() {
|
||||||
|
echo "linux_artifacts: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "linux_artifacts: done."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
setup_deb_root() {
|
||||||
|
echo "setup_deb_root: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "setup_deb_root: done."
|
||||||
|
}
|
||||||
|
setup_deb_user() {
|
||||||
|
echo "setup_deb_user: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "setup_deb_user: done."
|
||||||
|
}
|
||||||
|
setup_rpm_root() {
|
||||||
|
echo "setup_rpm_root: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "setup_rpm_root: done."
|
||||||
|
}
|
||||||
|
setup_rpm_user() {
|
||||||
|
echo "setup_rpm_user: begin."
|
||||||
|
|
||||||
|
# (implementation...)
|
||||||
|
|
||||||
|
echo "setup_rpm_user: done."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue