History log of /src/distrib/macppc/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.21 23-Sep-2025 rillig

all: fix "Invalid internal option" warning from make


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.20 02-Feb-2025 tsutsui

Add "build.sh live-image" support for macppc.

Confirmed on qemu-9.2.0.

---
qemu-system-ppc -m 256 -machine mac99 -cpu g3 \
-drive file=NetBSD-10.99.12-macppc-live.img,media=disk,format=raw,if=none,id=disk0 \
-device ide-hd,bus=ide.0,drive=disk0 \
-netdev user,id=net0 -device e1000,netdev=net0 \
-nographic
>> =============================================================
>> OpenBIOS 1.1 [Sep 24 2024 19:56]
>> Configuration device id QEMU version 1 machine id 1
>> CPUs: 1
>> Memory: 256M
>> UUID: 00000000-0000-0000-0000-000000000000
>> CPU type PowerPC,750
milliseconds isn't unique.
Welcome to OpenBIOS v1.1 built on Sep 24 2024 19:56
Trying hd:,\\:tbxi...
Trying hd:,\ppc\bootinfo.txt...
Trying hd:,%BOOT...
>> Not a bootable ELF image
>> switching to new context:

OF_open bootpath=/pci@f2000000/mac-io@c/ata-3@20000/disk@0
read stage 2 blocks: 01234. done!
starting stage 2...

>> NetBSD/macppc OpenFirmware Boot, Revision 1.15 (Sun Feb 2 06:06:05 UTC 2025)
>> Open Firmware version 3.x
>> Open Firmware running in virtual-mode.
11891244+164812 [489184+466096]=0xc68ee8
start=0x100000
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024, 2025
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.

[ 1.0000000] NetBSD 10.99.12 (GENERIC) #0: Sun Feb 2 06:28:31 UTC 2025
[ 1.0000000] runner@fv-az1670-954:/home/runner/work/netbsd-src/netbsd-src/sys/arch/macppc/compile/obj.macppc/GENERIC
[ 1.0000000] total memory = 256 MB
[ 1.0000000] avail memory = 225 MB
[ 1.0000000] found openpic PIC at 80040000
[ 1.0000000] OpenPIC Version 1.2: Supports 1 CPUs and 64 interrupt sources.
[ 1.0000000] bootpath: /pci@f2000000/mac-io@c/ata-3@20000/disk@0:/netbsd
[ 1.0000000] mainbus0 (root)
[ 1.0000000] cpu0 at mainbus0: 750 (Revision 3.1), ID 0 (primary)
[ 1.0000000] cpu0: HID0 0x805000a4<EMCP,NAP,DPM,SGE,BTIC,BHT>, powersave: 1
[ 1.0000000] cpu0: 0.00 MHz L2 cache present but not enabled

:

[ 13.8062284] boot device: wd0
[ 13.8062284] root on wd0a dumps on wd0b
[ 13.8212139] root file system type: ffs
[ 13.8212139] entropy: best effort
[ 13.8212139] kern.module.path=/stand/macppc/10.99.12/modules
Sun Feb 2 10:28:53 UTC 2025
Starting root file system check:
/dev/rwd0a: file system is clean; not checking

:

Sun Feb 2 10:29:18 UTC 2025
Feb 2 10:29:19 getty[1181]: /dev/ttyE1: Device not configured

NetBSD/macppc (Amnesiac) (ttyZ0)

Feb 2 10:29:19 getty[1275]: /dev/ttyE3: Device not configured
login: Feb 2 10:29:19 getty[1055]: /dev/ttyE0: Device not configured
Feb 2 10:29:19 getty[1023]: /dev/ttyE2: Device not configured
---

Note -cpu g4 (default for -machine mac99) triggers qemu assertion:
---
:
Starting syslogd.
qemu: fatal: Raised an exception without defined vector 94

NIP fdb4d560 LR fdb4dd40 CTR fd61a308 XER 20000000 CPU#0
MSR 0200d032 HID0 809400a4 HF 02004012 iidx 0 didx 0

:
---


# 1.19 02-Feb-2025 tsutsui

Fix typo in comment.


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.18 08-Jun-2024 tsutsui

branches: 1.18.2;
Build macppc iso with TOOL_MKHYBRID via "iso-image" target in src/etc.


Revision tags: netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1
# 1.17 25-May-2021 martin

branches: 1.17.4;
While we do not yet have any 64bit kernels, do not build
floppy or CD images for installation.


Revision tags: netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 netbsd-7-2-RELEASE pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 netbsd-7-1-2-RELEASE pgoyette-compat-base netbsd-7-1-1-RELEASE matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 netbsd-5-2-RELEASE netbsd-5-2-RC1 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.16 23-Jun-2008 matt

branches: 1.16.68;
Change remaining instances of ${RELEASEDIR}/${MACHINES} to
${RELEASEDIR}/${RELEASEMACHINEDIR}


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base keiichi-mipv6-base mjf-devfs-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.15 06-Mar-2007 bouyer

branches: 1.15.12; 1.15.16;
Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.

call iso_image in distrib/ for iso-image in the top Makefile.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE abandoned-netbsd-4-base netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-4-base netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.14 03-Jan-2003 lukem

branches: 1.14.16;
Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 fvdl_fs64_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.13 02-May-2002 lukem

yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
(fixes problem caused by implicit include of ../Makefile.inc in certain
submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*; rely upon "snap_pre" target of
etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}


# 1.12 26-Apr-2002 lukem

replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version


# 1.11 12-Apr-2002 lukem

cleanup makefiles to NNDWO


# 1.10 31-Mar-2002 lukem

use check_RELEASEDIR


# 1.9 09-Feb-2002 lukem

don't set the owner or group when installing into $RELEASEDIR


# 1.8 14-Nov-2001 tv

${MAKE} print-objdir -> ${PRINTOBJDIR}


# 1.7 09-Apr-2001 tsubai

Install netbsd.GENERIC_MD instead of netbsd.ram.
(Why did we use netbsd.ram? It is only a temporary file...)


# 1.6 13-Sep-2000 matt

Need ${.CURDIR} for print-objdir


# 1.5 30-Aug-2000 jhawk

Use
${MAKE}
instead of
make


# 1.4 23-Jun-2000 matt

branches: 1.4.2;
Export boot.fs


Revision tags: netbsd-1-5-base
# 1.3 12-Jun-2000 matt

branches: 1.3.2;
Install XCOFF ofwboot into installation area.


# 1.2 08-Jun-2000 matt

Add make release support so automake snapshots


# 1.1 06-Jun-2000 matt

Needed so that obj directories are created properly.