NetBSD/distrib/i386/floppies/common/Makefile.ramdisk

46 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile.ramdisk,v 1.20 2003/06/05 14:30:11 dsl Exp $
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
I386COMMON= ${.CURDIR}/../common
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
.PATH: ${I386COMMON}
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
WARNS= 1
2002-04-06 22:16:09 +04:00
DBG= -Os
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
CRUNCHBIN= ramdiskbin
LISTS= ${.CURDIR}/list ${I386COMMON}/list.ramdisk
MTREECONF= ${DISTRIBDIR}/common/mtree.common
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
IMAGEENDIAN= le
2002-03-28 05:57:29 +03:00
IMAGEDEPENDS+= ${CRUNCHBIN} \
dot.profile termcap.mini \
${DESTDIR}/usr/mdec/biosboot \
${DESTDIR}/usr/mdec/bootxx_ffsv1 \
${DESTDIR}/usr/mdec/mbr \
${DESTDIR}/usr/mdec/mbr_ext \
${DESTDIR}/usr/mdec/mbr_bootsel \
${NETBSDSRCDIR}/etc/group ${NETBSDSRCDIR}/etc/master.passwd \
${NETBSDSRCDIR}/etc/netconfig ${NETBSDSRCDIR}/etc/protocols \
${NETBSDSRCDIR}/etc/services
PARSELISTENV+= BOOTMODEL=${BOOTMODEL:Q}
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
.if defined(USE_SYSINST)
LISTS+= ${DISTRIBDIR}/common/list.sysinst
MAKEFS_FLAGS+= -f 14
.endif
# Use stubs to eliminate some large stuff from libc
HACKSRC= ${DISTRIBDIR}/utils/libhack
.include "${HACKSRC}/Makefile.inc"
${CRUNCHBIN}: libhack.o
.include "${DISTRIBDIR}/common/Makefile.crunch"
.include "${DISTRIBDIR}/common/Makefile.makedev"
.include "${DISTRIBDIR}/common/Makefile.image"
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
release:
Major overhaul, to enable unprivileged (cross) building, removing the requirement to build as root on a system with vnconfig. Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate Remove now-obsolete: list2sh.awk runlist.sh bootfloppy-common/list Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more Rename bootfloppy-common/Makefile.inc to common/Makefile.bootfloppy and fdset-common/Makefile.inc to common/Makefile.fdset This uses makefs instead of vnconfig and disklabel, thus removing the need for root privileges to build these floppies.. Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile. Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and ${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things. Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which detects whether it's an install or rescue profile based on the existance of /sysinst. Remove /dev generation code as init(8) now does that for us. Migrate common parts of */list to a shared common/list.ramdisk. Convert ramdisk-*/list to new format used by distrib/common/parselist.awk Don't bother running pwd_mkdb now that libhack's getpwent parses /etc/master.passwd instead of /etc/passwd. Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a new full-path-style specfile. Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated from ramdisk-*/list by parselist.awk. Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini. Remove unused ramdisk-{small,tiny}/disktab.preinstall. Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated targets. ramdisk-*/Makefile: convert to using common/Makefile.ramdisk Remove unused ramdisk-*/dot.hdprofile.
2002-02-03 19:22:19 +03:00
.include <bsd.prog.mk>