Commit Graph

7424 Commits

Author SHA1 Message Date
gjb
10fa74d463 Fix path to waagent.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-19 23:03:05 +00:00
gjb
a8ea24e379 Add Makefile.azure, used to upload VHD images to the
Microsoft Azure environment, similar to the EC2 AMIs.

MFC after:	3 days
Tested with:	stable/10@r284517 (patched)
Sponsored by:	The FreeBSD Foundation
2015-06-18 19:20:00 +00:00
gjb
bab219a40b Increase the FreeBSD/arm image sizes back to 1G for 11-CURRENT.
While 480M is sufficient for 10-STABLE, 11-CURRENT images at
this size fail due to insufficient space.

This commit is solely for the sake of getting updated snapshot
builds out, after which I'll analyze the resulting images to
figure out what a more sane value is, even if the image size
for 11-CURRENT needs to differ from 10-STABLE.

Sponsored by:	The FreeBSD Foundation
2015-06-18 10:26:27 +00:00
gjb
e8be5ee990 Reduce the arm/armv6 image size from 1G to 480M.
Since the images are effectively mostly zeros at 1G,
reduce the size to allow installation on smaller SD
cards, such as 512Mb.

While here, stop writing the /boot.txt file on the
WANDBOARD, which isn't used anyway.

Discussed with:	imp
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-12 19:42:27 +00:00
gjb
80c10f52a7 Set the correct UBLDR_LOADADDR for the Wandboard and
Cubox/Hummingboard images.

Submitted by:	ian
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-06 21:11:17 +00:00
gjb
043d779d9b Work around a potential bug in pw(8) when '-m' is specified.
According to the manual page, '-m' should create the user home
directory, however rigorous testing suggests it does not, and
it is unclear if this is an implementation or expectation issue.

Sponsored by:	The FreeBSD Foundation
2015-06-05 02:22:04 +00:00
gjb
b86973a665 Make sure /home exists within the DESTDIR before creating the
'freebsd' user account.

Sponsored by:	The FreeBSD Foundation
2015-06-04 23:11:24 +00:00
gjb
3eca9cadb1 Fix a whitespace nit.
Sponsored by:	The FreeBSD Foundation
2015-06-04 16:33:29 +00:00
gjb
365501d41f Add initial support for building images for the Duovero Gumstix
board.

Sponsored by:	The FreeBSD Foundation
2015-06-04 16:32:16 +00:00
gjb
de010910ed Use the new pw(8) '-R' option to create the users/groups.
MFC after:	1 week
X-MFC-after:	r283961
Sponsored by:	The FreeBSD Foundation
2015-06-03 19:19:25 +00:00
gjb
8652055e8c Add a configuration file to support the Cubox/Hummingboard SoC.
Sponsored by:	The FreeBSD Foundation
2015-06-02 17:03:31 +00:00
gjb
ed06759ba3 Remove trailing tabs to avoid spamming stdout with long lines.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-02 17:00:31 +00:00
gjb
a82be33c48 Pass the '-b' argument to pw(8) so the '/home' directory is created
in the correct place.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-02 15:02:30 +00:00
gjb
7447f1a3e1 In arm_create_disk(), disable soft updates journaling.
Disabling soft updates journaling appears to resolve issues
with kernel panics, and may also be generally bad to have
enabled for SD cards.

Requested by:	ian
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-01 21:10:47 +00:00
gjb
e961ac3d2e Re-enable arm_create_user(), and pass the '-V DESTDIR/etc' to
pw(8) to set the correct /etc directory for the user/group
files.

Provided by:	ian (thanks!)
MFC after:	3 days
X-MFC-with:	r283894
Sponsored by:	The FreeBSD Foundation
2015-06-01 20:59:18 +00:00
gjb
911994babe Disable arm_create_user(). As-is, this does not create the
user in the userland for the target image, but creates the
user in the build chroot.

Before this is re-enabled, I want to figure out a clean way
to do this without requiring the overhead of third-party
utilities (such as qemu).

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-06-01 20:26:38 +00:00
gjb
5ef8cb28c1 Export 'BOARDNAME' when differs from the KERNCONF.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-29 02:16:40 +00:00
gjb
7861506d9f Sort configuration options for consistency with other boards.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-29 02:15:05 +00:00
gjb
3a86cbbbcb Invert the build date and svn revision to match the namimg
convention that has been in use for a while.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-27 17:33:30 +00:00
gjb
77794ebe2d Fix a typo.
Submitted by:	ian
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 21:58:22 +00:00
gjb
2f93a7904f Use SVNREVISION and BUILDDATE if passed into the make(1)
environment, fallback to trying to figure it out otherwise.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 20:51:44 +00:00
gjb
f54a2f297a Reindent after r283575.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 17:44:31 +00:00
gjb
3e1e05878e Remove duplicate exists() sanity check.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 17:42:28 +00:00
gjb
8e21d8b251 Set STAGE_TARGETS only if RELEASEDIR exists.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 17:40:36 +00:00
gjb
6e843aaf85 Remove a continuation on error, since the relevant behavior can
only occur if a particular file exists.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-26 17:34:56 +00:00
gjb
9c12e1b094 Use mkimg(1) to create the i386 memstick images, similar to
how is done for amd64.  The exception here is there is no
EFI partition for i386.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-23 00:32:58 +00:00
gjb
f378874c7a Fix staging virtual machine images for ftp propagation.
MFC after:	3 days
X-MFC-Note:	needs all previous changes
Sponsored by:	The FreeBSD Foundation
2015-05-22 21:38:11 +00:00
gjb
72b5c02439 Fix a number of logic and/or naming problems in Makefile.mirrors.
Reduce a number of duplicated logic.

As of this commit, this file does exactly what it is needed to do.

MFC after:	3 days
X-MFC-Note:	needs all previous changes
Sponsored by:	The FreeBSD Foundation
2015-05-22 21:04:42 +00:00
gjb
bc74bc7ccc Fix make(1) syntax error for non-embedded targets.
Sponsored by:	The FreeBSD Foundation
2015-05-21 22:50:39 +00:00
gjb
0641ba25df If TARGET or EMBEDDED_TARGET == arm, set EMBEDDED variable,
which helps control some of the arm-specific bits a bit more
cleanly (but not really 'clean').

If BOARDNAME is defined (as is in the WANDBOARD configuration
RE uses), do some magic to work with the KERNCONF and BOARDNAME
to rename the file, making it a bit more intuitive for the
consumer to determine which they need.

Yes, it is ugly, that is why there is a big warning at the top.
It is, however, still much cleaner than the now 474-line shell
script, and this Makefile produces the hierarchy needed without
much evil.

MFC after:	1 week
X-MFC-Note:	needs all previous Makefile.mirror commits
Sponsored by:	The FreeBSD Foundation
2015-05-21 22:11:57 +00:00
gjb
c06534502b Remove the arm/armv6 bits from Makefile.mirrors, which needs
some re-thinking.

Sponsored by:	The FreeBSD Foundation
2015-05-21 20:43:02 +00:00
gjb
2b3486294e Include xz(1)-compressed images when not a snapshot build.
Do not suffix non-snapshot checksum files with SNAP_SUFFIX.

Sponsored by:	The FreeBSD Foundation
2015-05-21 20:22:55 +00:00
gjb
b4ea1ed9e1 cd(1) to .CURDIR before calling stat(1) to fix the path
to sh(1).

Include xz(1)-compressed images when renaming snapshot
builds.

Use OSRELEASE in place of REVISION-BRANCH for checksum
filenames.

Sponsored by:	The FreeBSD Foundation
2015-05-21 20:18:13 +00:00
gjb
ba307f79ae Include the TARGET in the EC2 AMI name.
Without this, AWS rejects subsequent image uploads of a different
architecture because the name conflicts.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-21 17:39:42 +00:00
gjb
97e0e7cffb Avoid polluting the filesystem when not necessary.
Sponsored by:	The FreeBSD Foundation
2015-05-12 01:27:58 +00:00
gjb
2ea98057df After the last influx of commits, and a REALLY BIG WARNING
to the top of the file.

Sponsored by:	The FreeBSD Foundation
2015-05-12 01:20:27 +00:00
gjb
56dbacefd5 Fix more paths to the actual files.
Sponsored by:	The FreeBSD Foundation
2015-05-12 01:14:21 +00:00
gjb
f47265fd69 Fix more path variables.
Sponsored by:	The FreeBSD Foundation
2015-05-12 01:04:02 +00:00
gjb
9d7a2f8ca8 Provide the correct path to the checksum file.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:58:17 +00:00
gjb
ed602f1d5e Also symlink the CHECKSUM.{SHA256,MD5} files.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:55:28 +00:00
gjb
e5abe6f698 Also copy CHECKSUM.{SHA256,MD5} files.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:46:32 +00:00
gjb
311d76861e Fix a few incorrect variables and/or hard-coded paths.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:39:01 +00:00
gjb
8dde0f5cc4 Sigh. Fix more syntax errors introduced by the last commit.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:33:18 +00:00
gjb
0b6e1d985f Fix a make(1) syntax error.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:32:28 +00:00
gjb
7e0d11ef0c Temporarily 'rm -rf $FTPDIR' during additional testing.
Sponsored by:	The FreeBSD Foundation
2015-05-12 00:30:56 +00:00
gjb
8b206d5386 Always use the 'make install' directory as the source for images.
For RE purposes, we use the default (/R within the chroot), so
this helps avoid copying files multiple times and xz(1)-compressing
additional times when not needed.

Again, this Makefile is not for general consumption.

Sponsored by:	The FreeBSD Foundation
2015-05-12 00:27:52 +00:00
gjb
48a106e740 Add a new file, Makefile.mirrors, which is intended to replace
a 474-line kludge of a shell script to pre-create the directory
hierarchy on ftp-master.

This is not in any way connected to the build, and there is no
intention to do so.  This only intent here is to try to make
things a little bit easier for me.  But I've probably just made
things worse.

Sponsored by:	The FreeBSD Foundation
2015-05-11 22:14:03 +00:00
gjb
f930e15914 Fix virtual machine disk format creating by passing VMFORMAT
to mkimg(1)

PR:		200068
Submitted by:	Jeremy Norris
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-11 14:53:07 +00:00
gjb
fb117627f6 Merge ^/projects/release-arm-redux into ^/head.
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
2015-05-09 21:08:12 +00:00
gjb
6c40325758 Use the IMX6 kernel configuration for the WANDBOARD build,
since it supports all of these board variants.

While here, remove the WANDBOARD-{QUAD,SOLO,DUAL} kernel
configuration files.

Discussed with:	ian
Sponsored by:	The FreeBSD Foundation
2015-05-08 18:55:09 +00:00
gjb
83dbcdd679 Strip the KERNEL from the mount paths, working around the following
error:

 root@releng2:/ # mount_msdosfs /dev/md5s1 /usr/obj/usr/src/release/WANDBOARD-QUAD/fat
 mount_msdosfs: /dev/md5s1: File name too long

Sponsored by:	The FreeBSD Foundation
2015-05-08 18:45:32 +00:00
gjb
eff85709da Fix path to the u-boot.imx file, which is relative to the root of
the chroot environment.

Sponsored by:	The FreeBSD Foundation
2015-05-08 17:53:44 +00:00
gjb
53b50c1a76 Touch '/firstboot' so the growfs rc(8) script runs.
Sponsored by:	The FreeBSD Foundation
2015-05-08 16:41:21 +00:00
gjb
d92941fb7d Fix the starting block of the partition.
Sponsored by:	The FreeBSD Foundation
2015-05-08 16:37:57 +00:00
gjb
261ee6d1dc Initial support for building the PANDABOARD image.
Sponsored by:	The FreeBSD Foundation
2015-05-08 16:00:06 +00:00
gjb
cf3aaa44c3 Add a file missed in the previous commit.
Sponsored by:	The FreeBSD Foundation
2015-05-08 15:23:21 +00:00
gjb
5924ca13e5 Copy arm/WANDBOARD-QUAD.conf to arm/WANDBOARD-{SOLO,DUAL}.conf.
Ian informed me a few months ago that the WANDBOARD-* kernels will
eventually be combined into one that will work across all these
boards, but for now, build them individually.

Sponsored by:	The FreeBSD Foundation
2015-05-08 15:22:29 +00:00
gjb
692717cb48 Fix FAT partition size.
Sponsored by:	The FreeBSD Foundation
2015-05-08 15:18:31 +00:00
gjb
d16bf9c909 Sigh. Really fix CHECKSUM file creation.
Sponsored by:	The FreeBSD Foundation
2015-05-08 15:15:36 +00:00
gjb
c7d77fb592 Fix CHECKSUM file creation.
Sponsored by:	The FreeBSD Foundation
2015-05-08 15:10:00 +00:00
gjb
26e678e2ac Initial support for building WANDBOARD-QUAD images.
Several parts of this were obtained from Crochet.

Sponsored by:	The FreeBSD Foundation
2015-05-08 15:07:17 +00:00
gjb
684abf744f Initial commit to support building RPI2 images, based on information
and documentation written by loos@ on the Wiki.

Sponsored by:	The FreeBSD Foundation
2015-05-08 13:55:27 +00:00
gjb
9aa9f68bf0 Do not include '/R' in the path when generating checksums, since
that will cause '/R' to be included in the CHECKSUM files.

Sponsored by:	The FreeBSD Foundation
2015-05-08 12:55:25 +00:00
gjb
cdb1ccc959 Move the finished image build to the '/R' directory (the
standard 'install' location for other architectures), then
compress the image with xz(1), and generate the CHECKSUM
files.

Sponsored by:	The FreeBSD Foundation
2015-05-08 12:50:48 +00:00
gjb
d03c979953 Fix the name of the final image.
Sigh.  Thou shalt not commit before coffee.

Sponsored by:	The FreeBSD Foundation
2015-05-08 10:47:57 +00:00
gjb
28058afb01 Rename KERNEL.img -> OSRELEASE-KERNEL.img when complete.
Sponsored by:	The FreeBSD Foundation
2015-05-08 10:43:29 +00:00
gjb
dc4500ae96 Do not create the uenv.txt file for RPI-B. It is not needed.
Submitted by:	ian
Sponsored by:	The FreeBSD Foundation
2015-05-08 10:39:52 +00:00
gjb
c8fa25fd06 Fix path to /boot/msdos for the target image.
Sponsored by:	The FreeBSD Foundation
2015-05-08 10:38:32 +00:00
gjb
d0610f154f Copy the rpi.dtb file to the FAT partition, preventing the
'Unrecognized partition table' error, causing boot failure.

Sponsored by:	The FreeBSD Foundation
2015-05-07 23:49:48 +00:00
gjb
463d845cba Reorder / and /boot/msdos mount to avoid the following error:
Mounting local file systems:
mount: /boot/msdos: No such file or directory

Sponsored by:	The FreeBSD Foundation
2015-05-07 23:46:33 +00:00
gjb
2bf3795a46 Create the /boot/msdos directory so the FAT partition is mounted
properly.

Noticed by:	sbruno
Sponsored by:	The FreeBSD Foundation
2015-05-07 20:25:17 +00:00
gjb
5c43f80d54 Remove the ZEDBOARD configuration file, as it does not
have a corresponding u-boot port in the Ports Collection.

Sponsored by:	The FreeBSD Foundation
2015-05-07 20:06:39 +00:00
gjb
22a124cc4e Spell 'u-boot.img' correctly.
Sponsored by:	The FreeBSD Foundation
2015-05-07 20:02:50 +00:00
gjb
8642bea698 Remove the arm/ROADMAP file.
Sponsored by:	The FreeBSD Foundation
2015-05-07 19:48:06 +00:00
gjb
6d28b8313e Remove arm/Makefile.{KERNEL} files, as this project
branch is now going in a different direction than
originally planned.

Sponsored by:	The FreeBSD Foundation
2015-05-07 19:47:15 +00:00
gjb
adf94dc7b1 Fix creating directories within DESTDIR.
Sponsored by:	The FreeBSD Foundation
2015-05-07 19:10:08 +00:00
gjb
a30e226e45 Fix a copy/paste mistake.
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:53:48 +00:00
gjb
0b9e3dc2e4 Add entries to uenv.txt.
Obtained from:	Crochet
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:51:59 +00:00
gjb
22dede213e Enable the growfs rc(8) script.
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:49:43 +00:00
gjb
1b0542d03e Set NODOC=1 to avoid building the reldoc target.
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:48:47 +00:00
gjb
ccd6128133 Add initial native suppor for RPI-B:
- Set UBLDR_LOADADDR.
 - Include files to install to the FAT partition.

Obtained from:	Crochet
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:47:59 +00:00
gjb
de17051a05 Remove FDT_DIR definition, which is no longer needed.
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:41:23 +00:00
gjb
355240e2f8 Reduce the number of files copied onto the FAT partition.
The DTB files are loaded from /boot/dtb on the UFS filesystem.

Submitted by:	loos
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:32:11 +00:00
gjb
835daf69d3 In arm_install_uboot(), mount both FAT and UFS partitions
in the empty DESTDIR, and update path names.
Copy the ubldr to the FAT partition. [1]

Spotted by:	andrew [1]
Sponsored by:	The FreeBSD Foundation
2015-05-07 18:00:12 +00:00
gjb
8db5e66f89 Set UBLDR_LOADADDR for the BEAGLEBONE image.
Sponsored by:	The FreeBSD Foundation
2015-05-07 17:50:24 +00:00
gjb
dd14d1e0ad Do not rename u-boot.img file when copying to the FAT partition.
Sponsored by:	The FreeBSD Foundation
2015-05-07 17:48:19 +00:00
gjb
7d456fbbb9 Fix paths.
Remove the temporary directory when done with it.
Destroy the md(4) device when done with it.

Sponsored by:	The FreeBSD Foundation
2015-05-07 17:40:00 +00:00
gjb
3d9f396598 In arm_create_disk(), chroot(8) to the build environment
is necessary.

In arm_install_base(), chroot(8) when installing world
and kernel.  Fix paths for fstab(5) and rc.conf(5).

Sponsored by:	The FreeBSD Foundation
2015-05-07 17:35:48 +00:00
gjb
353abfd8a4 Fix file/directory paths.
Sponsored by:	The FreeBSD Foundation
2015-05-07 17:33:21 +00:00
gjb
af0be5ff22 In release.sh, create the /dev directory within the chroot
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
2015-05-07 00:27:28 +00:00
gjb
1def0e984e Use the correct variable for the tools/TARGET.conf file.
Sponsored by:	The FreeBSD Foundation
2015-05-06 23:26:51 +00:00
gjb
db697baa50 Add tools/arm.subr to contain common subroutines used for
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
2015-05-06 19:58:12 +00:00
gjb
51eaadc0d0 Evaluage chroot_build_release_cmd based on the TARGET/TARGET_ARCH
of the build target.

Move arm/armv6 'release' bits to chroot_arm_armv6_build_release().

Sponsored by:	The FreeBSD Foundation
2015-05-06 18:16:27 +00:00
gjb
be8dfe41ce buildenv_setup(), if overridden in the configuration file,
only needs to be invoked once.

Sponsored by:	The FreeBSD Foundation
2015-05-06 16:21:12 +00:00
gjb
c0b6e73450 Remove Crochet invocation.
Sponsored by:	The FreeBSD Foundation
2015-05-06 16:04:11 +00:00
gjb
1289a25572 Remove crochet configuration files and tools/arm/ directory.
Sponsored by:	The FreeBSD Foundation
2015-05-06 15:59:29 +00:00
gjb
49990fc7c2 Update the arm/*.conf configuration files to only set
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
2015-05-06 15:58:21 +00:00
gjb
7a5a99c8de In extra_chroot_setup(), use 'uname -U' to determine OSVERSION.
Move the port build for EMBEDDEDPORTS (if set) from arm/release.sh
to release.sh.

Remove arm/release.sh.

Sponsored by:	The FreeBSD Foundation
2015-05-06 15:41:43 +00:00
gjb
03285bc58d Add a return to chroot_build_target().
In chroot_build_release(), reverse the order evaluating
EMBEDDEDBUILD.

Sponsored by:	The FreeBSD Foundation
2015-05-06 15:20:29 +00:00
gjb
b00cbbfdec Wrap long lines in comments after previous commits that indented
the file.

Sponsored by:	The FreeBSD Foundation
2015-05-06 15:10:50 +00:00
gjb
5691b85284 Ensure resolv.conf exists on the build host before attempting
to copy it to the build chroot.

Move where the ldconfig(8) startup script is invoked.

Sponsored by:	The FreeBSD Foundation
2015-05-06 15:05:38 +00:00
gjb
1a0871d957 Move where the configuration file is sourced if '-c'
is specified.  If the configuration file does not exist,
proceed with the default options instead of exiting.

Sponsored by:	The FreeBSD Foundation
2015-05-06 14:59:16 +00:00
gjb
2b407e277c Move the trap after env_check(), since CHROOTDIR may be
redefined.

Sponsored by:	The FreeBSD Foundation
2015-05-06 14:53:34 +00:00
gjb
22529b5b29 Shorten long lines.
Sponsored by:	The FreeBSD Foundation
2015-05-06 14:53:01 +00:00
gjb
24430ad552 Move PATH and export to the same line.
Handle svn or svnlite being installed in /usr/bin or
/usr/local/bin.

Sponsored by:	The FreeBSD Foundation
2015-05-06 14:48:35 +00:00
gjb
71798e693e Add documentation for newly-added functions.
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
2015-05-06 14:35:43 +00:00
gjb
779a2fd8ef Add the following functions to release.sh to organize and make
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
2015-05-06 14:21:51 +00:00
gjb
e9b794a6df MFH: r282315-r282534
Sponsored by:	The FreeBSD Foundation
2015-05-06 11:50:30 +00:00
gjb
7ac181d7c0 Fix building BEAGLEBONE images with Crochet using the
sysutils/u-boot-beaglebone port:

 - In arm/BEAGLEBONE.conf, set EMBEDDEDPORTS to the
   sysutils/u-boot-beaglebone port.
 - In arm/release.sh, remove BEAGLEBONE from setting WANT_UBOOT
 - In tools/arm/crochet-BEAGLEBONE.conf, override the
   beaglebone_check_uboot(), and set BEAGLEBONE_UBOOT to
   /tmp/external/u-boot-beaglebone, and create symlinks to the
   u-boot files in /usr/local/share/u-boot-beaglebone and the
   uEnv.txt file in crochet/board/Beaglebone/files.

Sponsored by:	The FreeBSD Foundation
2015-05-05 21:08:50 +00:00
gjb
fcd4d834e5 Remove buildenv_setup(), and set EMBEDDEDPORTS to the
sysutils/u-boot-rpi2 port, since these cases are already
handled by arm/release.sh.

Sponsored by:	The FreeBSD Foundation
2015-05-05 16:37:59 +00:00
gjb
0f66edf8be Add initial support for building RPI2 images.
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
2015-05-05 16:28:04 +00:00
gjb
12d768e12e Document r281617, wc(1) race when receiving SIGINFO fixed.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:21 +00:00
gjb
b0b0f65530 Fix a FDP style nit. Wrap the lines as a result.
Found with:	textproc/igor
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:19 +00:00
gjb
4d9c6adbec Document r281802, support added for building FreeBSD/aarch64 virtual
machine and memory stick images.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:17 +00:00
gjb
3190cc969e Update the svn revision marker.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:15 +00:00
gjb
14ef687f7b Document r282434, openresolv updated to version 3.7.0.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:12 +00:00
gjb
7660a932d3 Document r282274, xen(4) PV domU kernel support removed.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:10 +00:00
gjb
522b64026b Document r282213, kern.racct.enable tunable and RACCT_DISABLED
kernel configuration option.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:08 +00:00
gjb
976281e9cc Document r282212, several improvements/updates to the HyperV drivers.
Add Microsoft OSTC to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:05 +00:00
gjb
fa6c125dd4 Document r282208, chmod(1), chflags(1), chgrp(1), and chown(8) now
affect symbolic links when '-R' is used.

Add Multiplay to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:02 +00:00
gjb
f58158d54d Fix a typo.
Sponsored by:	The FreeBSD Foundation
2015-05-05 15:16:00 +00:00
gjb
6f165bd15a Remove a debugging line that snuck in with r282419.
Pointyhat:	gjb
MFC after:	3 days
X-MFC-With:	r282419
Sponsored by:	The FreeBSD Foundation
2015-05-04 21:34:19 +00:00
gjb
fdda0c9272 Add logic to detect if the net/bsdec2-image-upload port needs
to be installed. [1]

For the cw-ec2-portinstall and ec2ami targets, touch the
.TARGET file after completion to prevent duplicate invocations.

Add cw-ec2-portinstall and ec2ami to CLEANFILES.

Submitted by:	cperciva[1]
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-05-04 15:04:39 +00:00
gjb
55e5b36d38 MFH: r281855-r282312
Sponsored by:	The FreeBSD Foundation
2015-05-01 18:07:18 +00:00
brd
962026989a Fix typo 2015-04-29 16:52:43 +00:00
gjb
8883270131 Document r280297, OpenSSL updated to version 1.0.1m.
Sponsored by:	The FreeBSD Foundation
2015-04-29 16:15:26 +00:00
gjb
1a6e284443 Refine the entry regarding devfs(5) timestamps, as of
r280949, devfs(5) updates default to seconds precision.

Submitted by:	jilles
Sponsored by:	The FreeBSD Foundation
2015-04-28 21:57:52 +00:00
gjb
6d4df5a4db Document r281387, hptnr(4) driver updated to version 1.1.1.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:36 +00:00
gjb
7f340d4116 Document r281396, ACPI update to 20150410.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:34 +00:00
gjb
75ddb12300 Document r280870, fix directory inclusion when '--one-file-system'
is specified.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:32 +00:00
gjb
a576c6e1d5 Update the svn revision marker.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:30 +00:00
gjb
d19e44d189 Document r281845, file verification support in MAC.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:27 +00:00
gjb
5004fbf15e Document r281713, hwpmc(4) support for Freescale e500 core.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:25 +00:00
gjb
d6ad986a54 Document r281439, support for the 'virt' QEMU SoC.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:23 +00:00
gjb
671b791a42 Document r281311, disallow directory traversal in ar(1).
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:21 +00:00
gjb
42c4df2215 Document r281261, DTrace support for the Book-E.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:19 +00:00
gjb
e17a530f9e Document r281130, gcc attributes added to standard include headers.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:17 +00:00
gjb
25024da89d Fix a whitespace nit.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:14 +00:00
gjb
39b24da53c Typo/spelling fixes.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:12 +00:00
gjb
31536444fa Document r280971, support for RFC6864.
Add Netflix and Nginx to the sponsors.ent file.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:10 +00:00
gjb
376e3fee9d Fix revision for GELI prompt support in the loader.
The initial commit was reverted (without a useful commit
message), and committed again as r281616.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:07 +00:00
gjb
eea40dbcaf Document r280938, GELI passphrase prompt support added to the
boot loader.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:05 +00:00
gjb
e9f6e002e6 Document r280932, elftoolchain update to version 3179.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:03 +00:00
gjb
942aec8925 Document r280930, several RPC fixes.
Add MIT AI Lab to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:11:00 +00:00
gjb
c86000985b Partially document r280859, readelf(1) is now switched to the ELF
toolchain version.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:58 +00:00
gjb
01b838e648 Document r280308, devfs(5) timestamp updates for read/write operations
is now disabled by default.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:55 +00:00
gjb
f0493fbf28 Document r280259, initial support for arm64/aarch64.
Add arch.arm64 entity to release.ent.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:53 +00:00
gjb
7eddeea388 Document r280183, drm update to match Linux 3.8.13.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:50 +00:00
gjb
1aa4a8ffe5 Document r279957, DSM TRIM support for virtual AHCI disks.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:48 +00:00
gjb
fea01cfa71 Document r281316, xz(1) update to version 5.2.1.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:46 +00:00
gjb
dc80653cb7 Document r281373, nvi(1) update to version 2.1.3.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:44 +00:00
gjb
5b7e4570a0 Document r281806, wpa_supplicant(8)/hostapd(8) update to version 2.4.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:41 +00:00
gjb
05f2ae8f5c Document r281812, make(1) update to version 20150418.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:39 +00:00
gjb
4b6acf881a Document r282089, unbound(8) update to 1.5.3.
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:37 +00:00
gjb
6043136310 Document r279122, netstat(1) updated to use libxo(3).
Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:35 +00:00
gjb
d6ec19f13f Document r273562, libxo(3) import.
Add Juniper Networks to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-04-28 18:10:32 +00:00
gjb
27341016bc Fix CROCHETBRANCH, forgotten in r280640.
Submitted by:	ruben.kerkhof@gmail.com
PR:		199760
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-28 15:32:59 +00:00
gjb
85852e8ad9 Add the cw-ec2-portinstall target to always install the
net/bsdec2-image-upload port.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-27 21:38:12 +00:00
gjb
e60260c0b0 Fix a comment.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-27 19:49:50 +00:00
gjb
b89a2746c3 Do not nest the BSD and MBR partitions, which produces
an unbootable image.  Use just an MBR scheme instead.

Sponsored by:	The FreeBSD Foundation
2015-04-27 18:07:11 +00:00
gjb
384815e148 Generate the arm64/aarch64 memstick image as MBR instead of
GPT.

Boot tested by:	andrew
Sponsored by:	The FreeBSD Foundation
2015-04-27 17:39:40 +00:00
gjb
09615c77fe Create the arm64/aarch64 VM disk image as MBR instead of
GPT scheme.  UEFI needs to know the unique partition GUID
with GPT, which changes each time.  Specifically, the QEMU
EFI BIOS file has this hard-coded.[1]

Since the GPT labels are now unavailable, unconditionally
label the root filesystem as 'rootfs' with newfs(8), since
it does not hurt anything anywhere else.  For the arm64 case,
'/' is mounted from /dev/ufs/rootfs; for all other VM images,
'/' is mounted from /dev/gpt/rootfs.

Unfortunately, since the /dev/gpt/swapfs label is also lost,
set NOSWAP=1 for the arm64/aarch64 images.  This is temporary,
until I figure out a scalable solution to this.  But, a certain
piece of softare was written "very fast", and ended up living
for 15 years.  We can deal with this for a week or so.

Information from:	andrew, emaste [1]
Sponsored by:	The FreeBSD Foundation
2015-04-23 01:04:14 +00:00
gjb
00a0d8da10 Remove the gptboot partition from the arm64 memory stick image,
which is not needed/used.

Sponsored by:	The FreeBSD Foundation
2015-04-22 13:52:29 +00:00
gjb
dfb432f9b5 MFH: r280643-r281852
Sponsored by:	The FreeBSD Foundation
2015-04-22 12:58:16 +00:00
gjb
9c99303fe2 Revert r281809, which did more harm than good, and apply
a more proper fix when attempting to locate the /boot
files.

Sponsored by:	The FreeBSD Foundation
2015-04-21 14:48:38 +00:00
gjb
62ee754a89 Simplify variable expansion in attempt to fix the vm-image build.
Sponsored by:	The FreeBSD Foundation
2015-04-21 02:49:44 +00:00
gjb
57622d708f Merge the following from ^/projects/release-arm64 to allow
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
2015-04-21 00:48:35 +00:00
gjb
90c13eed91 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.

Sponsored by:	The FreeBSD Foundation
2015-04-20 20:13:02 +00:00
gjb
aae7c8c171 Add support for building arm64/aarch64 virtual machine images.
Sponsored by:	The FreeBSD Foundation
2015-04-20 20:06:25 +00:00
gjb
d772346661 When building VM disk images, vm_copy_base() uses tar(1) to
copy the userland from one md(4)-mounted filesystem to a clean
filesystem to prevent remnants of files that were added and
removed from resulting in an unclean filesystem.  When newfs(8)
creates the first filesystem with journaled soft-updates enabled,
the /.sujournal file in the new filesystem cannot be overwritten
by the /.sujournal in the original filesystem.

To avoid this particular error case, do not enable journaled
soft-updates when creating the md(4)-backed filesystems, and
instead use tunefs(8) to enable journaled soft-updates after
the new filesystem is populated in vm_copy_base().

While here, fix a long standing bug where the build environment
/boot files were used by mkimg(1) when creating the VM disk
images by using the files in .OBJDIR.

MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-04-20 19:54:54 +00:00
cperciva
cbabb678ca Add code for creating an EC2 AMI. 2015-04-01 00:00:17 +00:00
cperciva
30e3acf20a It would help if I committed the right patch... 2015-03-31 04:35:35 +00:00
cperciva
2d3f9a1b0b Partially revert r278118 now that the required logic for deciding whether
freebsd-update can be useful has moved into the firstboot_freebsd_update
script.
2015-03-31 01:44:29 +00:00
cperciva
763a23e973 Add bits for building EC2 disk images. Make logic for uploading these
to create EC2 AMIs will come in a later commit.
2015-03-31 01:28:33 +00:00
gjb
b4b14712b0 Sigh. s/AutoSize/Growfs/ following upstream commit r761.
MFH:		3 days
Sponsored by:	The FreeBSD Foundation
2015-03-30 19:08:37 +00:00
cperciva
421e560425 Improve check for whether ${DESTDIR}/dev is mounted.
Submitted by:	gcooper
2015-03-30 09:08:24 +00:00
cperciva
e41362f7d1 Clean up filesystem unmounting in vmimage builds:
* Remove vm_umount_base function which is currently unused.
* Add umount_loop function which loops attempting to unmount one filesystem.
* Replace calls to umount with calls to umount_loop.
* Don't attempt to unmount ${DESTDIR}/dev if it isn't mounted.

The looping is necessary because sometimes umount fails due to filesystems
being busy.  The most common cause of such busyness is periodic(8) jobs
running `find / ...`.

Reviewed by:	gjb
2015-03-30 08:33:19 +00:00
gjb
d80ecfbe72 Attempt to create the final image (though not nearly ready
for it yet).

This is probably very broken and/or wrong, but that's why
we have projects branches.

Sponsored by:	The FreeBSD Foundation
2015-03-26 03:05:07 +00:00
gjb
9bfd469978 Create the md(4) device for the /boot msdosfs GPT partition.
Sponsored by:	The FreeBSD Foundation
2015-03-26 02:19:38 +00:00
gjb
6d23d7d903 Create the md(4) device for the /boot msdosfs GPT partition.
Sponsored by:	The FreeBSD Foundation
2015-03-26 02:02:51 +00:00
gjb
fdbfa0b59a Specify .OBJDIR for consistency.
Call newfs(8) and mount the md(4) device to the target
directory.

Specify DESTDIR for installworld, distribution, and
installkernel targets.

Sponsored by:	The FreeBSD Foundation
2015-03-26 01:20:54 +00:00
gjb
a6a9b12f53 Prevent possible duplicate md(4) creation with separate device id.
Sponsored by:	The FreeBSD Foundation
2015-03-26 01:06:29 +00:00
gjb
663a21825c Fix 'beforeclean' broken in previous commit.
Sponsored by:	The FreeBSD Foundation
2015-03-26 01:03:38 +00:00
gjb
88eca6bced Add glue to make the md(4) device for populating the
userland/kernel.

Clean up a few variable names.

Sponsored by:	The FreeBSD Foundation
2015-03-26 01:00:48 +00:00
gjb
5071a76d5c Add targets for world/kernel build, currently only echoed
for debugging purposes.

Add comment to mark the end of the main loop.

Sponsored by:	The FreeBSD Foundation
2015-03-26 00:07:40 +00:00
gjb
716600ab07 Reindent.
Sponsored by:	The FreeBSD Foundation
2015-03-25 23:29:35 +00:00
gjb
4fa6dd7573 Move the 'build-arm-ports${BOARD}' within the for loop
to fix target/variable expansion.

Sponsored by:	The FreeBSD Foundation
2015-03-25 23:24:05 +00:00
gjb
6681de7bf9 MFH: r278968-r280640
Sponsored by:	The FreeBSD Foundation
2015-03-25 22:35:08 +00:00
gjb
b24b75c074 Crochet sources moved to a new home; update accordingly.
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
2015-03-25 22:08:02 +00:00
cperciva
f1bd255f86 When creating VM images, copy the contents of the created filesystem into
a new filesystem before packaging it into a disk image.  This prevents
"remnants" of deleted files from showing up in the VM images, and reduces
their compressed size (by about 10% for the cloudware images) as a result.

Looks good to:	gjb
2015-03-20 19:40:19 +00:00
gjb
32c23d98d1 Document r279663, qsort(3) enhancements.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:53 +00:00
gjb
a112819caa Document r279571, freebsd-update(8) will not download updates when
a previous upgrade is not complete.
Add ScaleEngine Inc to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:50 +00:00
gjb
3c9489579b Document r279463, iovctl(8) rc(8) script.
Add Sandvine Inc to sponsors.ent.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:47 +00:00
gjb
2d8306c4fd Document r279361, kern.osrelease and kern.osreldate sysctls are
now configurable jail(8) parameters.

Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:43 +00:00
gjb
bd3faa8edf Document r279315, uefisign(8) addition.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:41 +00:00
gjb
2037e417b7 Document r279252, pmap(9) overhaul for 64-bit PowerPC processors.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:38 +00:00
gjb
d01ef1bfbe Document r279189, VSX support.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:35 +00:00
gjb
c2ad88762d Document r279186, setmode(3) set errno on failure.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:32 +00:00
gjb
690cca64c6 Document r278970, acpi(4) update to 20150204.
Sponsored by:	The FreeBSD Foundation
2015-03-16 15:54:29 +00:00
gjb
7665c62d04 Properly evaluate XZ_CMD from the chroot.
Sponsored by:	The FreeBSD Foundation
2015-03-02 18:10:58 +00:00
gjb
9ffc8ca9a2 Use xz(1) to compress FreeBSD/arm images.
Sponsored by:	The FreeBSD Foundation
2015-03-02 18:04:57 +00:00
gjb
1a0d38818e Add a CLOUDPACKAGE variable to contain a list of targets for
post-install packaging cloud provider images.

Add a 'gce-package.sh' script to generate the final output
image ready for upload to the GCE platform.  Right now, this
is the only image that has a specific output format (GNU-tar),
and this implementation is expected to be temporary.

This is not directly connected to the other release targets.

MFC after:	1 week
X-MFC-with:	r279249, r279250
Sponsored by:	The FreeBSD Foundation
2015-02-24 22:27:02 +00:00
gjb
a068ff8444 Remove a stale comment.
MFC after:	1 week
X-MFC-with:	r279249
Sponsored by:	The FreeBSD Foundation
2015-02-24 21:16:57 +00:00
gjb
3bcf3bd6f0 Add 'cloudware-install' target to handle copying cloud
disk images to a directory within DESTDIR.

Add CLOUDINSTALL variable to automatically generate the
actual list of install targets.  While here, rename the
cloud-specific names from 'vm-' to 'cw-' to avoid naming
collisions.

Add AZURE_DISK, GCE_DISK, and OPENSTACK_DISK output file
variables.

Add 'cloudware-install' to the 'install' target.

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2015-02-24 21:06:25 +00:00
gjb
04ae1498be Default XZ_THREADS=0, and add to RELEASE_RMAKEFLAGS
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
2015-02-20 18:51:52 +00:00
gjb
0e2a9d3d0f Fix wording in entry for r278934.
Submitted by:	markj
Sponsored by:	The FreeBSD Foundation
2015-02-20 18:42:00 +00:00
gjb
989552348a Document r275140, pmc callchain depths increased.
Sponsored by:	The FreeBSD Foundation
2015-02-20 18:06:11 +00:00
gjb
4023d6210b Fix a typo in r278037 entry: s/cam/ctl/
Submitted by:	mav
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:56:27 +00:00
gjb
4c2fc40c57 Update the commented last revision.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:20 +00:00
gjb
4f42c73b33 Document r278926, 'make release' now uses multi-threaded
xz(1).

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:18 +00:00
gjb
830071cefe Document r278433, xz(1) update to 5.2.0.
Separately document multi-threaded support to keep the
version update separate, so it remains correct if xz(1)
is updated again.

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:15 +00:00
gjb
8644fb9e6b Document r278354, ctld(8) update to control non-iSCSI CTL
ports

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:12 +00:00
gjb
e757402c21 Document r278320, devctl(3) and devctl(8) added.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:10 +00:00
gjb
e4820d4cf3 Add a 'General Storage' section.
Document r278037, CAM LUN mapping rewrite.

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:07 +00:00
gjb
18b6d2f2ab Document r278934, elf(3) dependency removed from dtri.o
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:04 +00:00
gjb
1af0c37f67 Document r277990, powerpc64 kernel now built as
a position-independent executable

Sponsored by:	The FreeBSD Foundation
2015-02-20 17:46:02 +00:00
gjb
a0e81a4f8b Document r277904, '-s' option added to config(8).
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:45:59 +00:00
gjb
4ea309ffe4 Document r277610, futimens(2) and utimensat(2) added.
Sponsored by:	The FreeBSD Foundation
2015-02-20 17:45:56 +00:00
gjb
0a4b64ead2 MFH: r278593-r278966
Sponsored by:	The FreeBSD Foundation
2015-02-18 19:35:32 +00:00
rpaulo
e0f41bfbfb release: use xz via pipe when compressing the tarballs.
libarchive(3) doesn't support the new liblzma API yet, but this change
allows us to enable multi-threaded xz compression.
``make release'' should now finish in half the time on a machine with
several cores and fast disks (our typical build server).

This behaviour only applies when building a release and it doesn't
affect buildworld/installworld.  To disable threaded xz compression,
set XZ_THREADS=1.

Reviewed by:	gjb
Tested by:	gjb
2015-02-17 23:13:45 +00:00
cperciva
adc74e8335 Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin;
update paths; and include everything in the "base" distribution.

The "games" distribution being optional made sense when there were more
games and we had small disks; but the "games-like" games were moved into
the ports tree a dozen years ago and the remaining "utility-like" games
occupy less than 0.001% of my laptop's small hard drive.  Meanwhile every
new user is confronted by the question "do you want games installed" when
they they try to install FreeBSD.

The next steps will be:

2. Removing punch card (bcd, ppt), phase-of-moon (pom), clock (grdc), and
caesar cipher (caesar, rot13) utilities.  I intend to keep fortune, factor,
morse, number, primes, and random, since there is evidence that those are
still being used.

3. Merging src/games into src/usr.bin.

This change will not be MFCed.

Reviewed by:	jmg
Discussed at:	EuroBSDCon
Approved by:	gjb (release-affecting changes)
2015-02-12 05:35:00 +00:00
gjb
14f6e421fa Add a ROADMAP file for FreeBSD/arm release builds, which
will make final documentation much easier when done.

Sponsored by:	The FreeBSD Foundation
2015-02-12 00:50:54 +00:00
gjb
2f97a00223 Fix build-arm-ports target for WANDBOARD-QUAD.
Sponsored by:	The FreeBSD Foundation
2015-02-11 20:51:58 +00:00
gjb
0790752ed0 Add CROSS_TOOLCHAIN for arm builds.
Remove a BOARDS entry left in while testing.
Add build-arm-ports${BOARD} target as a prerequisite when
ARMPORTS is set.
Add build-arm-KERNCONF and build-arm-ports to CLEANFILES.

Sponsored by:	The FreeBSD Foundation
2015-02-11 20:50:25 +00:00
gjb
7e24e21572 Initial restructure for FreeBSD/arm release builds.
Sponsored by:	The FreeBSD Foundation
2015-02-11 20:25:21 +00:00
gjb
ff1fc0651f MFH: r278202,r278205-r278590
Sponsored by:	The FreeBSD Foundation
2015-02-11 18:59:46 +00:00
gjb
91ae04df56 Bump copyright, forgotten in r278502.
MFC after:	1 week
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119, r278206,
		r278502
Sponsored by:	The FreeBSD Foundation
2015-02-10 12:38:39 +00:00
gjb
d3b69535ba In scripts/mk-vmimage.sh, prevent incorrect usage() by
defaulting VMCONFIG to /dev/null, and additionally
ensuring VMCONFIG is not a character device before it
is sourced.

While here, be sure to exit if usage() is called.

This should effectively be no-op, but the usage() output
was discovered while investigating a larger issue.

MFC after:	1 week
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119, r278206
Sponsored by:	The FreeBSD Foundation
2015-02-10 12:04:38 +00:00
gjb
4bc86263fa Revert r278445.
I was going to use __FreeBSD_version to determine if
xz(1) should be multi-threaded by default, but doing
this will cause problems if/when the changes are merged
from head.

Sponsored by:	The FreeBSD Foundation
2015-02-09 10:46:39 +00:00
gjb
da504cb140 Enable multi-threaded xz(1) compression, after r278433.
Allow multi-threaded xz(1) to be turned off by specifying
NO_XZTHREADS, and allow number of threads to be overridden
by specifying XZ_THREADS=N.

MFC after:	1 week
X-MFC-needs:	r278433
Sponsored by:	The FreeBSD Foundation
2015-02-09 10:42:27 +00:00
gjb
ea9a3d8b68 Define FREEBSD_VERSION in release/Makefile, derived
from sys/sys/param.h.

Sponsored by:	The FreeBSD Foundation
2015-02-09 09:56:21 +00:00
gjb
e0863acde2 Bump copyright year.
Sponsored by:	The FreeBSD Foundation
2015-02-05 16:00:34 +00:00
gjb
4c852b7fe5 Security Advisory information is included on several
pages in the release notes.  Rather than duplicating
the information between various files, add two new
files to include in all pages that currently display
the information.

Sponsored by:	The FreeBSD Foundation
2015-02-05 15:46:01 +00:00
gjb
843b07f861 Add an entity to use to link to SAs and ENs.
Prefer https:// for other URLs.
While here, update release.prev.stable entity to
9.3-RELEASE.

Sponsored by:	The FreeBSD Foundation
2015-02-05 14:08:57 +00:00
gjb
781f145086 Bump copyright after r277458.
MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118, r278119
Sponsored by:	The FreeBSD Foundation
2015-02-04 11:55:32 +00:00
gjb
1a3339d840 Set a VERSION value.
Sponsored by:	The FreeBSD Foundation
2015-02-04 11:45:15 +00:00
gjb
2c9ed945e2 Use ifconfig_DEFAULT="" instead of hard-coding vtnet(4)
MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836, r278118
Sponsored by:	The FreeBSD Foundation
2015-02-03 00:10:48 +00:00
gjb
103061b4c4 Move service_enable="YES" rc.conf(5) additions to
VM_RC_LIST and deduplicate.

Evaluate if firstboot_freebsd_update should be enabled
based on UNAME_r, because it is not supported for the
-CURRENT or -STABLE branches.

MFC after:	2 weeks
X-MFC-with:	r277458, r277536, r277606, r277609,
		r277836
Sponsored by:	The FreeBSD Foundation
2015-02-03 00:07:54 +00:00
gjb
a582a9a0fe Overhaul the relnotes page to reorganize the sections.
With the previous layout, the majority of the release
notes were categorized under one main "What's New"
section, which in addition to making the page difficult
to parse relevant bits, also had a few rendering issues,
such as 'Note' blocks visually not appearing as if they
pertain to a particular change.

This change removes the "What's New" section, integrating
it with the introduction.  In addition, each section now
provides a brief description of its contents, broken down
further into a subsection for each "topic", making it much
easier to find a specific topic in the page.

MFC after:	3 days
X-MFC-Note:	direct commit, not a merge
Sponsored by:	The FreeBSD Foundation
2015-02-02 21:09:26 +00:00
gjb
1f9287eed9 Move the 'Upgrading from Previous Releases of FreeBSD'
section to the top of the file, following the introduction.

Sponsored by:	The FreeBSD Foundation
2015-02-02 21:09:23 +00:00
hrs
bb5a64d168 Add a toc.section.depth=3 parameter to use the same ToC depth as DocBook
DSSSL stylesheet.

Reported by:	gjb
2015-02-02 16:10:03 +00:00
gjb
007096df0b Fix a typo in a comment.
MFC after:	1 week
X-MFC-with:	r277837
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:39:57 +00:00
gjb
e9d3b0df4a Provide a description for the 'tests.txz' distribution
in the MANIFEST file.

Turn off the test suite installation by default.

Tested with:	head@r277834
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:34:27 +00:00
gjb
1260bad08b Rename the 'system' target to 'disc1', which is specific
to the disc1.iso installer image.

Replace 'system' with 'release' in CLEANFILES, and add
'disc1' to CLEANDIRS.

Ensure the 'dvd' target depends on 'packagesystem'.

Fix 'mini-memstick.img' prerequisite, which should be the
'bootonly' target, not 'disc1' (previously 'system').

Use .TARGET as the target installation directory for the
disc1.iso and bootonly.iso images, which now expand to
'disc1' and 'bootonly' respectively, mimicking the behavior
of the 'dvd' target.

Remove '@true' from the 'release' target, and instead use
'touch ${.TARGET}' to prevent multiple iterations of
'make release' from clobbering previously-built installer
medium.

Tested with:	head@r277834
MFC after:	3 weeks
X-MFC-with:     r277458, r277536, r277606, r277609
Sponsored by:	The FreeBSD Foundation
2015-01-28 17:32:45 +00:00
luigi
70c9059ac6 do not strip /stand
This is a temporary workaround until the elftoolchain's version
of strip is fixed:

The previous (GNU) strip, when acting on a file with multiple links,
would modify the one and only file in place (which means creating
a new stripped copy, and then writing it back to the original).

The new version from elftoolchain creates the new file and then
unlinks the old one and renames the new.
With multiple hard links, the original remains alive.  In the /stand
directory, this ends up creating 80+ copies of the same file.
2015-01-24 08:48:05 +00:00
gjb
4743c20fb6 When iterating through VMFORMATS, the VMBASE file is
not removed or truncated to a zero-size file, which
if used to create more than one disk image format, can
result in accidental pollution of the target formatted
disk image.

Instead of using a single VMBASE image (vm.img, by
default), use a single base file for each format, named
as VMFORMAT.img, which produces VMBASE.VMFORMAT as the
final formatted image.

Reported by:	cperciva
MFC after:	1 month
X-MFC-with:	r277458, r277536
Sponsored by:	The FreeBSD Foundation
2015-01-23 21:04:59 +00:00
cperciva
b45ededabb Provide a recipe of "true" for building the "release" target once its
prerequisites are satisfied, in order to avoid having an implicit rule
triggered by the presence of release.sh.

Approved by:	gjb
2015-01-23 20:24:13 +00:00
gjb
c5771a6a64 Update the latest revision.
Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:46 +00:00
gjb
4a0b24c466 Document r277458, support for cloud hosting providers added to
the Release Engineering build tools.

Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:08 +00:00
gjb
70100a6ead Document r277166, ptrace(2) Altivec register support.
Sponsored by:	The FreeBSD Foundation
2015-01-23 19:33:05 +00:00