aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
Commit message (Collapse)AuthorAgeFilesLines
* Only copy /etc/resolv.conf to ${CHROOTDIR} if /etc/resolv.conf doesGlen Barber2017-11-151-2/+2
| | | | | | | | | | | | not already exist within ${CHROOTDIR}. This allows re-using a build chroot with CHROOTBUILD_SKIP set to a non-empty value and CHROOTDIR set to '/' in release.conf. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325863
* Update the GUMSTIX image build to use arm/arm TARGET/TARGET_ARCH.Glen Barber2017-11-131-1/+1
| | | | | | | | | | | | Update the TARGET/TARGET_ARCH matching in release/release.sh and release/Makefile.mirrors for simplification. Discussed with: mmel MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325769
* Specify WITH_UNIFIED_OBJDIR in chroot_arm_build_release() toGlen Barber2017-11-061-8/+8
| | | | | | | | | ensure the output image is created in the correct .OBJDIR. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325490
* Include TARGET and TARGET_ARCH in chroot_arm_build_release()Glen Barber2017-11-031-4/+6
| | | | | | | | | | make(1) invocations following the OBJDIR restructuring to ensure the output arm SoC image is in the correct directory. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325366
* Add arm/armv7 checks to env_check().Glen Barber2017-10-121-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=324567
* Always expand the full path to the configuration file specifiedGlen Barber2017-08-151-1/+1
| | | | | | | | | | with the '-c' flag. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=322544
* Include WORLD_FLAGS in CHROOT_IMAKEFLAGS and CHROOT_DMAKEFLAGS, toGlen Barber2017-06-231-2/+2
| | | | | | | | | | allow passing '-jN' to the installworld and distributeworld targets. Submitted by: bdrewery Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=320289
* In release/release.sh:Glen Barber2017-06-231-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | - Rename chroot_arm_armv6_build_release() to chroot_arm_build_release() and make it hardware agnostic (such as armv6 -vs- armv7 -vs- arm64). - Evaluate EMBEDDED_TARGET differently so release/tools/arm.subr can be used for arm/armv6 and arm64/aarch64. - Update comments and copyright. In release/tools/arm.subr: - In arm_create_disk(), change the default alignment from 63 to 512k, fixing a boot issue on arm64 and EFI. [1] - Update comments and copyright. Add a RPI3 configuration file, pieces obtained from Crochet. Obtained from: Crochet [1] MFC after: 5 days X-MFC-Note: maybe Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=320252
* Pass overrides to make(1) when building ports for arm/armv6Glen Barber2016-08-091-1/+7
| | | | | | | | | | | | targets, similar to what is done for the run-autotools-fixup override for non-arm targets. MFC after: 3 days Tested on: 12-CURRENT building 10-STABLE Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=303897
* One of the already implemented options in release/Makefile is NOSRC. WhenRenato Botelho2016-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 Notes: svn path=/head/; revision=301280
* Set FORCE_PKG_REGISTER=1 when installing packages to avoid failuresGlen Barber2016-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 Notes: svn path=/head/; revision=293452
* Deprecate MD5 checksum generation in favor of SHA512.Glen Barber2015-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 Notes: svn path=/head/; revision=289337
* Append VMFORMATS and VMSIZE to RELEASE_RMAKEFLAGS only ifGlen Barber2015-09-281-2/+2
| | | | | | | | | | | WITH_VMIMAGES is set. MFC after: 3 days X-MFC-With: r288341, r288345 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288347
* In followup to r288341, ensure VMFORMATS and VMSIZE are notGlen Barber2015-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 Notes: svn path=/head/; revision=288345
* Honor VMFORMATS and VMSIZE if set in release.conf.Glen Barber2015-09-281-0/+1
| | | | | | | | | | PR: 203420 Submitted by: luca <dot> pizzamiglio <at> gmail <dot> com MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288341
* Merge ^/projects/release-arm-redux into ^/head.Glen Barber2015-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 Notes: svn path=/head/; revision=282693
| * Sigh. Really fix CHECKSUM file creation.Glen Barber2015-05-081-4/+4
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282637
| * Fix CHECKSUM file creation.Glen Barber2015-05-081-4/+4
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282636
| * Do not include '/R' in the path when generating checksums, sinceGlen Barber2015-05-081-2/+2
| | | | | | | | | | | | | | | | | | that will cause '/R' to be included in the CHECKSUM files. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282629
| * Move the finished image build to the '/R' directory (theGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282628
| * Fix the name of the final image.Glen Barber2015-05-081-1/+1
| | | | | | | | | | | | | | | | | | Sigh. Thou shalt not commit before coffee. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282627
| * Rename KERNEL.img -> OSRELEASE-KERNEL.img when complete.Glen Barber2015-05-081-0/+4
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282626
| * Fix paths.Glen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282589
| * In release.sh, create the /dev directory within the chrootGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282573
| * Use the correct variable for the tools/TARGET.conf file.Glen Barber2015-05-061-2/+2
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282570
| * Add tools/arm.subr to contain common subroutines used forGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282566
| * Evaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCHGlen Barber2015-05-061-14/+24
| | | | | | | | | | | | | | | | | | | | | | of the build target. Move arm/armv6 'release' bits to chroot_arm_armv6_build_release(). Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282564
| * buildenv_setup(), if overridden in the configuration file,Glen Barber2015-05-061-2/+2
| | | | | | | | | | | | | | | | | | only needs to be invoked once. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282557
| * Remove Crochet invocation.Glen Barber2015-05-061-20/+2
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282556
| * Update the arm/*.conf configuration files to only setGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282554
| * In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.Glen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282553
| * Add a return to chroot_build_target().Glen Barber2015-05-061-18/+18
| | | | | | | | | | | | | | | | | | | | In chroot_build_release(), reverse the order evaluating EMBEDDEDBUILD. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282548
| * Wrap long lines in comments after previous commits that indentedGlen Barber2015-05-061-20/+22
| | | | | | | | | | | | | | | | | | the file. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282546
| * Ensure resolv.conf exists on the build host before attemptingGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282545
| * Move where the configuration file is sourced if '-c'Glen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282544
| * Move the trap after env_check(), since CHROOTDIR may beGlen Barber2015-05-061-1/+1
| | | | | | | | | | | | | | | | | | redefined. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282543
| * Shorten long lines.Glen Barber2015-05-061-5/+9
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282542
| * Move PATH and export to the same line.Glen Barber2015-05-061-3/+8
| | | | | | | | | | | | | | | | | | | | Handle svn or svnlite being installed in /usr/bin or /usr/local/bin. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282541
| * Add documentation for newly-added functions.Glen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282540
| * Add the following functions to release.sh to organize and makeGlen Barber2015-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 Notes: svn path=/projects/release-arm-redux/; revision=282539
| * MFH: r282315-r282534Glen Barber2015-05-061-0/+1
| |\ | |/ |/| | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=282535
| * MFH: r280643-r281852Glen Barber2015-04-221-0/+2
| |\ | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=281853
| * \ MFH: r278968-r280640Glen Barber2015-03-251-1/+2
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=280641
| * \ \ MFH: r278202,r278205-r278590Glen Barber2015-02-111-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=278591
| * | | | Set a VERSION value.Glen Barber2015-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-arm-redux/; revision=278203
* | | | | Add initial support for building RPI2 images.Glen Barber2015-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 Notes: svn path=/head/; revision=282500
* | | | Merge the following from ^/projects/release-arm64 to allowGlen Barber2015-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 Notes: svn path=/head/; revision=281802
* | | Default XZ_THREADS=0, and add to RELEASE_RMAKEFLAGSGlen Barber2015-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 Notes: svn path=/head/; revision=279074
* | Bump copyright after r277458.Glen Barber2015-02-041-1/+1
|/ | | | | | | | | | MFC after: 2 weeks X-MFC-with: r277458, r277536, r277606, r277609, r277836, r278118, r278119 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=278206
* Add examples for WITH_CLOUDWARE to release.conf.sample.Glen Barber2014-11-041-1/+6
| | | | | | | | | Add WITH_CLOUDWARE evaluation to RELEASE_RMAKEFLAGS. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-vmimage/; revision=274071