diff options
author | peter <peter@FreeBSD.org> | 2003-01-30 02:19:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-01-30 02:19:14 +0000 |
commit | b9980bfd1486d25cd4847ef7a28fa148dbad8d7b (patch) | |
tree | c7b1a5f75544f975923186156386c1c50f555f53 | |
parent | fc4b61874d50a9962414e55091a1dc87b91c59df (diff) | |
download | FreeBSD-src-b9980bfd1486d25cd4847ef7a28fa148dbad8d7b.zip FreeBSD-src-b9980bfd1486d25cd4847ef7a28fa148dbad8d7b.tar.gz |
Move the miidevs.h build stuff to conf/files so that config(8) doesn't
clobber it each time.
XXX: maybe this should be 'optional miibus' rather than 'standard'
-rw-r--r-- | sys/conf/files | 5 | ||||
-rw-r--r-- | sys/conf/kern.post.mk | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/conf/files b/sys/conf/files index 22f8cd7..dc7fa0b 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -30,6 +30,11 @@ aic79xx_{seq.h,reg.h,reg_print.c} optional ahd pci \ aic79xx_reg_print.o optional ahd pci ahd_reg_pretty_print \ compile-with "${NORMAL_C}" \ no-implicit-rule local +miidevs.h standard \ + dependency "$S/tools/devlist2h.awk $S/dev/mii/miidevs" \ + compile-with "${AWK} -f $S/tools/devlist2h.awk $S/dev/mii/miidevs" \ + no-obj no-implicit-rule \ + clean "miidevs.h" kern/device_if.m standard kern/bus_if.m standard kern/clock_if.m optional genclock diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk index 06cd62b..8d55439 100644 --- a/sys/conf/kern.post.mk +++ b/sys/conf/kern.post.mk @@ -50,9 +50,6 @@ ${mfile:T:S/.m$/.h/}: ${mfile} ${AWK} -f $S/tools/makeobjops.awk ${mfile} -h .endfor -miidevs.h: $S/tools/devlist2h.awk $S/dev/mii/miidevs - ${AWK} -f $S/tools/devlist2h.awk $S/dev/mii/miidevs - .if !exists(.depend) acphy.o amphy.o bmtphy.o brgphy.o dcphy.o e1000phy.o exphy.o if_bge.o if_tx.o \ inphy.o lxtphy.o nsgphy.o nsphy.o pnaphy.o pnphy.o qsphy.o rlphy.o tdkphy.o \ @@ -62,7 +59,7 @@ tlphy.o xmphy.o: miidevs.h kernel-clean: rm -f *.o *.so *.So *.ko *.s eddep errs \ ${FULLKERNEL} ${KERNEL_KO} linterrs makelinks tags \ - miidevs.h vers.c vnode_if.c vnode_if.h \ + vers.c vnode_if.c vnode_if.h \ ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ ${CLEAN} |