config.mk revision 278958
1278958Simp# $FreeBSD: head/sys/conf/config.mk 278958 2015-02-18 15:25:19Z imp $ 2278958Simp# 3278958Simp# Common code to marry kernel config(8) goo and module building goo. 4278958Simp# 5278958Simp 6278958Simp# Generate options files that otherwise would be built 7278958Simp# in substantially similar ways through the tree. Move 8278958Simp# the code here when they all produce identical results 9278958Simp# (or should) 10278958Simp.if !defined(KERNBUILDDIR) 11278958Simpopt_bpf.h: 12278958Simp echo "#define DEV_BPF 1" > ${.TARGET} 13278958Simp.if ${MK_INET_SUPPORT} != "no" 14278958Simpopt_inet.h: 15278958Simp @echo "#define INET 1" > ${.TARGET} 16278958Simp @echo "#define TCP_OFFLOAD 1" >> ${.TARGET} 17278958Simp.endif 18278958Simp.if ${MK_INET6_SUPPORT} != "no" 19278958Simpopt_inet6.h: 20278958Simp @echo "#define INET6 1" > ${.TARGET} 21278958Simp.endif 22278958Simp.if ${MK_EISA} != "no" 23278958Simpopt_eisa.h: 24278958Simp @echo "#define DEV_EISA 1" > ${.TARGET} 25278958Simp.endif 26278958Simpopt_mrouting.h: 27278958Simp echo "#define MROUTING 1" > ${.TARGET} 28278958Simpopt_natm.h: 29278958Simp echo "#define NATM 1" > ${.TARGET} 30278958Simpopt_scsi.h: 31278958Simp echo "#define SCSI_DELAY 15000" > ${.TARGET} 32278958Simpopt_wlan.h: 33278958Simp echo "#define IEEE80211_DEBUG 1" > ${.TARGET} 34278958Simp echo "#define IEEE80211_AMPDU_AGE 1" >> ${.TARGET} 35278958Simp echo "#define IEEE80211_SUPPORT_MESH 1" >> ${.TARGET} 36278958SimpKERN_OPTS.i386=NEW_PCIB DEV_PCI 37278958SimpKERN_OPTS.pc98=NEW_PCIB DEV_PCI 38278958SimpKERN_OPTS.amd64=NEW_PCIB DEV_PCI 39278958SimpKERN_OPTS.powerpc=NEW_PCIB DEV_PCI 40278958SimpKERN_OPTS=MROUTING NATM IEEE80211_DEBUG \ 41278958Simp IEEE80211_AMPDU_AGE IEEE80211_SUPPORT_MESH DEV_BPF \ 42278958Simp ${KERN_OPTS.${MACHINE}} ${KERN_OPTS_EXTRA} 43278958Simp.if ${MK_INET_SUPPORT} != "no" 44278958SimpKERN_OPTS+= INET TCP_OFFLOAD 45278958Simp.endif 46278958Simp.if ${MK_INET6_SUPPORT} != "no" 47278958SimpKERN_OPTS+= INET6 48278958Simp.endif 49278958Simp.if ${MK_EISA} != "no" 50278958SimpKERN_OPTS+= DEV_EISA 51278958Simp.endif 52278958Simp.else 53278958SimpKERN_OPTS!=cat ${KERNBUILDDIR}/opt*.h | awk '{print $$2;}' | sort -u 54278958Simp.endif 55