From: <abe...@us...> - 2011-10-19 13:30:38
|
Revision: 5218 http://astlinux.svn.sourceforge.net/astlinux/?rev=5218&view=rev Author: abelbeck Date: 2011-10-19 13:30:32 +0000 (Wed, 19 Oct 2011) Log Message: ----------- scripts/master-build, create 'firmware-1.x' and 'ast18-firmware-1.x' directories to match the repository Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2011-10-19 00:01:42 UTC (rev 5217) +++ branches/1.0/scripts/master-build 2011-10-19 13:30:32 UTC (rev 5218) @@ -46,7 +46,7 @@ cp astlinux.config .config -if ! mkdir "$output_path/firmware"; then +if ! mkdir "$output_path/firmware-1.x"; then exit 1 fi if ! mkdir "$output_path/img"; then @@ -55,7 +55,7 @@ for board in $BOARDS; do - mkdir "$output_path/firmware/$board" + mkdir "$output_path/firmware-1.x/$board" mkdir "$output_path/img/$board" ./scripts/build $board @@ -73,8 +73,8 @@ ./scripts/astlinux-makeimage -z $FAT_SIZE $FAT_SIZE 0 - mv "${ASTVER}.tar.gz" "$output_path/firmware/$board/${ASTVER}.tar.gz" - mv "${ASTVER}.tar.gz.sha1" "$output_path/firmware/$board/${ASTVER}.tar.gz.sha1" + mv "${ASTVER}.tar.gz" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz" + mv "${ASTVER}.tar.gz.sha1" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz.sha1" mv "${ASTVER}.img.gz" "$output_path/img/$board/${ASTVER}.img.gz" rm -rf "${ASTVER}" @@ -89,7 +89,7 @@ cp astlinux18.config .config -if ! mkdir "$output_path/ast18-firmware"; then +if ! mkdir "$output_path/ast18-firmware-1.x"; then exit 1 fi if ! mkdir "$output_path/ast18-img"; then @@ -98,7 +98,7 @@ for board in $BOARDS; do - mkdir "$output_path/ast18-firmware/$board" + mkdir "$output_path/ast18-firmware-1.x/$board" mkdir "$output_path/ast18-img/$board" ./scripts/build $board @@ -116,8 +116,8 @@ ./scripts/astlinux-makeimage -z $FAT_SIZE $FAT_SIZE 0 - mv "${ASTVER}.tar.gz" "$output_path/ast18-firmware/$board/${ASTVER}.tar.gz" - mv "${ASTVER}.tar.gz.sha1" "$output_path/ast18-firmware/$board/${ASTVER}.tar.gz.sha1" + mv "${ASTVER}.tar.gz" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz" + mv "${ASTVER}.tar.gz.sha1" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz.sha1" mv "${ASTVER}.img.gz" "$output_path/ast18-img/$board/${ASTVER}.img.gz" rm -rf "${ASTVER}" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2011-10-22 12:15:51
|
Revision: 5225 http://astlinux.svn.sourceforge.net/astlinux/?rev=5225&view=rev Author: abelbeck Date: 2011-10-22 12:15:45 +0000 (Sat, 22 Oct 2011) Log Message: ----------- scripts/master-build, add asterisk version in img.gz names Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2011-10-21 19:37:18 UTC (rev 5224) +++ branches/1.0/scripts/master-build 2011-10-22 12:15:45 UTC (rev 5225) @@ -41,6 +41,9 @@ # Build Asterisk 1.4 AstLinux # +ASTERISK_VERSION="$(awk -F'=' '/^ASTERISK_VERSION/ { if ($2 ~ /^ *1.4/) {print $2; exit} }' package/asterisk/asterisk.mk)" +ASTERISK_VERSION="asterisk-${ASTERISK_VERSION// /}" + echo "Cleaning out any existing builds..." rm -rf output @@ -75,7 +78,7 @@ mv "${ASTVER}.tar.gz" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz" mv "${ASTVER}.tar.gz.sha1" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz.sha1" - mv "${ASTVER}.img.gz" "$output_path/img/$board/${ASTVER}.img.gz" + mv "${ASTVER}.img.gz" "$output_path/img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" rm -rf "${ASTVER}" done @@ -84,6 +87,9 @@ # Build Asterisk 1.8 AstLinux # +ASTERISK_VERSION="$(awk -F'=' '/^ASTERISK_VERSION/ { if ($2 ~ /^ *1.8/) {print $2; exit} }' package/asterisk/asterisk.mk)" +ASTERISK_VERSION="asterisk-${ASTERISK_VERSION// /}" + echo "Cleaning out any existing builds..." rm -rf output @@ -118,7 +124,7 @@ mv "${ASTVER}.tar.gz" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz" mv "${ASTVER}.tar.gz.sha1" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz.sha1" - mv "${ASTVER}.img.gz" "$output_path/ast18-img/$board/${ASTVER}.img.gz" + mv "${ASTVER}.img.gz" "$output_path/ast18-img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" rm -rf "${ASTVER}" done This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2011-11-08 02:23:19
|
Revision: 5254 http://astlinux.svn.sourceforge.net/astlinux/?rev=5254&view=rev Author: abelbeck Date: 2011-11-08 02:23:13 +0000 (Tue, 08 Nov 2011) Log Message: ----------- scripts/master-build, add support for SMP kernel for geni586 and geni586-serial boards Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2011-11-07 22:36:43 UTC (rev 5253) +++ branches/1.0/scripts/master-build 2011-11-08 02:23:13 UTC (rev 5254) @@ -3,16 +3,52 @@ # master-build output_path [ force ] # +output_path="$1" + +force="$2" + FAT_SIZE=192 -BOARDS="geni586 geni586-serial net6501 net5501 alix via via-serial viac7 viac7-serial net4801 wrap" +BOARDS_SMP="geni586 geni586-serial" +BOARDS_NO_SMP="net6501 net5501 alix via via-serial viac7 viac7-serial net4801 wrap" + RUNFS_DIR="output/build/runfs" -output_path="$1" +build_board() +{ + local firmware="$1" img="$2" -force="$2" + mkdir "$output_path/$firmware/$board" + mkdir "$output_path/$img/$board" + ./scripts/build $board + + if [ $? -ne 0 ]; then + exit 1 + fi + + ASTVER="$(cat ${RUNFS_DIR}/os/ver)" + + if [ -z "$ASTVER" ]; then + echo "master-build: missing runfs version file." + exit 1 + fi + + ./scripts/astlinux-makeimage -z $FAT_SIZE $FAT_SIZE 0 + + mv "${ASTVER}.tar.gz" "$output_path/$firmware/$board/${ASTVER}.tar.gz" + mv "${ASTVER}.tar.gz.sha1" "$output_path/$firmware/$board/${ASTVER}.tar.gz.sha1" + mv "${ASTVER}.img.gz" "$output_path/$img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" + + rm -rf "${ASTVER}" +} + +set_smp_kernel() +{ + sed -i 's:^BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="[^"]*":BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="project/astlinux/geni586/linux-smp.config":' .config +} + if [ -z "$output_path" ]; then echo "usage: master-build output_path [ force ]" exit 1 @@ -44,11 +80,6 @@ ASTERISK_VERSION="$(awk -F'=' '/^ASTERISK_VERSION/ { if ($2 ~ /^ *1.4/) {print $2; exit} }' package/asterisk/asterisk.mk)" ASTERISK_VERSION="asterisk-${ASTERISK_VERSION// /}" -echo "Cleaning out any existing builds..." -rm -rf output - -cp astlinux.config .config - if ! mkdir "$output_path/firmware-1.x"; then exit 1 fi @@ -56,31 +87,25 @@ exit 1 fi -for board in $BOARDS; do +# Non-SMP Builds +echo "Cleaning out any existing builds..." +rm -rf output - mkdir "$output_path/firmware-1.x/$board" - mkdir "$output_path/img/$board" +cp astlinux.config .config - ./scripts/build $board +for board in $BOARDS_NO_SMP; do + build_board "firmware-1.x" "img" +done - if [ $? -ne 0 ]; then - exit 1 - fi +# SMP Builds +echo "Cleaning out any existing builds..." +rm -rf output - ASTVER="$(cat ${RUNFS_DIR}/os/ver)" +cp astlinux.config .config +set_smp_kernel - if [ -z "$ASTVER" ]; then - echo "master-build: missing runfs version file." - exit 1 - fi - - ./scripts/astlinux-makeimage -z $FAT_SIZE $FAT_SIZE 0 - - mv "${ASTVER}.tar.gz" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz" - mv "${ASTVER}.tar.gz.sha1" "$output_path/firmware-1.x/$board/${ASTVER}.tar.gz.sha1" - mv "${ASTVER}.img.gz" "$output_path/img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" - - rm -rf "${ASTVER}" +for board in $BOARDS_SMP; do + build_board "firmware-1.x" "img" done # @@ -90,11 +115,6 @@ ASTERISK_VERSION="$(awk -F'=' '/^ASTERISK_VERSION/ { if ($2 ~ /^ *1.8/) {print $2; exit} }' package/asterisk/asterisk.mk)" ASTERISK_VERSION="asterisk-${ASTERISK_VERSION// /}" -echo "Cleaning out any existing builds..." -rm -rf output - -cp astlinux18.config .config - if ! mkdir "$output_path/ast18-firmware-1.x"; then exit 1 fi @@ -102,31 +122,25 @@ exit 1 fi -for board in $BOARDS; do +# Non-SMP Builds +echo "Cleaning out any existing builds..." +rm -rf output - mkdir "$output_path/ast18-firmware-1.x/$board" - mkdir "$output_path/ast18-img/$board" +cp astlinux18.config .config - ./scripts/build $board +for board in $BOARDS_NO_SMP; do + build_board "ast18-firmware-1.x" "ast18-img" +done - if [ $? -ne 0 ]; then - exit 1 - fi +# SMP Builds +echo "Cleaning out any existing builds..." +rm -rf output - ASTVER="$(cat ${RUNFS_DIR}/os/ver)" +cp astlinux18.config .config +set_smp_kernel - if [ -z "$ASTVER" ]; then - echo "master-build: missing runfs version file." - exit 1 - fi - - ./scripts/astlinux-makeimage -z $FAT_SIZE $FAT_SIZE 0 - - mv "${ASTVER}.tar.gz" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz" - mv "${ASTVER}.tar.gz.sha1" "$output_path/ast18-firmware-1.x/$board/${ASTVER}.tar.gz.sha1" - mv "${ASTVER}.img.gz" "$output_path/ast18-img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" - - rm -rf "${ASTVER}" +for board in $BOARDS_SMP; do + build_board "ast18-firmware-1.x" "ast18-img" done echo " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2011-12-05 17:41:23
|
Revision: 5284 http://astlinux.svn.sourceforge.net/astlinux/?rev=5284&view=rev Author: abelbeck Date: 2011-12-05 17:41:17 +0000 (Mon, 05 Dec 2011) Log Message: ----------- master-build, don't publish net6501 board images, the geni586-serial image will work just fine Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2011-12-05 04:02:13 UTC (rev 5283) +++ branches/1.0/scripts/master-build 2011-12-05 17:41:17 UTC (rev 5284) @@ -11,7 +11,7 @@ BOARDS_SMP="geni586 geni586-serial" -BOARDS_NO_SMP="net6501 net5501 alix via via-serial viac7 viac7-serial net4801 wrap" +BOARDS_NO_SMP="net5501 alix via via-serial viac7 viac7-serial net4801 wrap" RUNFS_DIR="output/build/runfs" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2011-12-24 13:33:31
|
Revision: 5342 http://astlinux.svn.sourceforge.net/astlinux/?rev=5342&view=rev Author: abelbeck Date: 2011-12-24 13:33:25 +0000 (Sat, 24 Dec 2011) Log Message: ----------- master-build, generate 256MB FAT16 partitions for production, dosfstools only likes 128MB, 256MB Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2011-12-24 12:10:51 UTC (rev 5341) +++ branches/1.0/scripts/master-build 2011-12-24 13:33:25 UTC (rev 5342) @@ -7,7 +7,7 @@ force="$2" -FAT_SIZE=192 +FAT_SIZE=256 BOARDS_SMP="geni586 geni586-serial" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2013-01-13 22:04:36
|
Revision: 5891 http://astlinux.svn.sourceforge.net/astlinux/?rev=5891&view=rev Author: abelbeck Date: 2013-01-13 22:04:25 +0000 (Sun, 13 Jan 2013) Log Message: ----------- master-build, no longer build net4801 and wrap boards for official images Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2013-01-13 22:01:16 UTC (rev 5890) +++ branches/1.0/scripts/master-build 2013-01-13 22:04:25 UTC (rev 5891) @@ -11,7 +11,7 @@ BOARDS_SMP="geni586 geni586-serial" -BOARDS_NO_SMP="net5501 alix via via-serial viac7 viac7-serial net4801 wrap" +BOARDS_NO_SMP="net5501 alix via via-serial viac7 viac7-serial" RUNFS_DIR="output/build/runfs" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2015-12-14 02:49:27
|
Revision: 7404 http://sourceforge.net/p/astlinux/code/7404 Author: abelbeck Date: 2015-12-14 02:49:25 +0000 (Mon, 14 Dec 2015) Log Message: ----------- master-build, add an early 'sudo' test to make sure /etc/sudoers is correct Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2015-12-13 23:03:15 UTC (rev 7403) +++ branches/1.0/scripts/master-build 2015-12-14 02:49:25 UTC (rev 7404) @@ -103,6 +103,17 @@ fi fi +echo " +Trying sudo, if this prompts for a password, ^C and 'sudoedit /etc/sudoers' and add a line at the end +something like: + +$(id -un) ALL = NOPASSWD: ALL +" +if ! sudo /bin/true; then + echo "master-build: You need to be a sudo group member to run this script" >&2 + exit 1 +fi + echo "Regenerate the initrd" rm -f initrd.img This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2016-02-04 00:38:41
|
Revision: 7506 http://sourceforge.net/p/astlinux/code/7506 Author: abelbeck Date: 2016-02-04 00:38:39 +0000 (Thu, 04 Feb 2016) Log Message: ----------- master-build, for the install images, naming change, replace 'astlinux' with the 'board-type' so all the filenames will be unique Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2016-02-03 21:20:12 UTC (rev 7505) +++ branches/1.0/scripts/master-build 2016-02-04 00:38:39 UTC (rev 7506) @@ -41,7 +41,7 @@ mv "${ASTVER}.tar.gz" "$output_path/$firmware/$board/${ASTVER}.tar.gz" mv "${ASTVER}.tar.gz.sha1" "$output_path/$firmware/$board/${ASTVER}.tar.gz.sha1" - mv "${ASTVER}.img.gz" "$output_path/$img/$board/${ASTVER}-${ASTERISK_VERSION}.img.gz" + mv "${ASTVER}.img.gz" "$output_path/$img/$board/${board}-${ASTVER#astlinux-}-${ASTERISK_VERSION}.img.gz" rm -rf "${ASTVER}" } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2016-02-09 03:40:23
|
Revision: 7510 http://sourceforge.net/p/astlinux/code/7510 Author: abelbeck Date: 2016-02-09 03:40:20 +0000 (Tue, 09 Feb 2016) Log Message: ----------- master-build tweak for ISO generation Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2016-02-08 17:15:00 UTC (rev 7509) +++ branches/1.0/scripts/master-build 2016-02-09 03:40:20 UTC (rev 7510) @@ -189,8 +189,11 @@ cp runnix-iso.config .config for board in $BOARDS_NO_SMP $BOARDS_SMP $BOARDS_SMP64; do + ISO_NAME="${ASTVER}-${board}.iso" if [ "${board}" != "${board%-serial}" -o "$board" = "alix" -o "$board" = "net5501" ]; then SERIAL="serial" + ISO_NAME="${ISO_NAME%-serial.iso}" + ISO_NAME="${ISO_NAME%.iso}-serial.iso" else SERIAL="" fi @@ -198,10 +201,10 @@ if [ $? -ne 0 ]; then exit 1 fi - if [ ! -f "${ASTVER}-${board}.iso" ]; then + if [ ! -f "$ISO_NAME" ]; then exit 1 fi - mv "${ASTVER}-${board}.iso" "$output_path/iso/" + mv "$ISO_NAME" "$output_path/iso/" done echo " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <abe...@us...> - 2016-03-08 21:01:59
|
Revision: 7575 http://sourceforge.net/p/astlinux/code/7575 Author: abelbeck Date: 2016-03-08 21:01:57 +0000 (Tue, 08 Mar 2016) Log Message: ----------- master-build script, add support for 'genx86_64-vm' board type Modified Paths: -------------- branches/1.0/scripts/master-build Modified: branches/1.0/scripts/master-build =================================================================== --- branches/1.0/scripts/master-build 2016-03-08 00:11:48 UTC (rev 7574) +++ branches/1.0/scripts/master-build 2016-03-08 21:01:57 UTC (rev 7575) @@ -13,6 +13,8 @@ BOARDS_SMP64="genx86_64 genx86_64-serial" +BOARDS_SMP64VM="genx86_64-vm" + BOARDS_SMP="geni586 geni586-serial" BOARDS_NO_SMP="net5501 alix" @@ -53,6 +55,26 @@ sed -i 's:^BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="[^"]*":BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="project/astlinux/geni586/linux-smp.config":' .config } +set_smp64vm_kernel() +{ + sed -i 's:^BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="[^"]*":BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="project/astlinux/genx86_64/linux-smp-vm.config":' .config +} + +unset_major_pci_packages() +{ + # disable BR2_PACKAGE_RHINO + sed -i 's:^BR2_PACKAGE_RHINO=y.*$:# BR2_PACKAGE_RHINO is not set:' .config + + # disable BR2_PACKAGE_WANPIPE + sed -i 's:^BR2_PACKAGE_WANPIPE=y.*$:# BR2_PACKAGE_WANPIPE is not set:' .config + + # disable BR2_PACKAGE_DAHDI_HFCS + sed -i 's:^BR2_PACKAGE_DAHDI_HFCS=y.*$:# BR2_PACKAGE_DAHDI_HFCS is not set:' .config + + # BR2_PACKAGE_DAHDI_NO_CARD_FIRMWARE=y + sed -i 's:^# BR2_PACKAGE_DAHDI_NO_CARD_FIRMWARE .*$:BR2_PACKAGE_DAHDI_NO_CARD_FIRMWARE=y:' .config +} + set_asterisk_version() { case $1 in @@ -180,6 +202,18 @@ for board in $BOARDS_SMP64; do build_board "$FIRMWARE" done + + # SMP64VM Builds + echo "Cleaning out any existing builds..." + rm -rf output + + cp "x86_64-configs/$CONFIG" .config + set_smp64vm_kernel + unset_major_pci_packages + + for board in $BOARDS_SMP64VM; do + build_board "$FIRMWARE" + done done # AstLinux ISO Installer @@ -188,7 +222,7 @@ cp runnix-iso.config .config -for board in $BOARDS_NO_SMP $BOARDS_SMP $BOARDS_SMP64; do +for board in $BOARDS_NO_SMP $BOARDS_SMP $BOARDS_SMP64 $BOARDS_SMP64VM; do ISO_NAME="${ASTVER}-${board}.iso" if [ "${board}" != "${board%-serial}" -o "$board" = "alix" -o "$board" = "net5501" ]; then SERIAL="serial" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |