Files
makronix/mobile/userland/mk/mx.dist
T
lotherkandClaude Opus 5.5 0d4901af1e mobile: the frame for porting src/ programs to the phone
NetBSD's own host-program machinery, with the phone as the host: build.sh
builds nbcat, nbsed ... for a Linux build host with src/tools/Makefile.host
and libnbcompat; tools/mxmake.sh runs the same with HOST_CC = an aarch64
compiler whose glibc is the phone's.

- tools/mksysroot.sh: the Void rootfs + base/void/sysroot-packages headers
- tools/mktoolchain.sh: Debian's aarch64 gcc, glibc only from the sysroot
  (--sysroot alone took Debian's glibc 2.42; the phone has 2.41)
- tools/mxmake.sh: the nbmake-<machine> of the phone (QEMU_LD_PREFIX lets
  configure run its tests through binfmt; INSTALL and HOST_MKDEP overrides)
- userland/Makefile: mtree hierarchy, libnbcompat for aarch64, every port
  found by its directory; make userland [PROG=x], make userland-test
- userland/mk/mx.prog.mk: two lines per port, Makefile.host unchanged
- tools/mxcheck.sh: no symbol version newer than the phone's libraries
- docs/PORTING-USERLAND.md: how to port one program, with the twelve
  pitfalls met on the first one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:07:07 +00:00

27 lines
696 B
Plaintext

# mx.dist -- the directories of the phone's NetBSD userland destdir
#
# What src/etc/mtree/NetBSD.dist.base is for build.sh's distrib-dirs step,
# for Void's usr-merged layout: /bin, /sbin and /usr/sbin are /usr/bin there
# (links in the image), so they are not directories here. Laid down by
# mobile/userland/Makefile (step dirs) with nbmtree before any install --
# NetBSD's install(1) creates no directories.
/set type=dir uname=root gname=wheel mode=0755
.
./etc
./usr
./usr/bin
./usr/include
./usr/lib
./usr/libexec
./usr/share
./usr/share/man
./usr/share/man/man1
./usr/share/man/man3
./usr/share/man/man4
./usr/share/man/man5
./usr/share/man/man7
./usr/share/man/man8
./usr/share/misc