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)
Oct 3 2024, 12:52 AM
Unknown Object (File)
Oct 2 2024, 7:24 AM
Unknown Object (File)
Sep 23 2024, 12:36 PM
Unknown Object (File)
Sep 12 2024, 9:43 PM
Unknown Object (File)
Sep 8 2024, 10:30 PM
Unknown Object (File)
Sep 4 2024, 6:25 AM
Unknown Object (File)
Aug 31 2024, 12:16 PM
Unknown Object (File)
Aug 19 2024, 4:50 AM
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?