Commit Graph

458 Commits

Author SHA1 Message Date
kre ca09957470 Install the missing sh syntax element in the MKDEBUGKERNEL = no test, so
that "continue" is a command as intended, and not an invalid last arg to
the '[' command (the last arg is required to be ']').

Sometime the proverbial someone should go through this and remove all the
obsolete test -o and -a operators, and probably do something with test's
usage of ! as well.   Not today, or not by me anyway.
2022-01-05 01:46:28 +00:00
christos 6eb4570d40 Create empty files for the "extra" kernels. Grr I should fix this properly
(run checkflists after building the kernels)
2022-01-02 20:09:03 +00:00
christos 508aca192c Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes. 2021-12-29 22:22:12 +00:00
christos a3f7d3a6b3 Put back the code to add DEBUG=-g in config and to add the debug kernels
in the kernel sets. Having the .gdb kernels in the EXTRA_KERNELS does not
work, since we only walk through the standard kernels in the Makefile. Also
doing DEBUG=-g in config twice does not hurt.
2021-12-23 14:50:59 +00:00
christos 4aa4344fed Revert previous, not needed MKKDEBUG does it. 2021-12-20 20:20:35 +00:00
christos 814fa5ccf1 PR/55557: Andreas Gustafsson" Introduce a new variable MKDEBUGKERNEL which
as the name implies, includes a netbsd.gdb inside each kernel set:
$ tar -tzvf kern-GENERIC.tgz
-rwxr-xr-x  0 root   wheel 29398264 Dec 19 12:50 ./netbsd
-rwxr-xr-x  0 root   wheel 208125880 Dec 19 12:50 ./netbsd.gdb
2021-12-20 14:41:26 +00:00
maya f9d97969cb Restore MKNOUVEAUFIRMWARE and MKRADEONFIRMWARE and make gpufw set unconditional
Simplifies logic.
(Second commit - first one was partial)

Restoring MK* requested by mrg on tech-kern discussion
https://mail-index.netbsd.org/tech-kern/2021/09/25/msg027695.html
2021-09-26 15:52:40 +00:00
maya f54624bd74 Move DRM-driver firmware from base to its own set, gpufw
This set is only installed on amd64,i386,evbarm.
This set is installed on minimal installs and on install media, in
case someone needs it for basic driver functionality.

Comments:
Switched to a single MK tunable for it - that is probably unneeded.

An upcoming DRM update will include even fatter firmware, and we'd
like to minimize the impact of it.
2021-09-25 08:54:29 +00:00
christos cb128adb3d use the date tool 2021-05-26 20:22:28 +00:00
martin 80e3db0075 If MKX11 and MKDEBUG, add the xdebug set to the obsolete file handling. 2020-12-29 16:46:44 +00:00
jmcneill 0e1281fab5 Get rid of 'sync' after each kernel build. It adds a noticeable delay to
builds on modern systems and seems to have been added as a workaround for
some 2004-era Linux NFS bug. Guessing that the issue has been sorted out
in the meantime.
2020-09-09 12:06:02 +00:00
jakllsch c6e7ad1d3e Treat aarch64 and aarch64eb identically with regard to ld.so.conf 2020-09-03 18:59:33 +00:00
jmcneill 0e5f6fd76c Use the default motd for stable builds 2020-06-01 01:41:40 +00:00
jmcneill 043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
christos 2158aa56f5 It is KERNEL_DIR 2020-04-27 01:07:27 +00:00
christos ab8a9ee1de us and them, then! 2020-04-05 00:36:25 +00:00
christos d8e96a2d4f Infrastructure for putting kernel+modules in /netbsd/kernel and
/netbsd/modules respectively instead of /netbsd and
/stand/<arch>/<version>/modules.  This is only supported for x86,
and is turned off by default. To try it, add KERNEL_DIR=yes in your
/mk.conf and install a system from that build.
2020-04-04 19:50:53 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
gson 70cbf9d7a5 Don't mix tabs and spaces 2019-09-22 13:08:10 +00:00
martin 2d8834ad2a PR kern/53590: remove -U DEBUG from config(1) invocation (that is:
revert r1.413). DTrace needs the full symbol information.
2019-07-31 18:35:58 +00:00
roy a4b9a5dd90 Install /etc/wpa_supplicant.conf 2019-01-12 17:25:09 +00:00
martin 0b39a65f52 Redo xz vs. gzip selection via conditional make expressions, suggested
by joerg.
2018-10-01 09:47:34 +00:00
martin 15cb964115 Clarify comment, pointed out by maya: we do not expect bootloaders
to understand xz compression, so the kernel.gz stay as they are, only
the sets are moving to .tar.xz.
2018-09-29 06:10:01 +00:00
kre 5d13792aee Only test USE_XZ_SETS if it is defined. This is probably not the
correct fix, so someone else please do it correctly - either this is
the wrong word, or it should be given a default value elsewhere.
2018-09-29 01:12:22 +00:00
martin d7f296ff14 Prepare for .tar.xz sets 2018-09-28 15:11:36 +00:00
ryo fe33aa2786 Add initial support for ARMv8 (AARCH64) (by nisimura@ and ryo@)
- sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@)
- add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@, jmcneill@)
2018-04-01 04:35:01 +00:00
christos b985414b8f Merge autofs support from: Tomohiro Kusumi
XXX: Does not work yet
2018-01-09 03:31:12 +00:00
christos b17b183100 use -v to get the expanded variable. 2017-06-19 20:10:18 +00:00
christos 365765ad32 no need for debug printing. 2017-06-18 02:43:43 +00:00
christos fef4b4b661 put the dtb files with their kernels. 2017-06-18 01:03:30 +00:00
riastradh ef315f7931 Remove MKCRYPTO option.
Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
2017-05-21 15:28:36 +00:00
christos 2f4a483dfc Use make -C instead of cd && make; this is done to preserve the logical path
for debugging info DW_AT_comp_dir
2017-02-07 21:18:05 +00:00
christos 7065e20960 give the kernel pax invocating the MKREPRO_TIMESTAMP treatment. 2015-12-20 02:35:34 +00:00
christos 572dbd7b73 Freeze the BUILDER and the BUILD_DATE for repeatable builds 2015-12-19 23:37:43 +00:00
uebayasi 1f8f4d47f5 Exclude duplicate kernel config names in set generation. Suppress warnings
of defining duplicate make(1) targets.
2015-08-31 06:08:07 +00:00
mrg cf4dd8937a remove the xfree86 reachover makefiles and the vast majority of
the support in the rest of the source tree.

X11 sets could use some cleaning up perhaps (just deletion, as
we've never really marked the old X11R6 as obsolete for native
xorg using platforms so far either.)
2015-07-23 08:03:24 +00:00
uebayasi 0a333665fa Add a new build make variable, CONFIGOPTS, which is passed to config(1)
when building kernels.  Revert "mkernel=*" and "mkernels" in favor of
this option.

Diff posted on source-changes-d@, approved by (null).
2014-11-30 15:53:29 +00:00
matt 547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +00:00
apb 9e8101899d To make pax use ${TOOL_GZIP}, we need to pass "--use-compress-program
${TOOL_GZIP}" on the command line, and refrain from passing "-z".  If
passed "-z", pax will use plain "gzip", ignoring --use-compress-program.
2014-08-06 11:41:18 +00:00
apb 5a18c2965e Introduce and use GZIP_FLAGS variable, to fix a quoting error
in the way we tried to use GZIP="-9 ${GZIP_N_FLAG}".
For consistency, also use GZIP_FLAGS elesehere in this file.
2014-08-06 10:37:30 +00:00
apb f78c710fb2 Pass GZIP="-9 ${GZIP_N_FLAG}" instead of GZIP=-9n
in the environmentto commands that invoke ${TOOL_GZIP}.
This will allow them to use -nT instead of just -n with pigz.
2014-08-05 15:43:50 +00:00
apb 71da667fc9 Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
2014-08-05 15:40:58 +00:00
apb a2fb9dacaf BUILDINFO part 3: Add BUILDINFO to RELEASEVARS and /etc/release
The BUILDINFO string will appear nearthe top of /etc/release,
indented by 8 spaces and with a blank line above and below it,
but without a heading.  The BUILDINFO string is expected to
be self-explanatory.

Also change some other headings near the top of /etc/release.
2014-08-03 09:19:34 +00:00
martin 59ac30731b Undo the mac68k specific previous change and instead move all mkisofs-based
images into ${RELEASEDIR}/images (just like the makefs ones).
2014-06-30 15:34:57 +00:00
apb d768eb27cb Print BUILDID near the top of /etc/release. 2014-06-14 12:26:26 +00:00
martin c72d415969 Use the new -U option for config to avoid generating kernel debug info
during release builds. This should save quite some space in the evbarm
build, where makeoptions DEBUG is heavily used.
2014-05-05 19:10:00 +00:00
apb a452d8c9e2 Pass the -n flag to gzip invocations.
This prevents it from embedding a timestamp in the output.  We pass
"-n" unconditionally, not conditional on MKREPRO, because many other
invocations of gzip already passed the -n flag unconditionally.
2014-01-27 21:37:17 +00:00
christos 2b043c75b6 eliminate use of bsd.sys.mk from Makefiles 2014-01-16 01:15:32 +00:00
matt 3c46e5578f if softfloat, Install a ld.so.conf to use libc_vfp.so if there is a VFP on
evbarm (no other arm ports a CPU supporting VFP).
2013-08-19 16:34:29 +00:00
agc a3a6189341 Fix typo in previous 2013-05-01 15:57:44 +00:00