Skip to content

Commit f941649

Browse files
authored
Merge branch 'freebsd:main' into patch-1
2 parents 5596269 + 9899985 commit f941649

File tree

2,582 files changed

+141791
-75772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,582 files changed

+141791
-75772
lines changed

.cirrus.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ compute_engine_instance:
44
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
55
platform: freebsd
66
image_project: freebsd-org-cloud-dev
7-
image: freebsd-13-2-release-amd64
7+
image: freebsd-13-3-release-amd64
88
cpu: 8
99
memory: 8G
1010
disk: 40
@@ -31,12 +31,20 @@ task:
3131
TOOLCHAIN: llvm17
3232
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
3333
- name: amd64-llvm18 World and kernel build and boot smoke test
34-
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
34+
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
35+
trigger_type: manual
3536
env:
3637
TARGET: amd64
3738
TARGET_ARCH: amd64
3839
TOOLCHAIN: llvm18
3940
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
41+
- name: amd64-llvm19 World and kernel build and boot smoke test
42+
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
43+
env:
44+
TARGET: amd64
45+
TARGET_ARCH: amd64
46+
TOOLCHAIN: llvm19
47+
TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
4048
- name: arm64-llvm16 World and kernel build and boot smoke test
4149
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
4250
trigger_type: manual
@@ -61,6 +69,14 @@ task:
6169
TARGET_ARCH: aarch64
6270
TOOLCHAIN: llvm18
6371
TOOLCHAIN_PKG: ${TOOLCHAIN}
72+
- name: arm64-llvm19 World and kernel build and boot smoke test
73+
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
74+
trigger_type: manual
75+
env:
76+
TARGET: arm64
77+
TARGET_ARCH: aarch64
78+
TOOLCHAIN: llvm19
79+
TOOLCHAIN_PKG: ${TOOLCHAIN}
6480
- name: amd64-gcc12 World and kernel build and boot smoke test (manual)
6581
only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
6682
trigger_type: manual

.git-blame-ignore-revs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#
99
# This file is sorted in git log order (newest commits first).
1010

11+
# whitespace fixes for sys/sys/kernel.h
12+
5c623697d6011de63bc762560a648c09379e06d2
1113
# style fixes for iflib
1214
fa7045f99cdb2b699205653f42f3fe78597880a7
1315
# remove stray whitespaces from sys/amd64/

.github/workflows/style.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Style Checker
22

3-
# Runs my simple style(9) checker on any pushes or pull requests. It could be
4-
# optimized by fetching the pull request head branch back to main revisions and
5-
# running on that. That would reduce the run time from 3-4 minutes down to 30-40
6-
# seconds. Getting the right series of clone + fetches to get that iteratively
7-
# is proving elusive, so optimizations welcome.
3+
# Runs my simple style(9) checker on pull requests.
84

95
on:
106
pull_request: # maybe pull_request_target
117
branches: [ main ]
128
types: [ opened, reopened, edited, synchronize ]
9+
paths: [ '**.S', '**.c', '**.cc', '**.cpp', '**.h', '**.hh', '**.hpp' ]
1310

1411
permissions:
1512
contents: read
@@ -19,16 +16,21 @@ jobs:
1916
name: Style Checker
2017
runs-on: ubuntu-latest
2118
steps:
19+
# Unfortunately there doesn't seem to be a way to
20+
# do this without an extra step.
21+
- name: Get depth
22+
run: |
23+
echo "DEPTH=$(( ${{ github.event.pull_request.commits }} + 1 ))" >> $GITHUB_ENV
2224
- name: checkout
2325
uses: actions/checkout@v4
2426
with:
25-
fetch-depth: 0
27+
fetch-depth: ${{ env.DEPTH }}
2628
ref: ${{ github.event.pull_request.head.sha }}
2729
- name: Install packages
2830
run: |
2931
sudo apt-get update --quiet || true
3032
sudo apt-get -yq --no-install-suggests --no-install-recommends install perl
3133
- name: Run checker
3234
run: |
33-
sha=$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }})
35+
sha=$(git rev-parse HEAD~${{ github.event.pull_request.commits }})
3436
tools/build/checkstyle9.pl --github ${sha}..${{ github.event.pull_request.head.sha }}

Makefile.inc1

+10-22
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,6 @@ BSARGS= DESTDIR= \
770770
MK_CLANG_FULL=no \
771771
MK_HTML=no \
772772
MK_MAN=no \
773-
MK_PROFILE=no \
774773
MK_RETPOLINE=no \
775774
MK_SSP=no \
776775
MK_TESTS=no \
@@ -837,7 +836,6 @@ KTMAKE= ${TIME_ENV} \
837836
MK_CTF=no \
838837
MK_HTML=no \
839838
MK_MAN=no \
840-
MK_PROFILE=no \
841839
MK_SSP=no \
842840
MK_RETPOLINE=no \
843841
MK_WERROR=no
@@ -1207,7 +1205,7 @@ _libraries:
12071205
@echo "--------------------------------------------------------------"
12081206
${_+_}cd ${.CURDIR}; \
12091207
${WMAKE} -DNO_FSCHG MK_HTML=no -DNO_LINT MK_MAN=no \
1210-
MK_PROFILE=no MK_TESTS=no MK_TESTS_SUPPORT=${MK_TESTS_SUPPORT} \
1208+
MK_TESTS=no MK_TESTS_SUPPORT=${MK_TESTS_SUPPORT} \
12111209
libraries
12121210
everything: .PHONY
12131211
@echo
@@ -1540,24 +1538,16 @@ distributeworld installworld stageworld: _installcheck_world .PHONY
15401538
.endfor
15411539
.if defined(NO_ROOT)
15421540
.for dist in base ${EXTRA_DISTRIBUTIONS}
1541+
.for path suffix in "" .meta /usr/lib/debug .debug.meta
15431542
@# For each file that exists in this dist, print the corresponding
15441543
@# line from the METALOG. This relies on the fact that
15451544
@# a line containing only the filename will sort immediately before
15461545
@# the relevant mtree line.
15471546
cd ${DESTDIR}/${DISTDIR}; \
1548-
find ./${dist} | ${METALOG_SORT_CMD} -u ${METALOG} - | \
1549-
awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \
1550-
${DESTDIR}/${DISTDIR}/${dist}.meta
1547+
find ./${dist}${path} | ${METALOG_SORT_CMD} -u ${METALOG} - | \
1548+
awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \
1549+
${DESTDIR}/${DISTDIR}/${dist}${suffix}
15511550
.endfor
1552-
.for dist in ${DEBUG_DISTRIBUTIONS}
1553-
@# For each file that exists in this dist, print the corresponding
1554-
@# line from the METALOG. This relies on the fact that
1555-
@# a line containing only the filename will sort immediately before
1556-
@# the relevant mtree line.
1557-
cd ${DESTDIR}/${DISTDIR}; \
1558-
find ./${dist}/usr/lib/debug | ${METALOG_SORT_CMD} -u ${METALOG} - | \
1559-
awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \
1560-
${DESTDIR}/${DISTDIR}/${dist}.debug.meta
15611551
.endfor
15621552
.endif
15631553
.endif # make(distributeworld)
@@ -2367,14 +2357,13 @@ real-sign-packages: _pkgbootstrap .PHONY
23672357
.if ${PKG_BIN_VERSION} < 11700
23682358
printf "packing_format = \"${PKG_FORMAT}\";\n" >> ${WSTAGEDIR}/meta
23692359
.endif
2370-
@[ -L "${REPODIR}/${PKG_ABI}/latest" ] && unlink ${REPODIR}/${PKG_ABI}/latest; \
2371-
${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
2360+
@${PKG_CMD} -o ABI=${PKG_ABI} repo -o OSVERSION="${SRCRELDATE}" \
23722361
-m ${WSTAGEDIR}/meta \
23732362
-o ${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
23742363
${REPODIR}/${PKG_ABI}/${PKG_VERSION} \
23752364
${PKG_REPO_SIGNING_KEY} ; \
23762365
cd ${REPODIR}/${PKG_ABI}; \
2377-
ln -s ${PKG_OUTPUT_DIR} latest
2366+
ln -hfs ${PKG_OUTPUT_DIR} latest
23782367

23792368
#
23802369
#
@@ -3087,7 +3076,6 @@ NXBMAKEARGS+= \
30873076
MK_MAN_UTILS=yes \
30883077
MK_OFED=no \
30893078
MK_OPENSSH=no \
3090-
MK_PROFILE=no \
30913079
MK_RETPOLINE=no \
30923080
MK_SENDMAIL=no \
30933081
MK_SSP=no \
@@ -3452,9 +3440,9 @@ ${_lib}__PL: .PHONY .MAKE
34523440
${_+_}@${ECHODIR} "===> ${_lib} (obj,all,install)"; \
34533441
cd ${.CURDIR}/${_lib}; \
34543442
if [ -z "${NO_OBJWALK}" ]; then ${MAKE} MK_TESTS=no DIRPRFX=${_lib}/ obj; fi; \
3455-
${MAKE} MK_TESTS=no MK_PROFILE=no -DNO_PIC \
3443+
${MAKE} MK_TESTS=no -DNO_PIC \
34563444
DIRPRFX=${_lib}/ all; \
3457-
${MAKE} MK_TESTS=no MK_PROFILE=no -DNO_PIC \
3445+
${MAKE} MK_TESTS=no -DNO_PIC \
34583446
DIRPRFX=${_lib}/ install
34593447
.endif
34603448
.endfor
@@ -3757,7 +3745,7 @@ XDEV_CPUTYPE?=${TARGET_CPUTYPE}
37573745
.endif
37583746

37593747
NOFUN=-DNO_FSCHG MK_HTML=no -DNO_LINT \
3760-
MK_MAN=no MK_NLS=no MK_PROFILE=no \
3748+
MK_MAN=no MK_NLS=no \
37613749
MK_KERBEROS=no MK_RESCUE=no MK_TESTS=no MK_WERROR=no \
37623750
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
37633751
CPUTYPE=${XDEV_CPUTYPE}

0 commit comments

Comments
 (0)