summaryrefslogtreecommitdiffstats
path: root/release/release.sh
Commit message (Collapse)AuthorAgeFilesLines
* MFC r303897:gjb2016-08-121-1/+7
| | | | | | | | Pass overrides to make(1) when building ports for arm/armv6 targets, similar to what is done for the run-autotools-fixup override for non-arm targets. Sponsored by: The FreeBSD Foundation
* One of the already implemented options in release/Makefile is NOSRC. Whengarga2016-06-031-6/+12
| | | | | | | | | | | | it's defined, installation image is shipped without source distribution (src.txz) Add the hability of defining NOSRC in release.conf and pass it to 'make release' argument Approved by: gjb Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D6710
* Set FORCE_PKG_REGISTER=1 when installing packages to avoid failuresgjb2016-01-091-0/+1
| | | | | | | | | | | | | when re-using build chroot(8) environments. This is based on the patch in the PR referenced below, but instead of using 'reinstall' in two locations (one of which already uses FORCE_PKG_REGISTER=1), changes the non-embedded behavior. PR: 205998 Submitted by: ngie MFC after: 5 days Sponsored by: The FreeBSD Foundation
* Deprecate MD5 checksum generation in favor of SHA512.gjb2015-10-141-2/+2
| | | | | | | | | | This was discussed during the 10.2-RELEASE cycle, however since we were nearing the end of the cycle, we decided to defer this change until after 10.2-RELEASE. Reminded by: so (delphij), jmg MFC after: 5 days Sponsored by: The FreeBSD Foundation
* Append VMFORMATS and VMSIZE to RELEASE_RMAKEFLAGS only ifgjb2015-09-281-2/+2
| | | | | | | | WITH_VMIMAGES is set. MFC after: 3 days X-MFC-With: r288341, r288345 Sponsored by: The FreeBSD Foundation
* In followup to r288341, ensure VMFORMATS and VMSIZE are notgjb2015-09-281-1/+12
| | | | | | | | | | set to empty values, which would result in nonintuitive build errors. MFC after: 3 days X-MFC-With: r288341 PR: 203420 (related to) Sponsored by: The FreeBSD Foundation
* Honor VMFORMATS and VMSIZE if set in release.conf.gjb2015-09-281-0/+1
| | | | | | | PR: 203420 Submitted by: luca <dot> pizzamiglio <at> gmail <dot> com MFC after: 3 days Sponsored by: The FreeBSD Foundation
*-. Merge ^/projects/release-arm-redux into ^/head.gjb2015-05-091-228/+330
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Of note: - This commit adds native FreeBSD/arm release build support without requiring out-of-tree utilities. - Part of this merge removes the WANDBOARD-{SOLO,DUAL,QUAD} kernel configuration files, for which the IMX6 kernel configuration file should be used instead. - The resulting images have a 'freebsd' user (password 'freebsd'), to allow ssh(1) access when console access is not available (VGA or serial). The default 'root' user password is set to 'root'. - The /etc/ttys file for arm images now enable both ttyv0 and ttyu0 by default. Help from: many (boot testing, feedback, etc.) Sponsored by: The FreeBSD Foundation
| * | Sigh. Really fix CHECKSUM file creation.gjb2015-05-081-4/+4
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Fix CHECKSUM file creation.gjb2015-05-081-4/+4
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Do not include '/R' in the path when generating checksums, sincegjb2015-05-081-2/+2
| | | | | | | | | | | | | | | | | | that will cause '/R' to be included in the CHECKSUM files. Sponsored by: The FreeBSD Foundation
| * | Move the finished image build to the '/R' directory (thegjb2015-05-081-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | standard 'install' location for other architectures), then compress the image with xz(1), and generate the CHECKSUM files. Sponsored by: The FreeBSD Foundation
| * | Fix the name of the final image.gjb2015-05-081-1/+1
| | | | | | | | | | | | | | | | | | Sigh. Thou shalt not commit before coffee. Sponsored by: The FreeBSD Foundation
| * | Rename KERNEL.img -> OSRELEASE-KERNEL.img when complete.gjb2015-05-081-0/+4
| | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | Fix paths.gjb2015-05-071-3/+5
| | | | | | | | | | | | | | | | | | | | | Remove the temporary directory when done with it. Destroy the md(4) device when done with it. Sponsored by: The FreeBSD Foundation
| * | In release.sh, create the /dev directory within the chrootgjb2015-05-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before attempting to mount(8) devfs. Also, create the .OBJDIR for the 'release' target, so files end up in the correct location. In tools/arm.subr, fix the target device when creating the gpart partition scheme. Sponsored by: The FreeBSD Foundation
| * | Use the correct variable for the tools/TARGET.conf file.gjb2015-05-061-2/+2
| |/ | | | | | | Sponsored by: The FreeBSD Foundation
| * Add tools/arm.subr to contain common subroutines used forgjb2015-05-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | building arm images. This is similar to tools/vmimage.subr used for building virtual machine disk images. By default, only arm_create_disk() and arm_install_base() contain real functionality here, and arm_install_uboot() must be overridden in the arm/KERNEL.conf file. In release.sh, make create_arm_armv6_build_release() do something now. In arm/BEAGLEBONE.conf, set IMAGE_SIZE, PART_SCHEME, FAT_SIZE, FAT_TYPE, and MD_ARGS, as well as make arm_install_uboot() functional. Parts of this were taken from disecting a previous BEAGLEBONE image, and other parts obtained from Crochet sources. Sponsored by: The FreeBSD Foundation
| * Evaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCHgjb2015-05-061-14/+24
| | | | | | | | | | | | | | | | of the build target. Move arm/armv6 'release' bits to chroot_arm_armv6_build_release(). Sponsored by: The FreeBSD Foundation
| * buildenv_setup(), if overridden in the configuration file,gjb2015-05-061-2/+2
| | | | | | | | | | | | only needs to be invoked once. Sponsored by: The FreeBSD Foundation
| * Remove Crochet invocation.gjb2015-05-061-20/+2
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * Update the arm/*.conf configuration files to only setgjb2015-05-061-0/+8
| | | | | | | | | | | | | | | | | | | | EMBEDDEDBUILD, EMBEDDED_TARGET, EMBEDDED_TARGET_ARCH, EMBEDDEDPORTS, and KERNEL. In release.sh, set TARGET and TARGET_ARCH to the EMBEDDED_* variants from the configuration file. Sponsored by: The FreeBSD Foundation
| * In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.gjb2015-05-061-1/+8
| | | | | | | | | | | | | | | | | | Move the port build for EMBEDDEDPORTS (if set) from arm/release.sh to release.sh. Remove arm/release.sh. Sponsored by: The FreeBSD Foundation
| * Add a return to chroot_build_target().gjb2015-05-061-18/+18
| | | | | | | | | | | | | | In chroot_build_release(), reverse the order evaluating EMBEDDEDBUILD. Sponsored by: The FreeBSD Foundation
| * Wrap long lines in comments after previous commits that indentedgjb2015-05-061-20/+22
| | | | | | | | | | | | the file. Sponsored by: The FreeBSD Foundation
| * Ensure resolv.conf exists on the build host before attemptinggjb2015-05-061-6/+8
| | | | | | | | | | | | | | | | to copy it to the build chroot. Move where the ldconfig(8) startup script is invoked. Sponsored by: The FreeBSD Foundation
| * Move where the configuration file is sourced if '-c'gjb2015-05-061-6/+8
| | | | | | | | | | | | | | is specified. If the configuration file does not exist, proceed with the default options instead of exiting. Sponsored by: The FreeBSD Foundation
| * Move the trap after env_check(), since CHROOTDIR may begjb2015-05-061-1/+1
| | | | | | | | | | | | redefined. Sponsored by: The FreeBSD Foundation
| * Shorten long lines.gjb2015-05-061-5/+9
| | | | | | | | Sponsored by: The FreeBSD Foundation
| * Move PATH and export to the same line.gjb2015-05-061-3/+8
| | | | | | | | | | | | | | Handle svn or svnlite being installed in /usr/bin or /usr/local/bin. Sponsored by: The FreeBSD Foundation
| * Add documentation for newly-added functions.gjb2015-05-061-10/+23
| | | | | | | | | | | | | | | | While here, move CHROOT_* and RELEASE_* variables from env_setup() to env_check() since they may change if a release.conf file is used. Sponsored by: The FreeBSD Foundation
| * Add the following functions to release.sh to organize and makegjb2015-05-061-235/+273
| | | | | | | | | | | | | | | | | | | | | | | | | | | | clear the workflow: - env_setup() - env_check() - chroot_setup() - extra_chroot_setup() - chroot_build_target() - chroot_build_release() There should be no functional changes at this point. Sponsored by: The FreeBSD Foundation
| * MFH: r282315-r282534gjb2015-05-061-0/+1
| |\ | |/ |/| | | Sponsored by: The FreeBSD Foundation
| * MFH: r280643-r281852gjb2015-04-221-0/+2
| |\ | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * \ MFH: r278968-r280640gjb2015-03-251-1/+2
| |\ \ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * \ \ MFH: r278202,r278205-r278590gjb2015-02-111-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
| * | | | Set a VERSION value.gjb2015-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation
* | | | | Add initial support for building RPI2 images.gjb2015-05-051-0/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In release.sh, allow overriding buildenv_setup() before the handoff to arm/release.sh. Copy arm/RPI-B.conf -> arm/RPI2.conf, set UBOOT_PORT and the correct KERNEL, and add the buildenv_setup() override to install the sysutils/u-boot-rpi2 port/package. Copy tools/arm/crochet-RPI-B.conf -> tools/arm/crochet-RPI2.conf, and set the correct entries for the RaspberryPi2 board. Thanks to: loos@ Sponsored by: The FreeBSD Foundation
* | | | Merge the following from ^/projects/release-arm64 to allowgjb2015-04-211-0/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | building FreeBSD/arm64 VM images and memstick.img installation medium: r281786, r281788, r281792: r281786: Add support for building arm64/aarch64 virtual machine images. r281788: Copy amd64/make-memstick.sh to arm64/make-memstick.sh for aarch64 memory stick images. Although arm64 does not yet have USB support, the memstick image should be bootable with certain virtualization tools, such as qemu. r281792: Add a buildenv_setup() prototype, intended to be overridden as needed. For example, the arm64/aarch64 build needs devel/aarch64-binutils, so buildenv_setup() in the release.conf for this architecture handles the installation of the port before buildworld/buildkernel. Sponsored by: The FreeBSD Foundation
* | | Default XZ_THREADS=0, and add to RELEASE_RMAKEFLAGSgjb2015-02-201-1/+2
| |/ |/| | | | | | | | | | | so it is passed to the 'release' make(1) target if it needs to be adjusted to a non-zero integer. Sponsored by: The FreeBSD Foundation
* | Bump copyright after r277458.gjb2015-02-041-1/+1
|/ | | | | | | MFC after: 2 weeks X-MFC-with: r277458, r277536, r277606, r277609, r277836, r278118, r278119 Sponsored by: The FreeBSD Foundation
* Add examples for WITH_CLOUDWARE to release.conf.sample.gjb2014-11-041-1/+6
| | | | | | Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS. Sponsored by: The FreeBSD Foundation
* Add WITH_COMPRESSED_VMIMAGES variable, which when set enablesgjb2014-10-021-1/+7
| | | | | | | | | | xz(1) compression of the virtual machine images. This is intentionally separate to allow more fine-grained tuning over which images are compressed, especially in cases where compressing 20GB sparse images can take hours. Sponsored by: The FreeBSD Foundation
* release/Makefile:gjb2014-09-281-1/+1
| | | | | | | | | | | | | | | Connect the virtual machine image build to the release target if WITH_VMIMAGES is set to a non-empty value. release/release.sh: Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS. release/release.conf.sample: Add commented entries for tuning the release build if the WITH_VMIMAGES make(1) environment variable is set to a non-empty value. Sponsored by: The FreeBSD Foundation
* Wrap a long line.gjb2014-08-241-1/+2
| | | | | | MFC after: 3 days X-MFC-with: r270417, r270418, r270455 Sponsored by: The FreeBSD Foundation
* Set OSREL and UNAME_r in release/release.sh when buildinggjb2014-08-241-1/+5
| | | | | | | | | ports to prevent ports build failures from killing the release build. MFC after: 3 days X-MFC-with: r270417, r270418 Sponsored by: The FreeBSD Foundation
* Merge the following from ^/projects/release-noxdev:gjb2014-08-061-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r269549, r269551, r269552, r269553, r269554, r269555, r269558, r269559, r269560, r269561, r269628, r269629, r269630, r269635, r269637: r269549: Create a new project branch, release-noxdev, for a sandbox workspace outside of head/ to update the release bits for arm builds since the deprecation of the XDEV and XDEV_ARCH make(1) variables. r269551: Define load_chroot_env() and load_target_env() prototypes. r269552: Call load_chroot_env() and load_target_env() where they can be mutually conflicting with regard to TARGET, TARGET_ARCH, XDEV, and XDEV_ARCH. r269553: Add shebang line to arm/*.conf files since these should be considered to be executable (albeit not on their own) shell scripts. r269554: Redefine load_chroot_env() and load_target_env() in the arm/*.conf files, and reindent. r269555: Simplify where load_chroot_env() and load_target_env() are called. r269558: Provide example in release.conf.sample for overriding the load_chroot_env() and load_target_env() prototypes. r269559: Remove a gratuitous newline. r269560: Unset potentially conflicting variables in load_chroot_env() and load_target_env(). r269561: Make global variables global, and accessible outside of the functions within which they were once defined. r269628: Remove XDEV/XDEV_ARCH evaluation if EMBEDDEDBUILD is set. r269629: In arm/release.sh, switch TARGET/TARGET_ARCH back to the original XDEV/XDEV_ARCH make(1) variables. In theory, this should have been a no-op, but the TARGET and TARGET_ARCH are now unset in load_target_env() to avoid collision with the chroot userland. r269630: Export variables in the arm/*.conf files because they need to be passed through release.sh to arm/release.sh. Set MK_TESTS=no for the xdev target. r269635: As part of the XDEV/XDEV_ARCH deprecation, the 'xdev-links' target was intentionally no longer invoked automatically. Invoke the xdev-links target after xdev, which creates, for example, /usr/bin/armv6-freebsd-cc symlink to /usr/armv6-freebsd/usr/bin/cc. r269637: Set TARGET and TARGET_ARCH to the XDEV and XDEV_ARCH counterparts for the xdev and xdev-links make(1) targets. Sponsored by: The FreeBSD Foundation
* Add SRC_UPDATE_SKIP, DOC_UPDATE_SKIP, and PORTS_UPDATE_SKIPgjb2014-04-111-3/+5
| | | | | | | | | | | | | | | | variables. These are intended to allow bypassing the 'svn co /usr/{src,doc,ports}' step in the chroot when the tree exists from external means. The use case here is that /usr/src, /usr/doc, and /usr/ports in the chroot exist as result of zfs dataset clones, so it is possible (and happens quite often) that the included distributions may not be consistent. (This is not the case for -RELEASE builds, but does happen for snapshot builds.) Tested on: stable/9@r264319 MFC After: 3 days Sponsored by: The FreeBSD Foundation
* Add a new release build variable, WITH_COMPRESSED_IMAGES.gjb2014-04-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | When set to a non-empty value, the installation medium is compressed with gzip(1) as part of the 'install' target in the release/ directory. With gzip(1) compression, downloadable image are reduced in size quite significantly. Build test against head@263927 shows the following: bootonly.iso: 64% smaller disc1.iso: 44% smaller memstick.img: 47% smaller mini-memstick.img: 65% smaller dvd1.iso: untested This option is off by default, I would eventually like to turn it on by default, and remove the '-k' flag to gzip(1) so only compressed images are published on FTP. Requested by: wkoszek MFC After: 1 week Sponsored by: The FreeBSD Foundation
* Add a hack-ish attempt to provide backwards-compatibility withgjb2014-03-061-0/+10
| | | | | | | | | | release.conf SVNROOT entries that do not have a trailing '/'. In order to provide a mechanism to use !svn, the trailing '/' was added to SVNROOT so there were no assumptions being made about '/' being in the URL between SVNROOT and SRCBRANCH. Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud