head 1.19; access; symbols netbsd-11-0-RC4:1.19 netbsd-11-0-RC3:1.19 netbsd-11-0-RC2:1.19 netbsd-11-0-RC1:1.19 perseant-exfatfs-base-20250801:1.19 netbsd-11:1.19.0.38 netbsd-11-base:1.19 netbsd-10-1-RELEASE:1.19 perseant-exfatfs-base-20240630:1.19 perseant-exfatfs:1.19.0.36 perseant-exfatfs-base:1.19 netbsd-8-3-RELEASE:1.19 netbsd-9-4-RELEASE:1.19 netbsd-10-0-RELEASE:1.19 netbsd-10-0-RC6:1.19 netbsd-10-0-RC5:1.19 netbsd-10-0-RC4:1.19 netbsd-10-0-RC3:1.19 netbsd-10-0-RC2:1.19 netbsd-10-0-RC1:1.19 netbsd-10:1.19.0.34 netbsd-10-base:1.19 netbsd-9-3-RELEASE:1.19 cjep_sun2x-base1:1.19 cjep_sun2x:1.19.0.32 cjep_sun2x-base:1.19 cjep_staticlib_x-base1:1.19 netbsd-9-2-RELEASE:1.19 cjep_staticlib_x:1.19.0.30 cjep_staticlib_x-base:1.19 netbsd-9-1-RELEASE:1.19 phil-wifi-20200421:1.19 phil-wifi-20200411:1.19 is-mlppp:1.19.0.28 is-mlppp-base:1.19 phil-wifi-20200406:1.19 netbsd-8-2-RELEASE:1.19 netbsd-9-0-RELEASE:1.19 netbsd-9-0-RC2:1.19 netbsd-9-0-RC1:1.19 phil-wifi-20191119:1.19 netbsd-9:1.19.0.26 netbsd-9-base:1.19 phil-wifi-20190609:1.19 netbsd-8-1-RELEASE:1.19 netbsd-8-1-RC1:1.19 pgoyette-compat-merge-20190127:1.19 pgoyette-compat-20190127:1.19 pgoyette-compat-20190118:1.19 pgoyette-compat-1226:1.19 pgoyette-compat-1126:1.19 pgoyette-compat-1020:1.19 pgoyette-compat-0930:1.19 pgoyette-compat-0906:1.19 netbsd-7-2-RELEASE:1.19 pgoyette-compat-0728:1.19 netbsd-8-0-RELEASE:1.19 phil-wifi:1.19.0.24 phil-wifi-base:1.19 pgoyette-compat-0625:1.19 netbsd-8-0-RC2:1.19 pgoyette-compat-0521:1.19 pgoyette-compat-0502:1.19 pgoyette-compat-0422:1.19 netbsd-8-0-RC1:1.19 pgoyette-compat-0415:1.19 pgoyette-compat-0407:1.19 pgoyette-compat-0330:1.19 pgoyette-compat-0322:1.19 pgoyette-compat-0315:1.19 netbsd-7-1-2-RELEASE:1.19 pgoyette-compat:1.19.0.22 pgoyette-compat-base:1.19 netbsd-7-1-1-RELEASE:1.19 matt-nb8-mediatek:1.19.0.20 matt-nb8-mediatek-base:1.19 perseant-stdc-iso10646:1.19.0.18 perseant-stdc-iso10646-base:1.19 netbsd-8:1.19.0.16 netbsd-8-base:1.19 prg-localcount2-base3:1.19 prg-localcount2-base2:1.19 prg-localcount2-base1:1.19 prg-localcount2:1.19.0.14 prg-localcount2-base:1.19 pgoyette-localcount-20170426:1.19 bouyer-socketcan-base1:1.19 pgoyette-localcount-20170320:1.19 netbsd-7-1:1.19.0.12 netbsd-7-1-RELEASE:1.19 netbsd-7-1-RC2:1.19 netbsd-7-nhusb-base-20170116:1.19 bouyer-socketcan:1.19.0.10 bouyer-socketcan-base:1.19 pgoyette-localcount-20170107:1.19 netbsd-7-1-RC1:1.19 pgoyette-localcount-20161104:1.19 netbsd-7-0-2-RELEASE:1.19 localcount-20160914:1.19 netbsd-7-nhusb:1.19.0.8 netbsd-7-nhusb-base:1.19 pgoyette-localcount-20160806:1.19 pgoyette-localcount-20160726:1.19 pgoyette-localcount:1.19.0.6 pgoyette-localcount-base:1.19 netbsd-7-0-1-RELEASE:1.19 netbsd-7-0:1.19.0.4 netbsd-7-0-RELEASE:1.19 netbsd-7-0-RC3:1.19 netbsd-7-0-RC2:1.19 netbsd-7-0-RC1:1.19 netbsd-5-2-3-RELEASE:1.15 netbsd-5-1-5-RELEASE:1.15 netbsd-6-0-6-RELEASE:1.15 netbsd-6-1-5-RELEASE:1.15 netbsd-7:1.19.0.2 netbsd-7-base:1.19 yamt-pagecache-base9:1.18 yamt-pagecache-tag8:1.15.18.2 netbsd-6-1-4-RELEASE:1.15 netbsd-6-0-5-RELEASE:1.15 tls-earlyentropy:1.18.0.10 tls-earlyentropy-base:1.18 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.18 riastradh-drm2-base3:1.18 netbsd-6-1-3-RELEASE:1.15 netbsd-6-0-4-RELEASE:1.15 netbsd-5-2-2-RELEASE:1.15 netbsd-5-1-4-RELEASE:1.15 netbsd-6-1-2-RELEASE:1.15 netbsd-6-0-3-RELEASE:1.15 netbsd-5-2-1-RELEASE:1.15 netbsd-5-1-3-RELEASE:1.15 netbsd-6-1-1-RELEASE:1.15 riastradh-drm2-base2:1.18 riastradh-drm2-base1:1.18 riastradh-drm2:1.18.0.4 riastradh-drm2-base:1.18 netbsd-6-1:1.15.0.28 netbsd-6-0-2-RELEASE:1.15 netbsd-6-1-RELEASE:1.15 khorben-n900:1.18.0.8 netbsd-6-1-RC4:1.15 netbsd-6-1-RC3:1.15 agc-symver:1.18.0.6 agc-symver-base:1.18 netbsd-6-1-RC2:1.15 netbsd-6-1-RC1:1.15 yamt-pagecache-base8:1.18 netbsd-5-2:1.15.0.26 netbsd-6-0-1-RELEASE:1.15 yamt-pagecache-base7:1.18 netbsd-5-2-RELEASE:1.15 netbsd-5-2-RC1:1.15 matt-nb6-plus-nbase:1.15 yamt-pagecache-base6:1.18 netbsd-6-0:1.15.0.24 netbsd-6-0-RELEASE:1.15 netbsd-6-0-RC2:1.15 tls-maxphys:1.18.0.2 tls-maxphys-base:1.19 matt-nb6-plus:1.15.0.22 matt-nb6-plus-base:1.15 netbsd-6-0-RC1:1.15 yamt-pagecache-base5:1.16 yamt-pagecache-base4:1.16 netbsd-6:1.15.0.20 netbsd-6-base:1.15 netbsd-5-1-2-RELEASE:1.15 netbsd-5-1-1-RELEASE:1.15 yamt-pagecache-base3:1.15 yamt-pagecache-base2:1.15 yamt-pagecache:1.15.0.18 yamt-pagecache-base:1.15 cherry-xenmp:1.15.0.16 cherry-xenmp-base:1.15 bouyer-quota2-nbase:1.15 bouyer-quota2:1.15.0.14 bouyer-quota2-base:1.15 matt-mips64-premerge-20101231:1.15 matt-nb5-mips64-premerge-20101231:1.15 matt-nb5-pq3:1.15.0.12 matt-nb5-pq3-base:1.15 netbsd-5-1:1.15.0.10 netbsd-5-1-RELEASE:1.15 netbsd-5-1-RC4:1.15 matt-nb5-mips64-k15:1.15 netbsd-5-1-RC3:1.15 netbsd-5-1-RC2:1.15 netbsd-5-1-RC1:1.15 netbsd-5-0-2-RELEASE:1.15 matt-nb5-mips64-premerge-20091211:1.15 matt-premerge-20091211:1.15 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.15 matt-nb4-mips64-k7-u2a-k9b:1.15 matt-nb5-mips64-u1-k1-k5:1.15 matt-nb5-mips64:1.15.0.8 netbsd-5-0-1-RELEASE:1.15 jym-xensuspend-nbase:1.15 netbsd-5-0:1.15.0.6 netbsd-5-0-RELEASE:1.15 netbsd-5-0-RC4:1.15 netbsd-5-0-RC3:1.15 netbsd-5-0-RC2:1.15 jym-xensuspend:1.15.0.4 jym-xensuspend-base:1.15 netbsd-5-0-RC1:1.15 netbsd-5:1.15.0.2 netbsd-5-base:1.15 matt-mips64-base2:1.14 matt-mips64:1.13.0.16 netbsd-4-0-1-RELEASE:1.11 wrstuden-revivesa-base-3:1.14 wrstuden-revivesa-base-2:1.14 wrstuden-fixsa-newbase:1.11 wrstuden-revivesa-base-1:1.14 yamt-pf42-base4:1.14 yamt-pf42-base3:1.14 hpcarm-cleanup-nbase:1.14 yamt-pf42-baseX:1.13 yamt-pf42-base2:1.14 wrstuden-revivesa:1.14.0.2 wrstuden-revivesa-base:1.14 yamt-pf42:1.13.0.14 yamt-pf42-base:1.13 mjf-devfs2:1.13.0.12 mjf-devfs2-base:1.14 keiichi-mipv6:1.13.0.10 keiichi-mipv6-base:1.13 mjf-devfs:1.13.0.8 mjf-devfs-base:1.13 matt-armv6-nbase:1.13 matt-armv6-prevmlocking:1.13 wrstuden-fixsa-base-1:1.11 netbsd-4-0:1.11.0.14 netbsd-4-0-RELEASE:1.11 cube-autoconf:1.13.0.6 cube-autoconf-base:1.13 netbsd-4-0-RC5:1.11 netbsd-4-0-RC4:1.11 netbsd-4-0-RC3:1.11 netbsd-4-0-RC2:1.11 netbsd-4-0-RC1:1.11 matt-armv6:1.13.0.4 matt-armv6-base:1.13 matt-mips64-base:1.13 hpcarm-cleanup:1.13.0.2 hpcarm-cleanup-base:1.13 netbsd-3-1-1-RELEASE:1.11 netbsd-3-0-3-RELEASE:1.11 wrstuden-fixsa:1.11.0.12 wrstuden-fixsa-base:1.11 abandoned-netbsd-4-base:1.11 abandoned-netbsd-4:1.11.0.6 netbsd-3-1:1.11.0.8 netbsd-3-1-RELEASE:1.11 netbsd-3-0-2-RELEASE:1.11 netbsd-3-1-RC4:1.11 netbsd-3-1-RC3:1.11 netbsd-3-1-RC2:1.11 netbsd-3-1-RC1:1.11 netbsd-4:1.11.0.10 netbsd-4-base:1.11 netbsd-3-0-1-RELEASE:1.11 netbsd-3-0:1.11.0.4 netbsd-3-0-RELEASE:1.11 netbsd-3-0-RC6:1.11 netbsd-3-0-RC5:1.11 netbsd-3-0-RC4:1.11 netbsd-3-0-RC3:1.11 netbsd-3-0-RC2:1.11 netbsd-3-0-RC1:1.11 netbsd-2-0-3-RELEASE:1.9 netbsd-2-1:1.9.0.6 netbsd-2-1-RELEASE:1.9 netbsd-2-1-RC6:1.9 netbsd-2-1-RC5:1.9 netbsd-2-1-RC4:1.9 netbsd-2-1-RC3:1.9 netbsd-2-1-RC2:1.9 netbsd-2-1-RC1:1.9 netbsd-2-0-2-RELEASE:1.9 netbsd-3:1.11.0.2 netbsd-3-base:1.11 netbsd-2-0-1-RELEASE:1.9 netbsd-2:1.9.0.4 netbsd-2-base:1.9 netbsd-2-0-RELEASE:1.9 netbsd-2-0-RC5:1.9 netbsd-2-0-RC4:1.9 netbsd-2-0-RC3:1.9 netbsd-2-0-RC2:1.9 netbsd-2-0-RC1:1.9 netbsd-2-0:1.9.0.2 netbsd-2-0-base:1.9 netbsd-1-6-PATCH002-RELEASE:1.2.2.1 netbsd-1-6-PATCH002:1.2.2.1 netbsd-1-6-PATCH002-RC4:1.2.2.1 netbsd-1-6-PATCH002-RC3:1.2.2.1 netbsd-1-6-PATCH002-RC2:1.2.2.1 netbsd-1-6-PATCH002-RC1:1.2.2.1 netbsd-1-6-PATCH001:1.2.2.1 netbsd-1-6-PATCH001-RELEASE:1.2.2.1 netbsd-1-6-PATCH001-RC3:1.2.2.1 netbsd-1-6-PATCH001-RC2:1.2.2.1 netbsd-1-6-PATCH001-RC1:1.2.2.1 fvdl_fs64_base:1.3 netbsd-1-6-RELEASE:1.2.2.1 netbsd-1-6-RC3:1.2.2.1 netbsd-1-6-RC2:1.2.2.1 netbsd-1-6-RC1:1.2.2.1 netbsd-1-6:1.2.0.2 netbsd-1-6-base:1.2; locks; strict; comment @# @; 1.19 date 2014.08.10.05.56.36; author matt; state Exp; branches; next 1.18; commitid lrtMg50VTUc5hMLx; 1.18 date 2012.08.10.05.22.22; author matt; state Exp; branches 1.18.2.1; next 1.17; 1.17 date 2012.07.20.11.19.03; author matt; state Exp; branches; next 1.16; 1.16 date 2012.02.18.14.26.27; author njoly; state Exp; branches; next 1.15; 1.15 date 2008.10.25.22.27.34; author apb; state Exp; branches 1.15.18.1; next 1.14; 1.14 date 2008.05.03.05.08.45; author tsutsui; state Exp; branches; next 1.13; 1.13 date 2007.03.03.06.40.06; author apb; state Exp; branches 1.13.12.1 1.13.14.1; next 1.12; 1.12 date 2007.03.01.09.20.59; author apb; state Exp; branches; next 1.11; 1.11 date 2004.05.04.03.02.17; author lukem; state Exp; branches; next 1.10; 1.10 date 2004.05.04.02.52.05; author lukem; state Exp; branches; next 1.9; 1.9 date 2004.01.01.14.34.24; author lukem; state Exp; branches; next 1.8; 1.8 date 2003.12.21.17.37.26; author lukem; state Exp; branches; next 1.7; 1.7 date 2003.10.25.04.29.24; author lukem; state Exp; branches; next 1.6; 1.6 date 2003.05.08.13.04.37; author christos; state Exp; branches; next 1.5; 1.5 date 2003.03.11.07.18.38; author lukem; state Exp; branches; next 1.4; 1.4 date 2003.03.10.23.42.45; author lukem; state Exp; branches; next 1.3; 1.3 date 2002.06.01.16.22.54; author lukem; state Exp; branches; next 1.2; 1.2 date 2002.04.26.15.50.27; author lukem; state Exp; branches 1.2.2.1; next 1.1; 1.1 date 2002.02.08.02.18.53; author lukem; state Exp; branches; next ; 1.18.2.1 date 2014.08.19.23.45.38; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; 1.15.18.1 date 2012.04.17.00.02.32; author yamt; state Exp; branches; next 1.15.18.2; 1.15.18.2 date 2012.10.30.18.48.29; author yamt; state Exp; branches; next ; 1.13.12.1 date 2008.06.02.13.21.12; author mjf; state Exp; branches; next 1.13.12.2; 1.13.12.2 date 2008.10.05.20.10.15; author mjf; state dead; branches; next ; 1.13.14.1 date 2008.05.18.12.29.34; author yamt; state Exp; branches; next ; 1.2.2.1 date 2002.06.02.01.21.59; author tv; state Exp; branches; next ; desc @@ 1.19 log @Changes to existing files to enable building AARCH64 userland. evbarm64-el This is clang only. While gcc4.8 supports aarch64, no netbsd support has been written for aarch64 with gcc4.8. @ text @# $NetBSD: Makefile.makedev,v 1.18 2012/08/10 05:22:22 matt Exp $ # # Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list # (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev # # If this is to be used with Makefile.image, then this file should be # .include-d first. # # Required variables: # NETBSDSRCDIR top level of src tree (set by ) # MACHINE machine name (set externally by build framework) # # Optional variables: # MAKEDEVTARGETS targets to create with .OBJDIR-of-etc/MAKEDEV # # Variables modified by this: # MAKEDEVSCRIPT path to .OBJDIR-of-etc/MAKEDEV # MTREECONF may get "devices.spec" added # LISTS may get "list.makedev" added # IMAGEDEPENDS may get ${MAKEDEVSCRIPT} added # PARSELISTENV may get MAKEDEVSCRIPT=... added # .if !defined(_MAKEFILE_MAKEDEV_) _MAKEFILE_MAKEDEV_=1 MAKEDEVSPEC?= devices.spec _MAKEDEVOBJDIR!=cd ${NETBSDSRCDIR}/etc && ${PRINTOBJDIR} MAKEDEVSCRIPT= ${_MAKEDEVOBJDIR}/MAKEDEV CLEANFILES+= ${MAKEDEVSPEC} ${MAKEDEVSPEC}.tmp .if defined(MAKEDEVTARGETS) # # MAKEDEVTARGETS is set; add those devices to the mtree spec that's # used to build the file system # MTREECONF+= ${MAKEDEVSPEC} .if exists(${NETBSDSRCDIR}/etc/etc.${MACHINE_CPU}/MAKEDEV.conf) MAKEDEV_MACHINE=${MACHINE_CPU} .else MAKEDEV_MACHINE=${MACHINE} .endif ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} Makefile \ ${NETBSDSRCDIR}/etc/etc.${MAKEDEV_MACHINE}/MAKEDEV.conf ${_MKTARGET_CREATE} rm -f ${.TARGET} ${.TARGET}.tmp MACHINE=${MAKEDEV_MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ ${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} \ > ${.TARGET}.tmp ${TOOL_SED} -e '/^\. type=dir/d' -e 's,^\.,./dev,' ${.TARGET}.tmp \ | sort -o ${.TARGET} .else # ! MAKEDEVTARGETS # # MAKEDEVTARGETS isn't set; copy in /dev/MAKEDEV and rely upon # init(8) to mount an mfs /dev and recreate the devices by # (effectively) running "cd /dev ; ./MAKEDEV all" # LISTS+= ${DISTRIBDIR}/common/list.makedev IMAGEDEPENDS+= ${MAKEDEVSCRIPT} PARSELISTENV+= MAKEDEVSCRIPT=${MAKEDEVSCRIPT:Q} ${MAKEDEVSPEC}: .PHONY .endif # ! MAKEDEVTARGETS .endif # _MAKEFILE_MAKEDEV_ @ 1.18 log @Add a dependency on etc.${MACHINE}/MAKEDEV.conf @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.17 2012/07/20 11:19:03 matt Exp $ d44 6 d51 1 a51 1 ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV.conf d55 1 a55 1 MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ @ 1.18.2.1 log @Rebase to HEAD as of a few days ago. @ text @d1 1 a1 1 # $NetBSD$ a43 6 .if exists(${NETBSDSRCDIR}/etc/etc.${MACHINE_CPU}/MAKEDEV.conf) MAKEDEV_MACHINE=${MACHINE_CPU} .else MAKEDEV_MACHINE=${MACHINE} .endif d45 1 a45 1 ${NETBSDSRCDIR}/etc/etc.${MAKEDEV_MACHINE}/MAKEDEV.conf d49 1 a49 1 MACHINE=${MAKEDEV_MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \ @ 1.17 log @Add a dependency for Makefile so that when you add device to the Makefile it will automatically regenerate the device mtree file and cause the ramdisk to be updated. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.16 2012/02/18 14:26:27 njoly Exp $ d44 3 a46 1 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} Makefile @ 1.16 log @Tweak MAKEDEVSPEC target to properly report MAKEDEV failures: - No need to ignore `rm -f' failures which should not happen. - Do not pipe MAKEDEV output, but use a temp file. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.15 2008/10/25 22:27:34 apb Exp $ d44 1 a44 1 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} @ 1.15 log @Use ${TOOL_SED} instead if plain sed in Makefiles. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.14 2008/05/03 05:08:45 tsutsui Exp $ d46 1 a46 1 -rm -f ${.TARGET} ${.TARGET}.tmp d49 3 a51 3 | ${TOOL_SED} -e '/^\. type=dir/d' -e 's,^\.,./dev,' \ > ${.TARGET}.tmp \ && sort -o ${.TARGET} ${.TARGET}.tmp @ 1.15.18.1 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.15 2008/10/25 22:27:34 apb Exp $ d46 1 a46 1 rm -f ${.TARGET} ${.TARGET}.tmp d49 3 a51 3 > ${.TARGET}.tmp ${TOOL_SED} -e '/^\. type=dir/d' -e 's,^\.,./dev,' ${.TARGET}.tmp \ | sort -o ${.TARGET} @ 1.15.18.2 log @sync with head @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.15.18.1 2012/04/17 00:02:32 yamt Exp $ d44 1 a44 3 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} Makefile \ ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV.conf @ 1.14 log @Fix tyop. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.13 2007/03/03 06:40:06 apb Exp $ d49 2 a50 1 | sed -e '/^\. type=dir/d' -e 's,^\.,./dev,' > ${.TARGET}.tmp \ @ 1.13 log @MAKEDEV.subr no longer exists. Don't install it in any ramdisk or miniroot images. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.12 2007/03/01 09:20:59 apb Exp $ d4 1 a4 1 # (if set), otherwise copy .OJBDIR-of-etc/MAKEDEV to ./dev @ 1.13.12.1 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD$ d4 1 a4 1 # (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev @ 1.13.12.2 log @Sync with HEAD. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.13.12.1 2008/06/02 13:21:12 mjf Exp $ @ 1.13.14.1 log @sync with head. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.13 2007/03/03 06:40:06 apb Exp $ d4 1 a4 1 # (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev @ 1.12 log @Invent MAKEDEVSUBR and add it to IMAGEDEPENDS and PARSELISTENV if appropriate. Previously, IMAGEDEPENDS did not include MAKEDEV.subr. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.11 2004/05/04 03:02:17 lukem Exp $ a17 1 # MAKEDEVSUBR path to .OBJDIR-of-etc/MAKEDEV.subr d20 2 a21 2 # IMAGEDEPENDS may get ${MAKEDEVSCRIPT} and ${MAKEDEVSUBR} added # PARSELISTENV may get MAKEDEVSCRIPT=... and MAKEDEVSUBR=... added a31 1 MAKEDEVSUBR= ${_MAKEDEVOBJDIR}/MAKEDEV.subr d44 1 a44 1 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} ${MAKEDEVSUBR} d60 1 a60 1 IMAGEDEPENDS+= ${MAKEDEVSCRIPT} ${MAKEDEVSUBR} a61 1 PARSELISTENV+= MAKEDEVSUBR=${MAKEDEVSUBR:Q} @ 1.11 log @Remove "./dev type=dir" entry from generated devices.spec, as it causes the ownership of ${.OBJDIR}/work/dev to be used in the image instead of that from the earlier entry in work.spec. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.10 2004/05/04 02:52:05 lukem Exp $ d18 1 d21 2 a22 2 # IMAGEDEPENDS may get ${MAKEDEVSCRIPT} added # PARSELISTENV may get MAKEDEVSCRIPT=... added d33 1 d46 1 a46 1 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} d62 1 a62 1 IMAGEDEPENDS+= ${MAKEDEVSCRIPT} d64 1 @ 1.10 log @MAKEVERBOSE support @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.9 2004/01/01 14:34:24 lukem Exp $ d49 1 a49 1 | sed -e 's,^\.,./dev,' > ${.TARGET}.tmp \ @ 1.9 log @When using "MAKEDEV -s" to generate a specfile, rewrite the paths from "./" -> "./dev/". Noted by Tetsuya Isaki in private mail. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.8 2003/12/21 17:37:26 lukem Exp $ d45 1 @ 1.8 log @Rework MAKEDEV: * Use "mknod -F netbsd -r" to create nodes, instead of "rm ; mknod; chmod; chown". This means permissions & ownership of existing nodes will not be changed. This is up to 30% faster when populating an empty /dev, and nearly 2x faster when re-running on an existing /dev. * New options: -f force change of permission & ownership of existing devices -m mknod override name/path of mknod program (which defaults to $TOOL_MKNOD, then "mknod"). -s generate mtree(8) specfile instead of creating devices * Remove /usr/etc from $PATH; not needed anymore. * Provide functions to create devices & directories: mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]] create device node `name' with the appropriate permissions lndev src target create a symlink from src to target makedir dir mode create directory with appropriate mode * UIDs and GIDs are hardcoded in at MAKEDEV generation time. (Unfortunately there's not a simple way of determining a GID a la "id -n user" for determining a UID). This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH combination and comparing the results of "MAKEDEV all" from the previous version to the new one. (This testing actually highlighted mistakes in the previous configuration!) Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s" @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.7 2003/10/25 04:29:24 lukem Exp $ d47 2 a48 1 ${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} > ${.TARGET}.tmp \ @ 1.7 log @Update for MAKEDEV.tmpl changes; use <.OBJDIR-of-etc>/MAKEDEV instead of etc/etc.${MACHINE}/MAKEDEV @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.6 2003/05/08 13:04:37 christos Exp $ a41 3 _MAKEDEVWRAP= ${DISTRIBDIR}/common/MAKEDEV.wrapper _MAKEDEV2SPEC= ${DISTRIBDIR}/common/makedev2spec.awk d44 1 a44 1 ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC} d46 2 a47 3 MAKEDEVSCRIPT=${MAKEDEVSCRIPT:Q} \ ${HOST_SH} ${_MAKEDEVWRAP} ${MAKEDEVTARGETS} | \ awk -f ${_MAKEDEV2SPEC} > ${.TARGET}.tmp \ @ 1.6 log @use ${HOST_SH} @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.5 2003/03/11 07:18:38 lukem Exp $ d4 1 a4 1 # (if set), otherwise copy etc.${MACHINE}/MAKEDEV to ./dev d14 1 a14 1 # MAKEDEVTARGETS targets to create with etc/etc.${MACHINE}/MAKEDEV d17 5 a21 1 # MTREECONF may get "devices.spec" added to it d30 3 a41 1 _MAKEDEVSCRIPT= ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV d47 1 a47 1 ${MAKEDEVSPEC}: ${_MAKEDEVSCRIPT} ${_MAKEDEVWRAP} ${_MAKEDEV2SPEC} d49 1 a49 1 MAKEDEVSCRIPT=${_MAKEDEVSCRIPT:Q} \ d62 2 a63 1 IMAGEDEPENDS+= ${NETBSDSRCDIR}/etc/etc.${MACHINE}/MAKEDEV @ 1.5 log @add multiple-include protection. clean up some comments. @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.4 2003/03/10 23:42:45 lukem Exp $ d44 1 a44 1 sh ${_MAKEDEVWRAP} ${MAKEDEVTARGETS} | \ @ 1.4 log @a minor heads-up. (if i got bit by this, someone else might) @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.3 2002/06/01 16:22:54 lukem Exp $ a8 2 # d20 4 d61 3 @ 1.3 log @correct a comment @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.2 2002/04/26 15:50:27 lukem Exp $ d5 3 @ 1.2 log @replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version @ text @d1 1 a1 1 # $NetBSD: Makefile.makedev,v 1.1 2002/02/08 02:18:53 lukem Exp $ d47 2 a48 1 # init(8) to mount an mfs /dev and recreated the devices @ 1.2.2.1 log @Pull up revision 1.3 (requested by lukem in ticket #126): correct a comment @ text @d1 1 a1 1 # $NetBSD$ d47 1 a47 2 # init(8) to mount an mfs /dev and recreate the devices by # (effectively) running "cd /dev ; ./MAKEDEV all" @ 1.1 log @- cleanup image device creation: add Makefile.makedev & list.makedev, remove dist/*, now that they're not needed. if MAKEDEVTARGETS is set, use MAKEDEV.wrapper and makedev2spec.awk to create an mtree specfile containing the devices that would be made with "etc/etc.${MACHINE}/MAKEDEV $MAKEDEVTARGETS". otherwise, copy etc/etc.${MACHINE}/MAKEDEV to dev/MAKEDEV (via list.makedev) - add mtree.common; contains directories used by all images, and optional entries for dist/* @ text @d1 1 a1 1 # $NetBSD$ d9 1 a9 1 # _SRC_TOP_ top level of src tree (set by ) d30 1 a30 1 _MAKEDEVSCRIPT= ${_SRC_TOP_}/etc/etc.${MACHINE}/MAKEDEV d50 1 a50 1 IMAGEDEPENDS+= ${_SRC_TOP_}/etc/etc.${MACHINE}/MAKEDEV @