Commit Graph

338 Commits

Author SHA1 Message Date
jmcneill 6f52454d94 When MACHINE_ARCH is missing, give direction on how to get a list of valid options 2020-05-23 17:26:32 +00:00
jmcneill 6437518a34 Remove plain "earm" targets, and require an explicit MACHINE_ARCH for
evbarm instead of selecting a default.
2020-05-23 11:04:43 +00:00
jmcneill a7f3ee8944 Remove evbarm OABI targets 2020-05-23 10:59:25 +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
jmcneill 116200ae1b Allow path components that start with ~ 2020-03-28 20:13:13 +00:00
sborrill 06c7dd3e11 Fix long-term broken pattern match when determining if uname -p output is
valid. [^a-z] syntax isn't valid.
2019-06-07 15:49:20 +00:00
mrg 5426352fee on netbsd when defaulting to the native system, also derived MACHINE_ARCH
from the uname -p value already fetched.

this means eg, build.sh on evbarm will build the native platform rather
than "earm" (armv5) -- which was the default even on arm64 hosts.
2019-05-02 02:51:01 +00:00
pgoyette dedd8aee9b Tyop in error message... 2019-04-25 05:12:49 +00:00
mrg 56608fa62e add aliases for evbarm without saying 'earm':
- copy all the 'evbearm' alias as 'evbarm'.
2019-02-08 02:05:32 +00:00
christos 0a37cd5ef4 add build libs (undocumented). 2018-12-30 23:19:40 +00:00
christos 53e133006b Add some aliases (from phone) 2018-08-09 08:30:29 +00:00
pgoyette f1de59e03f Re-add files that were accidentally deleted in my previous commit. 2018-05-02 07:34:44 +00:00
pgoyette 653cac4418 Synch with HEAD 2018-05-02 07:19:58 +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
skrll ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
uwe c840f8cea1 Restore formatting/indentation of the configure call in rebuildmake()
to what it used to be.
2018-01-15 20:39:53 +00:00
uwe 06ddb7b0da Make sure nbmake is always built with the right _PATH_DEFSYSPATH. 2018-01-15 19:52:54 +00:00
kre 61a91fe3e4 Better validation of var name args to -V and -Z, in a way that makes
it trivial to add a list of banned var names for either of those args
should that ever be considered desireable (as the XXX suggests it might.)
I've had this mod locked in my tree for (at least) months - time to set it free.
2017-10-08 01:05:13 +00:00
kre b5b1e44a8f If we're going xsrc hunting, lets's do it properly. In particular
it is not "good" just because ../xsrc or /usr/xsrc exists, if the user said
-X /no/xsrc/here ...   Further, when we find it, remember it.

While here, also look in my favourite place: .../src/xsrc - src/x would be
better (or src/x11) but that's too hard given the cvs module name and src
tarball format.
2017-10-08 00:45:25 +00:00
maya 6e25a9dd5f Simplify. 2017-10-03 11:02:36 +00:00
maya 2f8550bbff Accept also ../xsrc in our sanity check, we use this as a default too,
if it exists.
2017-10-03 10:59:04 +00:00
maya 535f0948a0 Add sanity check: passed -x but no xsrc directory 2017-10-02 15:40:00 +00:00
christos ab4baeaa18 - Allow all other targets (like kernel=) to obey mkrepro (-P)
- Print the timestamp in UTC
2017-04-08 18:22:35 +00:00
sevan f92715b077 State the reason script bombed.
Reword recommendation.
2017-03-10 17:15:47 +00:00
christos 5a5501a835 add a trailing / to force symlink resolution. 2016-12-18 19:39:05 +00:00
christos 163c34b376 Bail out on error computing the timestamp 2016-12-18 19:00:20 +00:00
christos bb5b15d092 Add -P for reproducible builds based on the latest cvs timestamp. 2016-12-18 02:20:30 +00:00
ast c024434196 With driver modulization of if_loop.c through introduction of
sys/net/if_module.h, build.sh rumptest of -lrumpnet_virtif now also
requires -lrumpdev -lrumpvfs for if_loop.c:config_cfdriver_attach()
and kern_pmf.c:do_sys_sync().
2016-11-13 14:47:46 +00:00
kre 8d737b49d5 When setting TOP the idea is to run the [/usr]/bin/pwd binary, and
exclude any skell builtin.   There are two ways to guarantee exec'ing
a binary, using a path, or using exec.   To use a path we would need to
find it first (which certainly could be done.)  Using exec here is easier.
2016-06-03 00:00:01 +00:00
christos c3fb96a2cc Provide the correct system Makefile path to the tools make. This is needed
because although the arch-specific make wrapper sets $MAKEFLAGS to include
the proper system Makefile path, configure clears $MAKEFLAGS before it invokes
$MAKE to figure out which dependency style to use. This made the build fail
during the gcc build.
2016-04-29 16:08:09 +00:00
matt eb96b2e87d Make evbarm64 (little endian) the default for aarch64. 2015-06-27 06:00:28 +00:00
wiz 9ff958c753 Fix typo in usage. From Christopher M. Fuhrman in PR 49882. 2015-05-06 17:31:49 +00:00
christos 309da5c724 Fix the build kernels target with -n, disable temporarily runcmd while we
are fetching the allkernels variable.
2015-02-01 18:49:25 +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
uebayasi 34757c628f build.sh mkernels: Build all kernels in modular build 2014-11-16 06:08:13 +00:00
uebayasi 5c3b6b4d21 Expand TABs in usage. 2014-11-16 05:39:09 +00:00
uebayasi 445d0e91db build.sh mkernel=*: New command to build kernel in modular 2014-11-16 05:38:10 +00:00
apb d23dc3a0d7 Replace '.' and '-' in ${op} with '_', before setting d_${op}=true.
Also remove or simplify older code that did the same thing in a
different way.  The old code handled most cases, but did not change
op=kernel.gdb to op=kernel_gdb.
2014-11-10 09:59:33 +00:00
uebayasi 9886534313 build.sh: New operation "kernels" to build all kernels 2014-11-06 02:02:48 +00:00
snj 5a351217dd iso -> images 2014-11-05 08:19:17 +00:00
apb fccc687bdd Prefer dash to bash when searching for a usable shell.
I have tested a complete build with HOST_SH=dash on NetBSD.
2014-09-30 14:57:51 +00:00
matt fab8544d6c Add riscv32 and riscv64 platforms. 2014-09-19 17:59:57 +00:00
matt ef6ee95a03 Add or1k MACHINE/MACHINE_ARCH. 2014-09-03 19:32:18 +00:00
apb 9c3c6064f6 Only the -m command line option, not MACHINE from the environment,
is supposed override MACHINE_ARCH from the environment with the
default MACHINE_ARCH for the requested machine.

Add and use an opt_m variable to enforce this.
2014-08-15 18:34:19 +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 76ee568117 MACHINE_ARCH from the environment may be overridden by getarch (based
on the MACHINE), but MACHINE_ARCH from the -a option should not be
overridden.  The previous commit accidentally removed this behaviour.
2014-08-07 18:10:20 +00:00
apb 3058a673ed Add a list-arch operation to build.sh.
This lists all known MACHINE/MACHINE_ARCH values, optionally
filtered by glob patterns given in the "-m" and "-a" options.
For example: build.sh -a '*arm*' list-arch
2014-08-07 17:54:28 +00:00
apb b0a459328c In the usage message, mention that the -m arg may be an alias.
Also adjust a comment around alias processing.
2014-08-07 15:15:48 +00:00
apb cb95afc6e0 When searching for a default MACHINE_ARCH for a given MACHINE,
don't break out of the loop too early.
2014-08-06 12:29:13 +00:00
apb f80058aa23 Synchronise several shell_quote implementations, and:
* Elide some unnecessary pairs of quotation marks, to improve readability.
  For example, shell_quote "''" is now \'\' instead of ''\'''\'''.
* Don't add quotes around words that contain only safe characters,
  to improve readability.
* LC_COLLATE=C to prevent [a-zA-Z] from matching non-ASCII characters.
* Use ${SED} if defined.
2014-08-04 21:56:30 +00:00