[Bug 272900] Mk/Uses/cpufeatures.mk - Framework helper for detecting CPU features/instructions

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Aug 2023 16:42:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272900

--- Comment #1 from Piotr Kubaj <pkubaj@FreeBSD.org> ---
I added specific powerpc*-related entries to MACHINE_CPU in
https://cgit.freebsd.org/src/tree/share/mk/bsd.cpu.mk#n279. Then it can be used
like: https://cgit.freebsd.org/ports/tree/graphics/opencv/Makefile#n219

IMO adding a ports-specific Mk/Uses/cpufeatures.mk is redundant, we already
have MACHINE_CPU which covers this. It's just that ARM and RISCV would need
MACHINE_CPU properly set and then ports can start using it. Obviously it
wouldn't work on 12 and 13.

-- 
You are receiving this mail because:
You are on the CC list for the bug.