- caam: the bus activate, deactivate and release resource methods take no type and rid in FreeBSD 15. - cdx: sys/cdefs.h defines __maybe_unused now; define it only if missing. - 26.1 is end of life and no longer built: remove patches/26.1 and make-26.1.conf, default to 26.7 and FreeBSD 15.1 throughout, and move the build examples in README.md and RELEASE.md to 26.7.9. The 26.1 tree on the mirror stays, for gateways that still have to upgrade. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
599 B
Makefile
29 lines
599 B
Makefile
# Fan control daemon for Mono Gateway
|
|
#
|
|
# Build:
|
|
# mkdir -p /tmp/fand-build && cd /tmp/fand-build
|
|
# make -f /usr/deps/drivers/fand/Makefile
|
|
#
|
|
# Copyright 2026 Mono Technologies Inc.
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
SYSROOT?= /usr/obj/usr/src/arm64.aarch64/tmp
|
|
CC?= cc
|
|
TARGET?= --target=aarch64-unknown-freebsd15.1
|
|
|
|
CFLAGS= -O2 -pipe -Wall --sysroot=${SYSROOT} ${TARGET}
|
|
LDFLAGS= ${TARGET} --sysroot=${SYSROOT}
|
|
|
|
SRCDIR= ${MAKEFILE:H}
|
|
|
|
PROG= fand
|
|
|
|
all: ${PROG}
|
|
|
|
${PROG}: ${SRCDIR}/fand.c
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${PROG} ${SRCDIR}/fand.c
|
|
|
|
clean:
|
|
rm -f ${PROG}
|
|
|
|
.PHONY: all clean
|