aboutsummaryrefslogtreecommitdiff
path: root/release/release.sh
Commit message (Collapse)AuthorAgeFilesLines
* release: permanently remove the 'reldoc' target and associatesGlen Barber2021-02-181-50/+6
| | | | | | | | | | | | | | | Following 7b1d1a1658ffb69eff93afc713f9e88ed8b20eac, the structure for the reldoc target has significantly changed as result of the ASCIIDoctor/Hugo migration. As the release notes related files on the installation medium are inherently out of date, purge them entirely. Discussed within: re, doceng No objection: re (silence), doceng (silence) Timeout: 2 weeks MFC after: 1 week MFC to: stable/13, stable/12, and stable/11 only Sponsored by: Rubicon Communications, LLC ("Netgate")
* release.sh: fix OSVERSION and UNAME_r overridesGlen Barber2021-02-111-0/+7
| | | | | | | | | Add PBUILD_FLAGS and UNAME_r overrides to extra_chroot_setup() to fix building ports for 14-CURRENT builds on 13.x. MFC after: 3 days MFC with: c511a5ab53ba335dc85f7ac93843872eb5763602 Sponsored by: Rubicon Communications, LLC ("Netgate")
* release.sh: Skip installing textproc/docproj when NODOC is setGlen Barber2021-02-031-1/+1
| | | | | | | PR: 253192 Submitted by: Yasuhiro Kimura MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate")
* release: update workaround during transition to gitGlen Barber2021-02-021-2/+5
| | | | | | | PR: 253181 Submitted by: Yasuhiro Kimura MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate")
* release: fix PORT variableGlen Barber2021-01-201-1/+1
| | | | | Reported by: Yasuhiro Kimura (yasu xat utahime dot org) Sponsored by: Rubicon Communications, LLC ("Netgate")
* release.sh: bump Copyright year after previous commitGlen Barber2021-01-191-1/+1
| | | | Sponsored by: Rubicon Communications, LLC (netgate.com)
* release: Add workaround to use SVN for portsGlen Barber2021-01-191-3/+17
| | | | | | | | | | The ports tree is scheduled to be converted from Subversion to Git after the currently-scheduled 13.0-RELEASE, so the source of truth will be Subversion for the ports tree. Implement a hack specifically for this case. Sponsored by: Rubicon Communications, LLC (netgate.com)
* release.sh: Update GITROOT URLGlen Barber2020-12-291-4/+3
| | | | | | | | | Hard-code the GITROOT for the ports tree to use cgit-beta until the ports repository is converted. While here, remove $FreeBSD$ RCS IDs. Sponsored by: Rubicon Communications, LLC (netgate.com)
* release.sh: add support for RISC-V embedded buildsMitchell Horne2020-12-081-2/+5
| | | | | | | | | | | | | | | Since the few existing RISC-V hardware platforms are single board computers, we can piggyback off of arm/arm64's embedded build support for generating SD card images. I don't see a pressing need to change the naming in this file at this time. Reviewed by: gjb, manu Differential Revision: https://reviews.freebsd.org/D27043 Notes: svn path=/head/; revision=368421
* Fix setting RELENGDIR when release.sh is called from an externalGlen Barber2020-09-141-1/+3
| | | | | | | | | script. Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=365725
* Fix indentation following r365638. No functional changes.Glen Barber2020-09-111-25/+25
| | | | | | | Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=365639
* Add a NOGIT option to avoid explicitly requiring devel/git if theGlen Barber2020-09-111-1/+3
| | | | | | | | | | sources are obtained through a different mechanism. Reported and tested by: Ruslan Garipov Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=365638
* Fix ordering of the 'pull' subcommand and the '-q' flag.Glen Barber2020-08-291-3/+3
| | | | | | | | Pointyhat to: gjb (myself) Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364968
* Restore the '-q' flag to the 'git pull' command.Glen Barber2020-08-291-3/+3
| | | | | | | Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364967
* Remove the VCSUPDATE command, because git is too stupid to haveGlen Barber2020-08-291-4/+3
| | | | | | | | | | | | the '-C <directory>' after the subcommand. Meanwhile, hard-code 'git -C <...> pull' for now. Reported by: Michael Butler Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364966
* Refine the VCSUPDATE logic further:Glen Barber2020-08-291-6/+6
| | | | | | | | | | - Look for the .git directory instead of top-level directory. - Use 'git -C' instead of cd(1). Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364960
* Add a VCSUPDATE command to run 'git pull' instead of 'git clone'Glen Barber2020-08-291-3/+16
| | | | | | | | | | if the tree already exists. Reported by: Michael Butler Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364959
* Install devel/git from packages if NOPORTS is set in the release.shGlen Barber2020-08-291-0/+5
| | | | | | | | | | configuration file. Reported by: Michael Butler Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=364956
* Correct the conditional evaluating if git exists.Glen Barber2020-08-271-1/+1
| | | | | | | | Pointyhat to: gjb (myself) Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=364868
* Do not unconditionally build git from ports if it already exists.Glen Barber2020-08-271-1/+2
| | | | | | | Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=364866
* Fix passing OPTIONS_UNSET with multiple options to make(1).Glen Barber2020-08-271-2/+3
| | | | | | | | | While here, adjust the copyright. Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=364862
* Remove an escape that does not belong.Glen Barber2020-08-241-1/+1
| | | | | | | Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=364724
* release: update to use git instead of svn:Glen Barber2020-08-121-1/+1
| | | | | | | | | | | | | | | | Makefile.* (cloudware): - Consistify setting the BUILDDATE for snapshots. release.conf.sample/release.sh: - Run 'git clone' in 'quiet' mode. Makefile.inc1: - Set BUILDDATE and export the variable. Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=364170
* release: update to use git instead of svn:Glen Barber2020-07-311-37/+44
| | | | | | | | | | | | | | | | | | | | | | release.sh: - Bump the version number. - Default VCSCMD to '/usr/local/bin/git clone'. - Rename SVN* variables to GIT* equivalents. - Remove dead code to inject a trailing '/' between two variables. - Remove SRC_FORCE_CHECKOUT. - Exit if the build host does not have devel/git installed. - Install devel/git in the build chroot(8) for newvers.sh. release.conf.sample: - Update sample configuration variables to the git equivalent. relnotes-search.sh: - Remove script. It is specifically for use with svn. Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/projects/release-git/; revision=363740
* release: amd64 efi boot name is bootx64Emmanuel Vadot2020-06-091-1/+1
| | | | | | | | | | efi_boot_name is just used for arm image so no harm done. Reported by: gonzo MFC after: 3 days Notes: svn path=/head/; revision=361980
* Fix passing ${CONF_FILES} (which contains MAKE_CONF andGlen Barber2019-06-171-0/+1
| | | | | | | | | | | | | | | | SRC_CONF, __MAKE_CONF and SRCCONF, respectively) through to arm_install_base() and chroot_arm_build_release(). This prevents failures when the target image is intended to be build with make.conf(5) and src.conf(5) overrides, which are correctly handled for non-embedded image builds. Reported and tested by: Daniel Engberg PR: 238615 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=349160
* Set OPTIONS_UNSET in the argument list to env(1), and addGlen Barber2018-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | AVAHI to the list. This fixes the textproc/docproj build seemingly following FLAVORS being added. Specifically, the problem with the dependency chain here is: - textproc/docproj depends on print/cups, which sets AVAHI=on by default; - net/avahi-app depends on devel/gobject-introspection, which requires python3+; - graphics/netpbm depends on graphics/mesa-libs, which can only be built with python2.7; - textproc/docproj depends on a number of graphics ports for font rendering, etc. MFC after: 3 days MFC before: 12.0-BETA3 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=339873
* release: Deinstall u-boot ports before installingEmmanuel Vadot2018-07-311-1/+1
| | | | | | | | | | | | FORCE_PKG_REGISTER is broken so multiple invocation of release.sh for the same board will fails if /scratch isn't cleaned. Leave it but deinstall the package first. Reviewed by: gjb Differential Revision: https://reviews.freebsd.org/D16513 Notes: svn path=/head/; revision=336995
* release: arm: Use BOARDNAME in the image nameEmmanuel Vadot2018-07-311-5/+5
| | | | | | | | | | | Using KERNEL made sense when all boards had different kernel configuration. Now that all of them are using GENERIC use the board name instead Reviewed by: gjb Differential Revision: https://reviews.freebsd.org/D16512 Notes: svn path=/head/; revision=336994
* release: Add arm_install_boot to install the commit boot bitsEmmanuel Vadot2018-07-221-0/+16
| | | | | | | | | | | | | This reduce the per-board arm_install_uboot to just install u-boot. While here remove the installation of rpi.dtb and rpi2.dtb as we load them from the UFS partition via ubldr. Reviewed by: gjb, imp (older version) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D16239 Notes: svn path=/head/; revision=336599
* Bump Copyright year following r328283.Glen Barber2018-01-231-1/+1
| | | | | | | | | MFC after: 3 days MFC with: r328283 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=328284
* When CHROOTBUILD_SKIP is set, evaluate the existence of /bin/shGlen Barber2018-01-231-0/+5
| | | | | | | | | | | | within the CHROOTDIR. If it does not exist, unset CHROOTBUILD_SKIP to prevent build failures. Requested by: swills MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=328283
* Fix port build flags passed to make(1) after r326315, whereGlen Barber2017-11-301-4/+8
| | | | | | | | | | | it was missed for embedded image builds. MFC after: 3 days MFC with: r326315 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326412
* Set DISTDIR and WRKDIRPREFIX when building ports within theGlen Barber2017-11-281-0/+2
| | | | | | | | | | | chroot(8) to avoid mtime changes within the ports checkout, which can cause checksum differences. MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=326315
* 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