aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* To avoid unnecessarily modifying ports, add a -lgomp symlink, since GCCDimitry Andric2019-05-191-0/+7
| | | | | | | | | | | | does not ship a -lomp symlink. Also update OptionalObsoleteFiles for this, and add 32-bit variants while here. Submitted by: jbeich PR: 237975 MFC after: 3 days Notes: svn path=/head/; revision=347979
* Fix OptionalObsoleteFiles copy/paste mistake from r345236, whichDimitry Andric2019-05-191-1/+1
| | | | | | | | | | connected libomp to the build. The comparison should not have been against ${MK_OPENSSH}, but against ${MK_OPENMP}, obviously. MFC after: 3 days Notes: svn path=/head/; revision=347978
* Change ed(4), ep(4), and fxp(4) examples to em(4).Brooks Davis2019-05-181-2/+2
| | | | | | | | | | | | ed(4) and ep(4) have been removed. fxp(4) remains popular in older systems, but isn't as future proof as em(4). Reviewed by: bz, jhb MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20311 Notes: svn path=/head/; revision=347963
* Update beinstall to use the mergemaster/etcupdate from the source tree insteadBrad Davis2019-05-181-11/+10
| | | | | | | | | | of the installed one. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D20291 Notes: svn path=/head/; revision=347958
* revert QEMU q35 platform use from r346748Ed Maste2019-04-301-1/+1
| | | | | | | | | | | | It seems to be incompatible with the OVMF.fd (of unknown provenance) in use by the Cirrus-CI config. We will soon have a known OVMF build via a port/package (see review D19869) and we can switch back to q35 once packages are available. Discussed with: bcran Notes: svn path=/head/; revision=346961
* fsx: seed more randomly with the -S0 optionAlan Somers2019-04-281-13/+24
| | | | | | | | | | | | | | | When using -S0, seed the PRNG with the current time in nanoseconds, not seconds, so consecutive runs don't accidentally use the same seed. Also, rename some variables for clarity. Reviewed by: ngie MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20078 Notes: svn path=/head/; revision=346847
* Fix tools/boot/ci-qemu-test.sh and make some improvementsRebecca Cran2019-04-261-4/+5
| | | | | | | | | | | | | | | | | | | | Update ci-qemu-test.sh o Update the path to the OVMF file, which is now in /usr/local/share/uefi-edk2-qemu. o Use the more modern q35, pc-q35-3.0 (Q35 + ICH9, 2009) QEMU machine instead of the default, obsolete pc, pc-i440fx-3.0 (i440FX + PIIX, 1996). For example this adds ACPI support. o Specify the system firmware using the newer pflash drive syntax instead of bios. o Remove extra, unneeded devices by passing -nodefaults. o Change text to talk about 'firmware' instead of 'bios', since UEFI isn't a BIOS. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D20074 Notes: svn path=/head/; revision=346748
* For the geli-gpt-zfs test images, both bios and uefi flavors, add a dummyIan Lepore2019-04-251-10/+20
| | | | | | | | | ufs partition as p2, and put the zfs partition at p3, to test the ability of the zfs probe code to find a zfs pool on something other than the first partition. Notes: svn path=/head/; revision=346654
* The zfs module has grown a dependency on zcl_nfs4.ko, so copy it into allIan Lepore2019-04-241-0/+9
| | | | | | | the test images. Notes: svn path=/head/; revision=346653
* Complain and exit the script if the 'make install' phase fails. Also,Ian Lepore2019-04-241-1/+5
| | | | | | | there is no need to install any debug files. Notes: svn path=/head/; revision=346652
* Fix install-boot.sh and rootgen.sh UEFI bugsRebecca Cran2019-04-242-24/+39
| | | | | | | | | | | | | | | | | | | | | tools/boot/install-boot.sh was assuming that if a device was passed in, it should operate on the current system and run efibootmgr etc. to update the boot manager. However, rootgen.sh passes a md(4) device and not a fixed disk. Add a -u option to install-boot.sh to tell it to update the system in-place and run efibootmgr etc. Also, source install-boot.sh in rootgen.sh to allow it to find and call make_esp_file etc. And pass the loader file to make_esp_file instead of a directory name. Reported by: ian Reviewed by: ian,imp,tsoome Differential Revision: https://reviews.freebsd.org/D19992 Notes: svn path=/head/; revision=346646
* As an interim measure until a more permanent solution is implementedCy Schubert2019-04-181-2/+0
| | | | | | | | | | | | | | | | | workaround the following error: /usr/src/contrib/elftoolchain/strings/strings.c:198:55: error: use of undeclared identifier 'FA_OPEN' fa = fileargs_init(argc, argv, O_RDONLY, 0, &rights, FA_OPEN); Reported by: O. Hartmann <ohartmann@walstatt.org> Reported by: Michael Butler <imb@protected-networks.net> Reported by: gjb@ & cy@ (implicit) Reviewed by: emaste@ Noted by: rgrimes@ Notes: svn path=/head/; revision=346341
* Put QEMU CI smoke test boot log in /tmp if TMPDIR not setEd Maste2019-04-171-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346330
* Install some entropy for QEMU CI smoke testEd Maste2019-04-171-0/+3
| | | | | | | | | | See r346250 and followup commits and mailing list discussion. We currently fail to boot properly in the absense of boot-time entropy. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=346329
* Allow this test script to be run from within src/tools/boot dir, and createIan Lepore2019-04-171-41/+84
| | | | | | | | | | | | | | | | | | the temporary image in $TMPDIR. Allow the script to be run from the src/tools/boot directory by using make -V SRCTOP to find the top of the tree, because this script is handy for quick smoke-testing of loader changes, as well as being useful in CI testing. Also, use a temp directory in $TMPDIR to assemble the boot image, and write the boot log file to $TMPDIR. Arrange to have the temporary image clean itself up, but leave the log file in $TMPDIR for post-mortem analysis of failures when the script is run interactively. Differential Revision: https://reviews.freebsd.org/D19876 Notes: svn path=/head/; revision=346317
* Add a smoke test QEMU boot script for CIEd Maste2019-04-101-0/+63
| | | | | | | | | Reviewed by: imp, lwhsu (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19661 Notes: svn path=/head/; revision=346080
* ioatcontrol(8) crc-copy flag bug and misc usage tweakTycho Nightingale2019-04-091-3/+5
| | | | | | | | | Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D19855 Notes: svn path=/head/; revision=346050
* Add option to build LLVM RISC-V targetMitchell Horne2019-04-072-0/+10
| | | | | | | | | | Reviewed by: emaste, dim Approved by: markj (mentor) MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D19759 Notes: svn path=/head/; revision=346016
* Add cap_fileargs.h to -legacy if needed.Mariusz Zaborski2019-04-041-2/+7
| | | | | | | | Reviewed by: arichardson Differential Revision: https://reviews.freebsd.org/D19685 Notes: svn path=/head/; revision=345870
* Create kernel module to parse Veriexec manifest based on envsMarcin Wojtas2019-04-031-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | The current approach of injecting manifest into mac_veriexec is to verify the integrity of it in userspace (veriexec (8)) and pass its entries into kernel using a char device (/dev/veriexec). This requires verifying root partition integrity in loader, for example by using memory disk and checking its hash. Otherwise if rootfs is compromised an attacker could inject their own data. This patch introduces an option to parse manifest in kernel based on envs. The loader sets manifest path and digest. EVENTHANDLER is used to launch the module right after the rootfs is mounted. It has to be done this way, since one might want to verify integrity of the init file. This means that manifest is required to be present on the root partition. Note that the envs have to be set right before boot to make sure that no one can spoof them. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: sjg Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D19281 Notes: svn path=/head/; revision=345830
* ioatcontrol(8) could exercise 8k-aligned copy with page-break, crc andTycho Nightingale2019-04-022-6/+32
| | | | | | | | | | | crc-copy modes. Reviewed by: cem Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D19780 Notes: svn path=/head/; revision=345812
* revert r302146: makeroot: zero out subsecond component of time= keywordsEd Maste2019-03-271-4/+0
| | | | | | | | | | After r345281 by mhorne subsecond components are supported. PR: 194703 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=345583
* Add special psuedo-options for the base/{binutils,gcc} ports.John Baldwin2019-03-261-1/+14
| | | | | | | | | | | | | The WITH_PORT_BASE_{BINUTILS,GCC} options are used to prevent 'make check-old' and 'make delete-old' from deleting files installed by the base/binutils and base/gcc packages as normally one disables the in-tree variants (e.g. WITHOUT_BINUTILS) when using these packages. Reviewed by: bapt (earlier version) Differential Revision: https://reviews.freebsd.org/D19483 Notes: svn path=/head/; revision=345557
* Add description for WITHOUT_RETPOLINEEd Maste2019-03-241-0/+3
| | | | | | | | Not used by default at the moment, but added for the benefit of downstream projects/branches with different options. Notes: svn path=/head/; revision=345488
* From r345400, remove the ippool rc script when ipfilter is not wantedCy Schubert2019-03-221-0/+1
| | | | | | | | | | | by the user. PR: 218433 MFC after: 2 weeks X-MFC with: r345400 Notes: svn path=/head/; revision=345403
* Connect lib/libomp to the build.Dimitry Andric2019-03-163-0/+13
| | | | | | | | | | | | | | | | * Set MK_OPENMP to yes by default only on amd64, for now. * Bump __FreeBSD_version to signal this addition. * Ensure gcc's conflicting omp.h is not installed if MK_OPENMP is yes. * Update OptionalObsoleteFiles.inc to cope with the conflicting omp.h. * Regenerate src.conf(5) with new WITH/WITHOUT fragments. Relnotes: yes PR: 236062 MFC after: 1 month X-MFC-With: r344779 Notes: svn path=/head/; revision=345236
* Initial googlemock/googletest integration into the build/FreeBSD test suiteEnji Cooper2019-03-152-0/+134
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This initial integration takes googlemock/googletest release 1.8.1, integrates the library, tests, and sample unit tests into the build. googlemock/googletest's inclusion is optionally available via `MK_GOOGLETEST`. `MK_GOOGLETEST` is dependent on `MK_TESTS` and is enabled by default when built with a C++11 capable toolchain. Google tests can be specified via the `GTESTS` variable, which, in comparison with the other test drivers, is more simplified/streamlined, as Googletest only supports C++ tests; not raw C or shell tests (C tests can be written in C++ using the standard embedding methods). No dependent libraries are assumed for the tests. One must specify `gmock`, `gmock_main`, `gtest`, or `gtest_main`, via `LIBADD` for the program. More information about googlemock and googletest can be found on the Googletest [project page](https://github.com/google/googletest), and the [GoogleMock](https://github.com/google/googletest/blob/v1.8.x/googlemock/docs/Documentation.md) and [GoogleTest](https://github.com/google/googletest/tree/v1.8.x/googletest/docs) docs. These tests are originally integrated into the build as plain driver tests, but will be natively integrated into Kyua in a later version. Known issues/Errata: * [WhenDynamicCastToTest.AmbiguousCast fails on FreeBSD](https://github.com/google/googletest/issues/2172) Reviewed by: asomers Approved by: emaste (mentor) MFC after: 2 months Differential Revision: https://reviews.freebsd.org/D19551 Notes: svn path=/head/; revision=345203
| * MFhead@r344996Enji Cooper2019-03-117-44/+255
| |\ | | | | | | | | | Notes: svn path=/projects/import-googletest-1.8.1/; revision=344999
| * \ MFhead@r344786Enji Cooper2019-03-056-186/+242
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/import-googletest-1.8.1/; revision=344787
| * \ \ MFhead@r344527Enji Cooper2019-02-251-0/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/import-googletest-1.8.1/; revision=344528
| * | | | Add MK_GOOGLETEST option for building/installing gmock/gtestEnji Cooper2019-02-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These libraries don't compile on non-C++-11 capable compilers, e.g., g++ 4.2.1 and its corresponding implementation of the c++ library, i.e., libstdc++. Blacklist compilation on all non-C++-11 capable compilers and give others the option of opting out of building/installing gmock/gtest via MK_GOOGLETEST. This option is controlled by MK_CXX and MK_TESTS, as ATF compilation is. Notes: svn path=/projects/import-googletest-1.8.1/; revision=344312
* | | | | Fix still installing ipfilter rc.d files even when WITHOUT_IPFILTERCy Schubert2019-03-121-0/+5
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is specified. When WITHOUT_IPFILTER is specified, delete-old-files fails to delete the optional rc.d files from above. Fix this. WITHOUT_IPFILTER fails to delete the ipfilter.5 optional file during delete-old-files. Fix this. Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week Notes: svn path=/head/; revision=345079
* | | | Drop "All rights reserved" from my copyright statements.John Baldwin2019-03-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: rgrimes MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D19485 Notes: svn path=/head/; revision=344855
* | | | [athani] Add a simple tool to list and control ANI parameters.Adrian Chadd2019-03-063-1/+250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a WIP tool I'm using to figure out why ANI is weirdly busted in my home FreeBSD AP/STA setup. Although athstats (mostly) gets the ANI statistics correct, ANI is making the radio deaf it doesn't recover without being disabled. It's very WIP. Tested: * Carambola 2, (AR9331), AP/STA mode. Notes: svn path=/head/; revision=344842
* | | | Extend libsecureboot(old libve) to obtain trusted certificates from UEFI and ↵Marcin Wojtas2019-03-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement revocation UEFI related headers were copied from edk2. A new build option "MK_LOADER_EFI_SECUREBOOT" was added to allow loading of trusted anchors from UEFI. Certificate revocation support is also introduced. The forbidden certificates are loaded from dbx variable. Verification fails in two cases: There is a direct match between cert in dbx and the one in the chain. The CA used to sign the chain is found in dbx. One can also insert a hash of TBS section of a certificate into dbx. In this case verifications fails only if a direct match with a certificate in chain is found. Submitted by: Kornel Duleba <mindal@semihalf.com> Reviewed by: sjg Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D19093 Notes: svn path=/head/; revision=344840
* | | | remove the removed-from-source drm/drm2 partsAlexander Leidinger2019-03-052-42/+0
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=344796
* | | Merge ^/head r344549 through r344775.Dimitry Andric2019-03-046-35/+90
|\ \ \ | | | | | | | | | | | | Notes: svn path=/projects/clang800-import/; revision=344776
| * | | netmap: pkt-gen: fix bug in send_packets()Vincenzo Maffione2019-03-011-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The send_packets() function was using ring->cur as index to scan the transmit ring. This function may also set ring->cur ahead of ring->head, in case no more slots are available. However, the function also uses nm_ring_space() which looks at ring->head to check how many slots are available. If ring->head and ring->cur are different, this results in pkt-gen advancing ring->cur beyond ring->tail. This patch fixes send_packets() (and similar source locations) to use ring->head as a index, rather than using ring->cur. MFC after: 1 week Notes: svn path=/head/; revision=344696
| * | | bsd.nls.mk isn't optional.Bryan Drewery2019-02-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is protected by MK_NLS. If it should really be optional then it needs to be documented as such in share/mk/bsd.README and .sinclude used where needed. This fixes a regression from r335011. PR: 232527 Submitted by: jarrod@downtools.com.au Reported by: ktullavik@gmail.com MFC after: 3 days Notes: svn path=/head/; revision=344666
| * | | Have cryptocheck toggle kern.cryptodevallowsoft if necessary (thisSean Eric Fagan2019-02-271-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | requires root access). Reviewed by: cem, jhb Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D19372 Notes: svn path=/head/; revision=344630
| * | | Enable build of libbearsslSimon J. Gerraty2019-02-263-0/+27
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | Reviewed by: emaste Sponsored by: Juniper Networks Differential Revision: D16337 Notes: svn path=/head/; revision=344566
* | | Merge ^/head r344178 through r344512.Dimitry Andric2019-02-254-1/+537
|\| | | | | | | | | | | Notes: svn path=/projects/clang800-import/; revision=344513
| * | It turns out that setting the IV length is necessary with CCM in OpenSSL.Sean Eric Fagan2019-02-201-0/+3
| |/ | | | | | | | | | | | | | | | | This adds that back. Reviewed by: cem Notes: svn path=/head/; revision=344388
| * Few more corrections to WITHOUT_OFED=1 make delete-old removal:Andriy Voskoboinyk2019-02-161-26/+2
| | | | | | | | | | | | | | | | | | | | | | - Drop profile libraries; MK_PROFILE=no is set in all Makefile's. - Correct library path to libmlx5.so.1 and libibverbs.so.1 MFC after: 5 days MFC with: 344207 Notes: svn path=/head/; revision=344216
| * Remove corresponding lib32/ files when WITHOUT_OFED=1 is setAndriy Voskoboinyk2019-02-161-0/+50
| | | | | | | | | | | | | | | | MFC after: 5 days MFC with: 344207 Notes: svn path=/head/; revision=344215
| * Refresh OptionalObsoleteFiles.inc for MK_PMC:Andriy Voskoboinyk2019-02-161-1/+71
| | | | | | | | | | | | | | | | | | | | | | | | - Add missing /usr/sbin/pmc, pmcformat.h, libpmcstat.h and pmc.haswellxeon.3 to the list. - Correct man page section for pmcstudy.8. - Include recently added libipt and libopencsd for corresponding TARGET_ARCH MFC after: 5 days Notes: svn path=/head/; revision=344214
| * Add more rc.d scripts / empty directors / config files intoAndriy Voskoboinyk2019-02-161-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | OptionalObsoleteFiles.inc Note: only files with conditional installation logic were included from the PR. PR: 233046 Submitted by: <rozhuk.im@gmail.com> MFC after: 5 days Notes: svn path=/head/; revision=344208
| * Allow to remove unused files via 'make delete-old(-libs)' when WITHOUT_OFEDAndriy Voskoboinyk2019-02-161-0/+377
| | | | | | | | | | | | | | | | | | and / or WITHOUT_OFED_EXTRA src.conf(5) options are set. MFC after: 5 days Notes: svn path=/head/; revision=344207
| * Remove vi(1)-related files via 'make delete-old' when WITHOUT_VI=1 is set.Andriy Voskoboinyk2019-02-161-0/+26
| | | | | | | | | | | | | | MFC after: 5 days Notes: svn path=/head/; revision=344201
| * Add WITH_PIE knob to build Position Independent ExecutablesEd Maste2019-02-152-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Building binaries as PIE allows the executable itself to be loaded at a random address when ASLR is enabled (not just its shared libraries). With this change PIE objects have a .pieo extension and INTERNALLIB libraries libXXX_pie.a. MK_PIE is disabled for some kerberos5 tools, Clang, and Subversion, as they explicitly reference .a libraries in their Makefiles. These can be addressed on an individual basis later. MK_PIE is also disabled for rtld-elf because it is already position-independent using bespoke Makefile rules. Currently only dynamically linked binaries will be built as PIE. Discussed with: dim Reviewed by: kib MFC after: 1 month Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18423 Notes: svn path=/head/; revision=344179