created linux_xcompile.sh

This commit is contained in:
Bert van der Weerd 2021-04-04 14:40:14 +02:00
parent 91be01b7b7
commit b1ab8b5261
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
2 changed files with 105 additions and 0 deletions

View file

@ -347,6 +347,46 @@ policies_diff() {
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...
if [[ "$*" == *clean* ]]; then
@ -509,6 +549,10 @@ Use: ./build.sh clean | all | [other stuff...]
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)
Documentation is in the build-howto.md. In a docker situation, we'd like
to run something like:

61
linux_xcompile.sh Normal file
View 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."
}