Page MenuHomeFreeBSD

Mk: Add a definition of what architecture exist.
Needs ReviewPublic

Authored by mat on Mar 31 2021, 9:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 26 2024, 12:46 PM
Unknown Object (File)
Jan 11 2024, 1:25 AM
Unknown Object (File)
Dec 20 2023, 2:45 AM
Unknown Object (File)
Oct 13 2023, 10:36 AM
Unknown Object (File)
Oct 11 2023, 4:42 PM
Unknown Object (File)
Aug 25 2023, 9:14 PM
Unknown Object (File)
Jun 26 2023, 5:20 AM
Unknown Object (File)
May 4 2023, 2:12 PM
Subscribers

Details

Reviewers
None
Group Reviewers
portmgr
Summary

This allows the framework to find variables for architectures that are
not running.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 38208
Build 35097: arc lint + arc unit

Event Timeline

mat requested review of this revision.Mar 31 2021, 9:00 AM
tobik added inline comments.
Mk/bsd.port.mk
1127

This list is wrong and incomplete. My understanding is that ARCH is based on uname -p which is based on the hw.machine_arch sysctl. The list I posted in the PR was created by taking the TARGET_ARCH bits from make -C/usr/src targets (rerun for each supported release and on main). There is also a list in arch(7) (search for MACHINE_ARCH):

MACHINE_ARCH vs MACHINE_CPUARCH vs MACHINE
  MACHINE_CPUARCH should be preferred in Makefiles when the generic
  architecture is being tested.  MACHINE_ARCH should be preferred when there
  is something specific to a particular type of architecture where there is a
  choice of many, or could be a choice of many.  Use MACHINE when referring
  to the kernel, interfaces dependent on a specific type of kernel or similar
  things like boot sequences.

        MACHINE       MACHINE_CPUARCH       MACHINE_ARCH
        arm64         aarch64               aarch64
        amd64         amd64                 amd64
        arm           arm                   armv6, armv7
        i386          i386                  i386
        mips          mips                  mips, mipsel, mips64, mips64el,
                                            mipshf, mipselhf, mips64elhf,
                                            mipsn32
        powerpc       powerpc               powerpc, powerpcspe, powerpc64,
                                            powerpc64le
        riscv         riscv                 riscv64, riscv64sf

@mat Do you still plan to fix this?