aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup non-arch MakefilesWarner Losh2017-10-298-23/+26
| | | | | | | | | | Use SYSDIR, BOOTSRC, LDRSRC and FDTSRC in preference to relative paths. Also, use bsd.init.mk where needed. Sponsored by: Netflix Notes: svn path=/head/; revision=325094
* Define new EFI variablesWarner Losh2017-10-298-59/+62
| | | | | | | | | | | Define EFISRC, EFIINC and EFIINCMD. Use them, as well as using other symbols defined in defs.mk. Prefer <bsd.init.mk> to ../../Makefile.inc or <src.opts.mk>. Sponsored by: Netflix Notes: svn path=/head/; revision=325093
* loader.efi: Make framebuffer commands available for arm64Emmanuel Vadot2017-10-255-4/+5
| | | | | | | | | | | Move framebuffer.{c,h} to sys/boot/efi/loader and add the efifb related metadata and pass it to the kernel Reviewed by: imp, andrew Differential Revision: https://reviews.freebsd.org/D12757 Notes: svn path=/head/; revision=324995
* Remove sys/boot/arm/at91 and ixp425Warner Losh2017-10-2572-10845/+0
| | | | | | | | | | | | | Remove at91 bootloader. It only worked on AT91RM9200, and only specific boards that were all EOLd 10 years ago. Remove ixp425. It doesn't build anymore and is for boards that were EOLd 8 years ago. Sponsored by: Netflix Notes: svn path=/head/; revision=324982
* Move BINDIR definition to defs.mk, and override where it isn't /bootWarner Losh2017-10-2513-14/+3
| | | | | | | | | (those files already do that so weren't changed). Sponsored by: Netflix Notes: svn path=/head/; revision=324981
* Use BOOTDIR consistently. We need to include bsd.init.mk early to makeWarner Losh2017-10-251-6/+6
| | | | | | | | | | this happen. This will cause src.opts.mk to be included, so remove that. This needs to propigate through the sys/boot tree. Sponsored by: Netflix Notes: svn path=/head/; revision=324980
* Use preferred defined paths, rather than relative paths in fdt.Warner Losh2017-10-221-2/+4
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324883
* Use SYSDIR instead of ${.CURDIR}/../..<etc>/sys.Warner Losh2017-10-223-6/+7
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324881
* Use BOOTSRC here.Warner Losh2017-10-221-1/+1
| | | | | | | sponsored by: Netflix Notes: svn path=/head/; revision=324880
* Prefer SRCTOP paths for bits we're grabbing from libc.Warner Losh2017-10-222-2/+2
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324879
* Make at91 boot loader compile again.Warner Losh2017-10-221-1/+8
| | | | | | | No clue if it actually still works, but it might. Notes: svn path=/head/; revision=324878
* End source directories with SRC rather than a hodgepodge of namesWarner Losh2017-10-2216-28/+28
| | | | | | | | | | | | | | BOOTDIR->BOOTSRC FICLDIR->FICLSRC LDR_MI->LDRSRC This matches the patterns used in the rest of the system a bit vetter. Suggested by: rgrimes@ Sponsored by: Netflix Notes: svn path=/head/; revision=324877
* Move fdt and uboot defines into common uboot.mk.Warner Losh2017-10-226-60/+25
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324876
* Define LIBSA32 to LIBSA on i386 to fix build.Warner Losh2017-10-221-0/+4
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324850
* Use BOOTOBJ and BOOTDIR to find geli includes and libraries.Warner Losh2017-10-224-7/+7
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324845
* Stopgap fix to the mistmatch between LOADER_GELI_SUPPORT andWarner Losh2017-10-225-5/+5
| | | | | | | | | | | LOADER_NO_GELI_SUPPORT. To disable geli support in the loader, define LOADER_GELI_SUPPORT=no. Proper warnings for for old build options to follow. Sponsored by: Netflix Notes: svn path=/head/; revision=324843
* Introduce BOOTOBJ: The top level object directory for the boot treeWarner Losh2017-10-221-4/+6
| | | | | | | | | and use it in preference to spelling out the path. Sponsored by: Netflix Notes: svn path=/head/; revision=324842
* Use BOOTDIR more consistently in defs.mk rather than repeat sys/boot.Warner Losh2017-10-221-2/+2
| | | | | | | Sponsored By: Netflix Notes: svn path=/head/; revision=324841
* libsa/ip: stop read loop on bad fragmentsToomas Soome2017-10-181-1/+2
| | | | | | | | | Lets try to clear out from case of overlapping etc fragments and stop read. Reported by: Dan McDonald Notes: svn path=/head/; revision=324719
* libsa/ip.c: misplaced comment, ip_v is half char, not ip_pToomas Soome2017-10-181-2/+2
| | | | | | | | | The comment should be at previous line. Reported by: Dan McDonald Notes: svn path=/head/; revision=324717
* Revert "Unify boot1 with loader" change r324646Warner Losh2017-10-178-508/+882
| | | | | | | | | | | | | | Back out the unification commit to boot1. There's some issues on the arm and arm64 platforms that need to be addressed with code changes. There's also a discussion on arch@ about the future of boot1.efi vs just using loader.efi that needs to play out. So take a pause on these changes until the arm issues can be fixed and it's clear boot1.efi will survive into FreeBSD 12. OK'd by: Eric@meatspace Notes: svn path=/head/; revision=324709
* loader.mk: clean md.o even if MD_IMAGE_SIZE not definedEd Maste2017-10-171-0/+2
| | | | | | | | | | | | | We don't normally provide special handling for optionally-included src files, but md.o depends on both md.c and the value of ${MD_IMAGE_SIZE}. Previously if one built with MD_IMAGE_SIZE, executed "make clean", and then built with a different MD_IMAGE_SIZE md.o would not be rebuilt. Reported by: Zakary Nafziger Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=324703
* We need to include disk.o in libuboot.a when we're building withWarner Losh2017-10-171-0/+4
| | | | | | | | | support for disk access. Sponsored by: Netflix Notes: svn path=/head/; revision=324702
* loader: initialize dv_cleanup in md.c to eliminate clang warningEd Maste2017-10-171-1/+2
| | | | | | | | Submitted by: Zakary Nafziger <worldofzak@gmail.com> Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=324700
* Explicitly inlcude SYSDIR in the include path -- need machine path too?Warner Losh2017-10-161-1/+1
| | | | Notes: svn path=/head/; revision=324654
* LOADER_foo_SUPPORTEDWarner Losh2017-10-1617-294/+95
| | | | Notes: svn path=/head/; revision=324653
* Move all the ficl common code into ficl.mkWarner Losh2017-10-1616-102/+21
| | | | | | | | There's a number of copies of basically identical code to enable building forth in /boot/loader. Move it all into ficl.mk. Notes: svn path=/head/; revision=324652
* create defs.mk for common definitionsWarner Losh2017-10-164-10/+22
| | | | Notes: svn path=/head/; revision=324651
* tweak styleWarner Losh2017-10-161-2/+1
| | | | Notes: svn path=/head/; revision=324650
* Move common/Makefile.inc to sys/boot/loader.mk.Warner Losh2017-10-1613-54/+38
| | | | | | | | | | | | Makefile.inc has a specific meaning in the tree, and common/Makefile.inc doesn't quite fit into that. Rename it to loader.mk and it will be a place to collect common things to all /boot/loader programs there. Sponsored by: Netflix Notes: svn path=/head/; revision=324649
* Rename top level Makefile.ficl to ficl.mk.Warner Losh2017-10-164-3/+3
| | | | Notes: svn path=/head/; revision=324648
* Move orphaned man pages into new man directory from common. This helpsWarner Losh2017-10-164-1/+1
| | | | | | | | | | keep cleaer that common is just for the MI files for /boot/loader programs. Sponsored by: Netflix Notes: svn path=/head/; revision=324647
* Unify boot1 with loaderWarner Losh2017-10-168-882/+510
| | | | | | | | | | | Refactor boot1 to use the same I/O code as /boot/loader uses. Refactor to use the common efi_main.c. Submitted by: Eric McCorkle Differential Revision: https://reviews.freebsd.org/D10447 Notes: svn path=/head/; revision=324646
* Move panic back into libsa. It's documented in libstand(3) to belongWarner Losh2017-10-123-3/+3
| | | | | | | | | there. Sponsored by: Netflix Notes: svn path=/head/; revision=324559
* Define prototype for exit and ensure referencesWarner Losh2017-10-125-0/+13
| | | | | | | | | | | | Define a prototype for exit in stand.h. Provide a reference to exit in a few conf.c files to ensure that its definition gets pulled in early. Since exit() is a MD routine, it isn't defined in libsa. However, libsa tends to be listed last and will soon have panic() in it which calls exit(). The reference to exit early ensures that the MD exit is available to satisfy linking for static libraries. Notes: svn path=/head/; revision=324558
* Rename exit to efi_exit to avoid clashing with libsa exit definitionWarner Losh2017-10-123-11/+12
| | | | | | | | | | | Rename exit to efi_exit. It doesn't have the proper signature and conflicts with standard definition. Provide the standard definition as well. Sponsored by: Netflix Notes: svn path=/head/; revision=324557
* Move ufsread.cWarner Losh2017-10-125-6/+9
| | | | | | | | | | | Move ufsread.c from sys/boot/common (which used to be all the common files for /boot/loader, but grew to be all the common files for sys/boot, but that's now sys/boot/libsa's job) to sys/boot/libsa. Sponsored by: Netflix Notes: svn path=/head/; revision=324556
* Honor CFLAGS modifications in Makefile.inc by using += here. There'sWarner Losh2017-10-121-1/+1
| | | | | | | | | | no hyper-small space constraints, so there's no reason to tightly control it. Sponsored by: Netflix Notes: svn path=/head/; revision=324555
* Move crc32.c, util.c and gpt.c over to libsa.Warner Losh2017-10-1211-8/+13
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324554
* Rename libstand.a to libsa.a and libstand32.a to libsa32.aWarner Losh2017-10-127-12/+10
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324553
* Kill the userboot copy of libstand.Warner Losh2017-10-125-28/+3
| | | | | | | | | | It's not needed (it's now identical to libsa, and seems to have been for some time). Sponsored by: Netflix Notes: svn path=/head/; revision=324552
* Move lib/libstand to sys/boot/libsaWarner Losh2017-10-1284-15/+18669
| | | | | | | | | | Move the sources to sys/boot. Make adjustments related to the move. Kill LIBSTAND_SRC since it's no longer needed. Sponsored by: Netflix Notes: svn path=/head/; revision=324551
* Fix typos: `stand alon{e,g}` should be spelled like `standalone`Enji Cooper2017-10-101-3/+3
| | | | Notes: svn path=/head/; revision=324471
* Rather than laying whack-a-mole with including the path to stand.h,Warner Losh2017-10-1024-51/+3
| | | | | | | | | | always include it. Remove places where we explicitly include it. This also helps reduce the 'cut-and-paste' factor of these Makefiles. Sponsored by: Netflix Notes: svn path=/head/; revision=324460
* Create sys/boot/libsa and build libstand.a thereWarner Losh2017-10-093-1/+16
| | | | | | | | | | | Build libstand from inside the sys/boot build. Redirect all users in sys/boot to grab it from there. We still build it as libstand.a for the moment. When lib/libstand is moved here, we'll change the name. Sponsored by: Netflix Notes: svn path=/head/; revision=324453
* Define LIBSA* and use them instead of overloaded LIBSTANDWarner Losh2017-10-0917-47/+35
| | | | | | | | | | | LIBSA is the current stand alone library. LIBSA32 is the 32-bit version of the library. LIBSAU is the userboot version of libsa. Use the proper define instead of the more generic define. Sponsored by: Netflix Notes: svn path=/head/; revision=324452
* Add missing -I${SASRC} in a couple of places so that stand.h doesn'tWarner Losh2017-10-092-1/+2
| | | | | | | | | accidentally come in via host pollution. Sponsored by: Netflix Notes: svn path=/head/; revision=324451
* Define SASRC and use itWarner Losh2017-10-0926-28/+39
| | | | | | | | | | | | Define SASRC to point to the current libstand sources. Include ../Makefile.inc early enough in a few places so we can .include "${SASRC}/Makefile" and have it work. Create a new pass-up Makefile.inc in sys/boot/userboot to allow this pattern to work. Sponsored by: Netflix Notes: svn path=/head/; revision=324450
* Prefer ${LIBSTAND} to -lstandWarner Losh2017-10-093-3/+3
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=324449
* Unbreak building efiboot with MK_ZFS == noEnji Cooper2017-10-071-1/+2
| | | | | | | | | Wrap `efi_zfs_is_preferred` with `#ifdef EFI_ZFS_BOOT`. Reported by: Guy Yur <guyyur@gmail.com> Notes: svn path=/head/; revision=324388