Revision tags: release/14.0.0 |
|
#
f174619c |
| 24-Sep-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Guard CROSS_TARGET_FLAGS from buildworld
Until a better arrangment is worked out, guard the setting of CROSS_TARGET_FLAGS in local.sys.mk with check for DIRDEPS_BUILD.
Using a separate flag for CRO
Guard CROSS_TARGET_FLAGS from buildworld
Until a better arrangment is worked out, guard the setting of CROSS_TARGET_FLAGS in local.sys.mk with check for DIRDEPS_BUILD.
Using a separate flag for CROSS_TARGET that can be reset by bsd.compat.mk is probably the right thing.
show more ...
|
#
f9df6097 |
| 23-Sep-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Add support for host32 for DIRDEPS_BUILD
Allow building 32bit libs for host.
Move CFLAGS additions from local.sys.dirdeps.mk (which is too early and impacts CFLAGS defaults) to local.sys.mk
Review
Add support for host32 for DIRDEPS_BUILD
Allow building 32bit libs for host.
Move CFLAGS additions from local.sys.dirdeps.mk (which is too early and impacts CFLAGS defaults) to local.sys.mk
Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D41946
show more ...
|
#
40b9b299 |
| 18-Sep-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Update jobs.mk to leverage -jC
With bmake-20230909 we can use -j1.5C to use 1.5*ncpu bmake will set .MAKE.JOBS.C=yes if this is supported, and in that case jobs.mk will use JOB_MAX_C as default for
Update jobs.mk to leverage -jC
With bmake-20230909 we can use -j1.5C to use 1.5*ncpu bmake will set .MAKE.JOBS.C=yes if this is supported, and in that case jobs.mk will use JOB_MAX_C as default for JOB_MAX.
Remove logic from local.sys.mk which is now handled by jobs.mk
Also use latest dirdeps-targets.mk and meta.{autodep,subdir}.mk
show more ...
|
#
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
#
4b932c2c |
| 25-Apr-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Set MK_host_egacy=yes earlier
If we need to set MK_host_egacy=yes we might need to check it in local.toolchain.mk so set it earlier in local.meta.sys.env.mk
Leave the default MK_host_egacy?=no in l
Set MK_host_egacy=yes earlier
If we need to set MK_host_egacy=yes we might need to check it in local.toolchain.mk so set it earlier in local.meta.sys.env.mk
Leave the default MK_host_egacy?=no in local.sys.mk so it can be tested in Makefiles without concern for build mode.
show more ...
|
#
d7e3299f |
| 23-Apr-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Ensure good exit status from type
When looking to see if nproc is available we do not want warnings about 'type nproc' having bad exit.
|
#
8561d0b2 |
| 22-Apr-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Simplify building host tools during DIRDEPS_BUILD
The whole point of the DIRDEPS_BUILD is to avoid tree walks and basically build everything in a single pass. We use the pseudo MACHINE "host" to rep
Simplify building host tools during DIRDEPS_BUILD
The whole point of the DIRDEPS_BUILD is to avoid tree walks and basically build everything in a single pass. We use the pseudo MACHINE "host" to represent the build host.
When the build host is not FreeBSD or is an older version of FreeBSD it may need some help to build host-tools.
The directory tools/build does this - building libegacy.
local.sys.mk: create a pseudo option MK_host_egacy to indicate if tools/build needs to be built for "host".
local.dirdeps.mk: set MK_host_egacy.host to ${MK_host_egacy} all other DEP_MACHINES will get "no"
This allows a Makefile.depend.options in makefs etc to cause tools/build to be built for host but only if necessary.
local.init.mk: use ISYSTEM as arg to -isystem so that it can be overridden. The default remains ${STAGE_INCLUDEDIR}
src.init.mk: if MACHINE is host and we are not FreeBSD set some MK_ flags the same as tools/build/mk/Makefile.boot.pre and include src.init.${.MAKE.OS:tl}.mk if it exists.
For older versions of FreeBSD add libegacy when building PROGs for "host"
Also instead of -isystem${STAGE_INCLUDEDIR} we want -I${STAGE_INCLUDEDIR} and -isystem/usr/include so we override ISYSTEM. This means any headers we stage for "host" will take precedence over system headers but #include_next will DTRT.
src.init.linux.mk: add -I${SRCTOP}/tools/build/cross-build/include/linux and generally deal with building host tools on Linux. Eg. static linking does not work so set NO_SHARED= no Override some HAVE_ flags.
src.sys.env.mk: on linux awk throws an warning about # in newvers.sh just send stderr to /dev/null
Reviewed by: jrtc27, arichardson Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39744
show more ...
|
#
0df4d8ad |
| 20-Apr-2023 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Add jobs.mk to allow for target-jobs
jobs.mk automates -j$JOB_MAX and capturing build log based on target.
Compute a default for JOB_MAX in local.sys.mk
Reviewed by: stevek, imp Differential Revis
Add jobs.mk to allow for target-jobs
jobs.mk automates -j$JOB_MAX and capturing build log based on target.
Compute a default for JOB_MAX in local.sys.mk
Reviewed by: stevek, imp Differential Revision: https://reviews.freebsd.org/D39683
show more ...
|
#
49b6bc83 |
| 18-Apr-2023 |
Stephen J. Kiernan <stevek@FreeBSD.org> |
meta: print some additional variables on build errors.
Add CPUTYPE and MACHINE_CPUARCH to the list of variables printed when there are build errors.
Protect local.sys.mk from multiple inclusion.
R
meta: print some additional variables on build errors.
Add CPUTYPE and MACHINE_CPUARCH to the list of variables printed when there are build errors.
Protect local.sys.mk from multiple inclusion.
Reviewed by: sjg Obtained from: Juniper Networks, Inc.
show more ...
|
Revision tags: release/13.2.0 |
|
#
073ccb9d |
| 07-Dec-2022 |
Simon J. Gerraty <sjg@FreeBSD.org> |
Allow site.*.mk to augment local.*.mk and src.*.mk
Add some extra customization points so that FreeBSD build can be adapted to local requirements. We use these to minimize changes to share/mk
Revie
Allow site.*.mk to augment local.*.mk and src.*.mk
Add some extra customization points so that FreeBSD build can be adapted to local requirements. We use these to minimize changes to share/mk
Reviewed by: stevek Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37617
show more ...
|
Revision tags: release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
#
e532a999 |
| 20-Jun-2019 |
Alan Somers <asomers@FreeBSD.org> |
MFHead @349234
Sponsored by: The FreeBSD Foundation
|
#
9e0a1e78 |
| 15-Jun-2019 |
Bryan Drewery <bdrewery@FreeBSD.org> |
META_MODE: Delete build targets that fail.
If a meta mode change is triggered but then the build fails then the next build will not retrigger meta mode. This only prevented by removing the target on
META_MODE: Delete build targets that fail.
If a meta mode change is triggered but then the build fails then the next build will not retrigger meta mode. This only prevented by removing the target on rebuild or on the failure to rebuild.
Sponsored by: DellEMC
show more ...
|
Revision tags: release/12.0.0, release/11.2.0, release/10.4.0 |
|
#
bca9d05f |
| 23-Jul-2017 |
Hans Petter Selasky <hselasky@FreeBSD.org> |
Merge ^/head r319973 through 321382.
|
Revision tags: release/11.1.0 |
|
#
a3604b95 |
| 27-Jun-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r320042 through r320397.
|
#
ad706c65 |
| 19-Jun-2017 |
Bryan Drewery <bdrewery@FreeBSD.org> |
Follow-up r320061: Need to respect make.conf/env LIBDIR overrides.
This fixes the lib32 build from creating all stale .depend files.
X-MFC-With: 320061 MFC after: 1 week Sponsored by: Dell EMC Isil
Follow-up r320061: Need to respect make.conf/env LIBDIR overrides.
This fixes the lib32 build from creating all stale .depend files.
X-MFC-With: 320061 MFC after: 1 week Sponsored by: Dell EMC Isilon
show more ...
|
#
4198293b |
| 17-Jun-2017 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r319801 through r320041.
|
#
7970b893 |
| 16-Jun-2017 |
Bryan Drewery <bdrewery@FreeBSD.org> |
WITH_META_MODE: End each ERROR_CMD CMD line with ';'.
This makes it easier to debug multi-line command failures.
X-MFC-With: r319862 MFC after: 1 week Sponsored by: Dell EMC Isilon
|
#
51deaaab |
| 16-Jun-2017 |
Bryan Drewery <bdrewery@FreeBSD.org> |
WITH_META_MODE: Don't try showing command if .ERROR_META_FILE is empty.
This was sed'ing on stdin for failing .PHONY targets.
Reported by: Mark Millard X-MFC-With: r319862 MFC after: 1 week Sponsor
WITH_META_MODE: Don't try showing command if .ERROR_META_FILE is empty.
This was sed'ing on stdin for failing .PHONY targets.
Reported by: Mark Millard X-MFC-With: r319862 MFC after: 1 week Sponsored by: Dell EMC Isilon
show more ...
|
#
95a2495f |
| 12-Jun-2017 |
Bryan Drewery <bdrewery@FreeBSD.org> |
META_MODE: Show .ERROR_CMD in error.
This uses a hack to get the CMD from the meta file rather than .ERROR_CMD since bmake currently blanks the value for non-jobs mode.
Reviewed by: sjg (indirectly
META_MODE: Show .ERROR_CMD in error.
This uses a hack to get the CMD from the meta file rather than .ERROR_CMD since bmake currently blanks the value for non-jobs mode.
Reviewed by: sjg (indirectly) MFC after: 1 week Sponsored by: Dell EMC Isilon
show more ...
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
29f227c1 |
| 14-Jun-2016 |
Bryan Drewery <bdrewery@FreeBSD.org> |
WITH_META_MODE: Enable printing of some of make's environment on error.
This will print a set of variables from make on error using MAKE_PRINT_VAR_ON_ERROR. It is already enabled for the DIRDEPS_BU
WITH_META_MODE: Enable printing of some of make's environment on error.
This will print a set of variables from make on error using MAKE_PRINT_VAR_ON_ERROR. It is already enabled for the DIRDEPS_BUILD. It may make sense to enable this in the non-meta mode as well once people are more used to its more verbose error output.
This makes it much simpler to see which .meta file is used when a command files so that it may be inspected for the build command.
Suggested by: sjg Approved by: re (implicit) Sponsored by: EMC / Isilon Storage Division
show more ...
|
#
0edd2576 |
| 16-Apr-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
2d9796bd |
| 14-Apr-2016 |
Bryan Drewery <bdrewery@FreeBSD.org> |
Follow-up r297835: Let the intented default cookie work.
This happened to work for not prepending .OBJDIR twice but broke the other case of prepending it when needed.
Pointyhat to: bdrewery Sponsor
Follow-up r297835: Let the intented default cookie work.
This happened to work for not prepending .OBJDIR twice but broke the other case of prepending it when needed.
Pointyhat to: bdrewery Sponsored by: EMC / Isilon Storage Division
show more ...
|
#
94086cea |
| 14-Apr-2016 |
Bryan Drewery <bdrewery@FreeBSD.org> |
Rework META_TARGETS so that it automatically adds META_DEPS to the targets.
This will only be done if the target is defined, so if the target is defined after bsd.sys.mk is included then it needs to
Rework META_TARGETS so that it automatically adds META_DEPS to the targets.
This will only be done if the target is defined, so if the target is defined after bsd.sys.mk is included then it needs to manually add ${META_DEPS} still.
Sponsored by: EMC / Isilon Storage Division
show more ...
|
#
a123f26e |
| 12-Apr-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: The FreeBSD Foundation
|
#
0457a4e0 |
| 11-Apr-2016 |
Bryan Drewery <bdrewery@FreeBSD.org> |
META_MODE: Support targets that already have .OBJDIR in them for META_COOKIE.
Sponsored by: EMC / Isilon Storage Division
|