summaryrefslogtreecommitdiff
path: root/usr.sbin/installboot/Makefile
AgeCommit message (Collapse)Author
2023-06-03adapt to ${CC_WNO_ADDRESS_OF_PACKED_MEMBER}lukem
Simplify CWARNFLAGS to use ${CC_WNO_ADDRESS_OF_PACKED_MEMBER} which works for both clang and gcc, and remove compiler-specific equivalents.
2023-06-03bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBERlukem
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
2020-09-06add support for new GCC 9 warnings that may be too much to fixmrg
right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings. apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
2020-06-21Add evbmips support for u-boot handling.thorpej
2019-08-15Never trust a compiler that predefines i386 as 1 - do the symbol namemartin
concatenation at the make level instead.
2019-08-15Replace black voodo linker magic (sometimes failing) with somemartin
makefile + macro magic to trim the list of available machines on size restricted install media.
2019-05-07Add installboot(8) support for evbarm (and, in the future, other evb*)thorpej
boards that use u-boot. A known board database lists boards and their respective u-boot packages. u-boot packages are discovered at run-time (in /usr/pkg/share/u-boot, by default). These packages contain board database overlays that describe u-boot installation procedure that's specific for that board. Support this as a native tool and as a host tool. The native tool will attempt to determine the running board type using OpenFirmware calls. Host tool and native tool alike may also specify a board type directly using the "-o board=xxx option" or have installboot(8) determine the board type from a device tree blob using "-o dtb=/path/to/board.dtb". A "-o media=xxx" option is provided for boards that have different u-boot binaries and/or installation procedures for different media types (e.g. SDMMC, eMMC, or USB). This is trivial to extend to other evb* platforms that use u-boot, even if they don't use FDT for autoconfiguration.
2017-01-11Disable a couple of warnings until further investigation.joerg
2015-06-06Linking against libutil is not appropiate for tools.joerg
2015-06-05Support wedge names.mlelstv
2014-02-24Rename NetBSD/hp700 to NetBSD/hppa.skrll
Unfortunately our VCS isn't very helpful here.
2012-08-10Remove many HAVE_GCC || HAVE_PCC conditionals as the options also applyjoerg
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
2011-08-14fix various gcc-4.5 warningschristos
2011-06-22apply some -Wno-error and/or -fno-strict-aliasing.mrg
all of this should be looked at closer, but some of them are not very trivial.
2011-06-20remove most of the remaining HAVE_GCC tests that are always true inmrg
the modern world.
2011-01-26Add support for the Extensible MIPS ("eMIPS") platform. Thepooka
NetBSD/emips port runs on Xilinx and Beecube FPGA systems and the Giano system simulator. eMIPS is a platform developed at Microsoft Research for researching reconfigurable computing. eMIPS allows dynamic loading and scheduling of application-specific circuits for the purpose of accelerating computations based on the current workload. NetBSD eMIPS support for NetBSD 4.x was written at Microsoft Research by Alessandro Forin and Neil Pittman. Microsoft Corporation has donated full copyright to The NetBSD Foundation. Platform support for eMIPS is the first part of Microsoft's contribution. The second part includes the hardware accelerator framework and will be proposed on tech-kern soon.
2009-04-22Enable WARNS=4 by default, except for:lukem
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest kimpersonate kstash ktutil makefs ndbootd ntp pppd quot racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump traceroute traceroute6 user veriexecgen wsmoused zic (Mostly third-party applications)
2009-04-05WARNS=4lukem
2008-08-29Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a ↵gmcgarry
few flags for PCC.
2008-02-09make all sun2 use -O0 and move most of the hacks out into just 3 files.mrg
2008-02-02Add a findstage2 function (which returns block numbers wheretsutsui
the secondary boot is stored to embed them into the primary bootxx) for ext2fs. Currently disabled because there is no primary boot block which supports ext2fs, but it might help someone in some day.
2006-09-01NetBSD/landisk support.uwe
2006-05-12don't do the -Wno-pointer-sign dance for host programs.mrg
2006-05-11sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.mrg
2006-02-18Changes to allow support for a reduced set of architectures.dsl
In particular if SMALLPROG is set (eg for installation crunched ramdiskbin) only build for the current MACHINE.
2005-12-29Add ews4800mips support.tsutsui
2005-06-12Build hp300 support into installboot(8).dyoung
2005-05-14add hp700 support.chs
2003-11-14Disable hp300 support (again).lukem
This code is not to be reenabled again until it is fixed to my satisfaction (as a member of core and the person who ends up dealing with most of the host tool build bugs)
2003-11-13roundup() write of hp300 boot code to a multiplr of the disk sector size.dsl
and re-instate the hp300 code - seems to work.
2003-11-10Disable the hp300 for now.fvdl
2003-11-08First cut of hp300 installboot, seems to DTRT on i386.dsl
Maybe this code ought to know how to add a file to the LIF filesystem.
2003-10-28XXX: build mdsetimage.c / installboot/ffs.c with -O0 on sun2 as GCC3mrg
barfs on these for now.
2003-10-27add next68k support to installbootcl
2003-05-18Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),lukem
there's no need to special-case .include-ing it.
2003-04-09Add support for i386 boot code - for new bootxx stuffdsl
2003-01-15Add support for amiga.mhitch
2002-06-02Add x68k stuff.isaki
2002-05-20- use uint8_t instead of char for boot block blobslukem
- bbinfo_params: - replace "int littleendian" with "bbinfo_endian endian" - add comments - shared_bbinfo_clearboot(): - add callback method to shared_bbinfo_clearboot() - don't clear from 0..headeroffset; use a callback to do that - add news68k and newsmips support. From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>, with a rework by me to take advantage of the new shared_bbinfo_clearboot() callback. (XXX: untested yet)
2002-05-15bootblock.h:lukem
- unify sparc_bbinfo (1064 bytes, with 256 block entries) and sun68k_bbinfo (296 byte, with 64 block entries) into shared_bbinfo (512 bytes, with 118 block entries), which will be also shared by future bbinfo-using platforms (including macppc) - add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs bootxx version skew. - add macppc support */bootxx.c: - migrate to new shared_bbinfo structure installboot: - add macppc support (still needs applepartmap support and testing) - improve and add some more warnings & errors to installboot - implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which perform the majority of the work for bbinfo-using back-ends (rather than replicating that across multiple back-ends).
2002-05-06Add sparc module.pk
2002-04-26s/_SRC_TOP_/NETBSDSRCDIR/lukem
2002-04-24convert from "sun68k_bbinfo.h" to <dev/sun/sun_boot.h>lukem
2002-04-23after consideration, don't bother with compat symlinks, as it mightlukem
cause end-user confusion if the syntax changed between /usr/mdec/installboot and /usr/sbin/installboot
2002-04-22include <bsd.own.mk> for _SRC_TOP_bjh21
2002-04-22Install the compatability symlink for sun2.fredette
In the sun68k handler, add some sync()s to make sure we get a coherent picture of the filesystem. Maybe should be in the MI filesystem code?
2002-04-22Add sun2 backend from Matthew Fredette.lukem
(Implemented with "sun68k.c" as it should eventually support "sun3" as well.)
2002-04-19- Add code from Matt Fredette <fredette@theory.lcs.mit.edu> to implementlukem
fstype checking, and back-end "ffs" support. - Consistently use at least uint32_t for blocknumbers (vs. int / long / ...) - Consistently use uintXX_t instead of u_intXX_t. - Move various duplicated prototypes into "installboot.h"
2002-04-11- add no_parseopt(), no_setboot() and no_clearboot() methods for back-endslukem
to use when they don't support a particular method - don't automatically generate machines.c anymore - add entries for i386 (temporarily unsupported) and shark (permanently unsupported)
2002-04-06Install the compat symlink into ${DESTDIR}.bjh21