summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* The conversion tools have been further improved and some erroneousse2014-08-203-53/+94
| | | | | | | | | | | | | | | | conversions have been detected and fixed. It is now possible to add options after the encoding in the parameter list for convert-keymap.pl. This is currently used to selectively enable interpretation of the ISO8859-1 currency symbol as the Euro sign found in ISO5589-15, or to add a Yen symbol in place of '\' for specific Japanese keyboards. The option are appended to the parameter list, as in e.g. "convert-keymap.pl german.iso.kbd ISO5589-1 EURO". The options are appended to the encoding in the form "+EURO" or "+YEN" in KBDFILES.map, to keep the meaning of the columns intact. MFC after: 3 days
* Fix further conversion errors found while testing the converted keymaps.se2014-08-202-8/+25
| | | | MFC after: 3 days
* Don't stop other legs of a parallel build due to a failure in make_check.ian2014-08-201-0/+3
| | | | | The whole point is to see if there's any failure, which is handled by building a newer version of make.
* Add missing WITHOUT_CUSE file.hselasky2014-08-191-0/+2
|
* Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* Add support for -X, which installs the native cross tools for qemuimp2014-08-191-1/+21
| | | | operations. Doesn't install qemu nor setup the jail, yet.
* Minor fixes to convert-keymap.pl (conversion of 8bit characters in the formse2014-08-182-12/+12
| | | | | | | 'x' with high bit set) and to KBDFILES.map (fix encodings and comment out a few redundant keymap files). MFC after: 3 days
* Import the tools used to convert the keymap files from SYSCONS (in localese2014-08-185-0/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | dependent encoding) to NEWCONS (Unicode). The file "LANG.map" is used to convert INDEX.keymaps. It has 3 columns: - the language ID as used in the source file - the language ID to be used in the generated file (e.g. "iw" -> "he") - the encoding of the menu texts for this language The conversion result is written to STDOUT. The file "KBDFILES.map" is used to batch convert keymap files. It's columns are: - the encoding used for the keymap sounce file - the name of the source file - the name of the generated file The output files are created in the TEMP sub-directory of the vt keymap directory, in order to preserve (possibly uncommitted) keymap files in /usr/src/share/vt/keymaps. The convert-keymap.pl script can be directly executed by passing the source file name and the encoding on the command line. It writes to STDOUT and generates hex Unicode codepoints by default. (This can be changed to decimal in the script.) While written for the one-time conversion of the SYSCONS keymaps into the format required for NEWCONS, I think these tools may be useful for easy conversion of possible further SYSCONS keymap files, that have not been committed to the source tree.
* Update to the current version of netmap.luigi2014-08-162-35/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly bugfixes or features developed in the past 6 months, so this is a 10.1 candidate. Basically no user API changes (some bugfixes in sys/net/netmap_user.h). In detail: 1. netmap support for virtio-net, including in netmap mode. Under bhyve and with a netmap backend [2] we reach over 1Mpps with standard APIs (e.g. libpcap), and 5-8 Mpps in netmap mode. 2. (kernel) add support for multiple memory allocators, so we can better partition physical and virtual interfaces giving access to separate users. The most visible effect is one additional argument to the various kernel functions to compute buffer addresses. All netmap-supported drivers are affected, but changes are mechanical and trivial 3. (kernel) simplify the prototype for *txsync() and *rxsync() driver methods. All netmap drivers affected, changes mostly mechanical. 4. add support for netmap-monitor ports. Think of it as a mirroring port on a physical switch: a netmap monitor port replicates traffic present on the main port. Restrictions apply. Drive carefully. 5. if_lem.c: support for various paravirtualization features, experimental and disabled by default. Most of these are described in our ANCS'13 paper [1]. Paravirtualized support in netmap mode is new, and beats the numbers in the paper by a large factor (under qemu-kvm, we measured gues-host throughput up to 10-12 Mpps). A lot of refactoring and additional documentation in the files in sys/dev/netmap, but apart from #2 and #3 above, almost nothing of this stuff is visible to other kernel parts. Example programs in tools/tools/netmap have been updated with bugfixes and to support more of the existing features. This is meant to go into 10.1 so we plan an MFC before the Aug.22 deadline. A lot of this code has been contributed by my colleagues at UNIPI, including Giuseppe Lettieri, Vincenzo Maffione, Stefano Garzarella. MFC after: 3 days.
* Make the USB and ZFS devd configuration files optional depending on thengie2014-08-151-3/+5
| | | | | | | | | | | values of MK_USB/MK_ZFS Making zfs.conf optional resolves PR # 186971 PR: 186971 Phabric: D606 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* create_$ARCH_diskimage never really took off. Collapse back down toimp2014-08-143-20/+2
| | | | just one.
* Only install the boot loader if it actually exists. This is a stop-gapimp2014-08-141-2/+8
| | | | | change, since larger changes to use geom more exclusively to create partitions is in th works.
* Make the libbsdstat useful again.adrian2014-08-132-4/+5
|
* Integrate lib/libutil into the build/kyuangie2014-08-1312-1448/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the .t wrappers Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page humanize_number_test.c: - Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h) Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division
* Port date/bin/tests to ATFngie2014-08-131-0/+1
| | | | | | | | | Phabric: D545 Approved by: jmmv (mentor) Submitted by: keramida (earlier version) MFC after: 2 weeks Sponsored by: Google, Inc Sponsored by: EMC / Isilon Storage Division
* Convert bin/sh/tests to ATFngie2014-08-131-0/+1
| | | | | | | | | | | | | The new code uses a "test discovery mechanism" to determine what tests are available for execution The test shell can be specified via: kyua test -v test_suites.FreeBSD.bin.sh.test_shell=/path/to/test/sh Sponsored by: EMC / Isilon Storage Division Approved by: jmmv (mentor) Reviewed by: jilles (maintainer)
* Complete the usr.bin/yacc kyua integration work I originallyngie2014-08-121-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* Fix paths.adrian2014-08-101-1/+1
|
* Add more tools to the build.adrian2014-08-091-1/+1
|
* Update athpoke/athregs to use the modified register read diagnostic API.adrian2014-08-092-5/+6
|
* Fix athdecode to actually work.adrian2014-08-061-1/+4
| | | | | | | | * Add AR9287 and AR9331 chipset support - it just uses the AR5416 support for now so some of the register mappings are wrong, but it works well enough. * don't call exit() from opmark().
* Integrate lib/libnv into the build/kyuangie2014-08-057-1441/+0
| | | | | | | | | Rename all of the TAP test applications from <test> to <test>_test to match the convention described in the TestSuite wiki page Phabric: D538 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* Integrate lib/libmp into the build/kyuangie2014-08-043-233/+0
| | | | | | | | | | | | | - Remove the .t wrapper - Fix -Wreturn-type warnings with clang This change has been tested on amd64/i386 Phabric: D530 Reviewed by: jmmv Approved by: jmmv (co-mentor) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Sort switch statements.imp2014-08-021-6/+6
|
* Sort usage options.imp2014-08-021-2/+2
|
* Add a new -K to suppress installing the kernel. Useful for creatingimp2014-08-021-3/+13
| | | | | | chroots that may never boot (such as build environments), or for platforms that don't really need the kernel installed into the filesystem.
* NANO_OBJ shouldn't end with a '/', so remove it here. This makes theimp2014-08-011-1/+1
| | | | | | | pathnames printed not have the dreaded // which makes it hard to cut and paste into an emacs find file command... MFC After: 3 days
* Use rm -x only on FreeBSD 10 and newer. Many people still build fromimp2014-08-011-12/+21
| | | | | | older hosts, which still works, so don't break that gratuitously. MFC After: 3 days
* Fix a typo in the example script.imp2014-07-311-1/+1
|
* Add a 'raw' parameter to the 'modinfo' subcommand. This is handy whennp2014-07-261-2/+51
| | | | | | | | | | | | | | | | | | | | | trying to figure out why a QSFP+/SFP+ connector or cable wasn't identified correctly by cxgbe(4). Its output looks like this: # cxgbetool t5nex0 modinfo 0 raw 00: 03 04 21 00 00 00 00 00 ..!. .... 08: 04 00 00 00 67 00 00 00 .... g... 10: 00 00 05 00 41 6d 70 68 .... Amph 18: 65 6e 6f 6c 20 20 20 20 enol 20: 20 20 20 20 00 41 50 48 .APH 28: 35 37 31 35 34 30 30 30 5715 4000 30: 33 20 20 20 20 20 20 20 3 38: 4b 20 20 20 01 00 00 fa K .... 40: 00 00 00 00 41 50 46 31 .... APF1 48: 30 30 34 30 30 33 30 30 0040 0300 50: 30 33 20 20 31 30 30 31 03 1001 58: 33 30 20 20 00 00 00 97 30 .... MFC after: 3 days
* Use the right lengths.delphij2014-07-252-2/+2
| | | | | Submitted by: Sascha Wildner MFC after: 2 weeks
* Use the right length.delphij2014-07-251-1/+1
| | | | | Submitted by: Sascha Wildner MFC after: 2 weeks
* Fix structure of new tests (r268794) for usr.bin/units.jmmv2014-07-251-0/+1
| | | | | | | - Make sure the tests go into the right directory. The location was wrong so they were overwriting the bin/chown tests! - Use the right naming scheme for the test program. - Remove the svn:executable property from the shell script.
* Fix manpages path and sort entriesbapt2014-07-171-7/+7
|
* Remove texinfo manpages as well if built WITHOUT_INFObapt2014-07-171-0/+7
|
* Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-172-4/+4
| | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* Enable MK_TESTS by default, take 2.jmmv2014-07-162-8/+9
| | | | | | This is a redo of r267424, which was reverted in r267432 because it broke "make buildworld" from FreeBSD 9.x. This issue has been resolved and this change is still "make tinderbox" clean.
* Avoid hardcoding "gcc" in the DTrace tests.pfg2014-07-111-1/+1
| | | | | | | | | At least one test doesn't work yet without gcc, however gcc is not always available in base. Using the environment compiler is more trustable and will also work with an external compiler. Reviewed by: markj MFC after: 3 days
* The GNU texinfo and GNU info pages are not built and installedbapt2014-07-101-0/+4
| | | | | | | anymore, WITH_INFO knob has been added to allow to built and install them again. Reviewed by: imp
* The GNU readline library is now an INTERNALLIB - that is, it isbapt2014-07-091-2/+0
| | | | | | | | | | statically linked into consumers (GDB and variants) in the base system, and the shared library is no longer installed. That also allows ports to be able to use a modern version of readline PR: 162948 Reviewed by: emaste
* Don't install locale1.0 if MK_NLS == no.jilles2014-07-081-2/+3
| | | | | | | | | | | | The test locale1.0 depends on locale support; it is meaningless without a working LC_MESSAGES. I added an OptionalObsoleteFiles.inc entry. PR: 181151 Submitted by: Garrett Cooper (original version) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Make this compilable on latest Linux'es without warnings.kib2014-07-081-2/+7
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Remove ia64.marcel2014-07-078-791/+1
| | | | | | | | | | | | | | | | | This includes: o All directories named *ia64* o All files named *ia64* o All ia64-specific code guarded by __ia64__ o All ia64-specific makefile logic o Mention of ia64 in comments and documentation This excludes: o Everything under contrib/ o Everything under crypto/ o sys/xen/interface o sys/sys/elf_common.h Discussed at: BSDcan
* Adopt to current and other changes:mr2014-07-047-14/+77
| | | | | | use dedicated kernel files with some local settings use mkimg for ISO building put images into separate directory and rename them for better consistency
* Add documentation for svnlite.eadler2014-07-021-0/+1
| | | | | | | PR: 191544 Reported by: eric Reviewed by: imp MFC After: 1 week
* Activate the condition for WITHOUT_INFObapt2014-06-301-2/+2
| | | | Submitted by: antoine
* fill in the list of obsolete files when base is built with WITHOUT_INFObapt2014-06-301-1/+25
|
* Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VTemaste2014-06-301-0/+0
| | | | | | | | | The _SUPPORT knobs have a consistent meaning which differs from the behaviour controlled by this knob. As the knob is opt-out and has not appeared in a release the impact should be low. Suggested by: imp, wblock MFC after: 1 week
* Minimal update for cvsup -> svn change.gavin2014-06-281-3/+2
|
* * Handle ++x as well as x++ while converting.marcel2014-06-251-7/+54
| | | | | | | | | * Add special case handling where normal conversion would not work (some APIs have special names) * Fix conversion for function calls involving ifnet Submitted by: Sreekanth Rupavatharam <rupavath@juniper.net> Obtained from: Juniper Networks, Inc.
OpenPOWER on IntegriCloud