2 # Creates generic "hosted" binary packages.
5 # The log-name MUST match the name of the package script
6 setl hosted-
$BUILDTARGET.log
8 ARCHIVE_BASE
=$ARCHIVE_BASE/Binaries
10 printi
"Creating hosted binary packages..."
12 printi
"Creating AROS/"$BUILDTARGET" system package..."
13 PACKAGE
=$BASENAME-$BUILDTARGET-system
14 ARCHIVE
=$ARCHIVE_BASE/$PACKAGE.
tar.bz2
16 if [ -z ${BUILDTARGETDIR+x} ]; then BUILDTARGETDIR
=$BUILDTARGET; fi
18 delete
$BUILD_BASE/AROS
19 copy
$SOURCE_AROS $BUILD_BASE/AROS
21 CONFIGURE_OPTIONS
="--target=$BUILDTARGET"
22 if [[ "$VARIANT" != "" ]]; then
23 CONFIGURE_OPTIONS
="$CONFIGURE_OPTIONS --enable-target-variant=$VARIANT"
25 CONFIGURE_OPTIONS
="$CONFIGURE_OPTIONS $BUILDEXTRAOPTS $CONFIGUREEXTRA --enable-ccache"
26 if [[ ( "$AROSTOOLCHAININSTALLOPT" != "" ) && -e $TOOLCHAIN_BASE/$BUILDCPU-aros-gcc ]]; then
27 CONFIGURE_OPTIONS
="$CONFIGURE_OPTIONS $AROSTOOLCHAININSTALLOPT $AROSTOOLCHAINOPT"
29 CONFIGURE_OPTIONS
="$CONFIGURE_OPTIONS --enable-build-type=nightly $PORTSSOURCESOPT"
32 execute .
/configure
${=CONFIGURE_OPTIONS}
34 make -j $MAKE_JOBS default-x11keymaptable
36 cd $BUILD_BASE/AROS
/bin
/$BUILDTARGETDIR
39 copy
$SOURCE_AROS/LICENSE
$PACKAGE
40 copy
$SOURCE_AROS/ACKNOWLEDGEMENTS
$PACKAGE
41 delete
$PACKAGE/Include
44 archive
$ARCHIVE $PACKAGE
46 if [ "$TESTEXE" != "" ]; then
48 copy
$SP/autotest
/* S
/
50 DISPLAY
=:1 execute timeout
$TESTTIMEOUT $TESTEXE $TESTARGS
51 printfile
"Test_Report.txt"
53 if [ ! -f PASSED
]; then
54 printe
"Package $ARCHIVE failed runtime tests. REMOVING ARCHIVE!"
59 printi
"Skipping runtime tests."
63 delete
$BUILD_BASE/AROS