diff options
| author | Roman Kurakin <rik@FreeBSD.org> | 2006-08-09 10:53:26 +0000 |
|---|---|---|
| committer | Roman Kurakin <rik@FreeBSD.org> | 2006-08-09 10:53:26 +0000 |
| commit | be115021273aa9081fc5aabe938e4555feeae267 (patch) | |
| tree | 8fd280c3fe204c53d4ee7d99f9b39774864d0683 /share/examples/drivers | |
| parent | b1ba28df1dce57657572e31a8523dc418f4fe00e (diff) | |
Notes
Diffstat (limited to 'share/examples/drivers')
| -rwxr-xr-x | share/examples/drivers/make_device_driver.sh | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh index b917b4c4cac3..2acea33d57b7 100755 --- a/share/examples/drivers/make_device_driver.sh +++ b/share/examples/drivers/make_device_driver.sh @@ -93,6 +93,8 @@ cat >${TOP}/i386/conf/${UPPER} <<DONE # Configuration file for kernel type: ${UPPER} # \$${RCS_KEYWORD}$ +files "${TOP}/conf/files.${UPPER}" + include GENERIC ident ${UPPER} @@ -100,7 +102,9 @@ ident ${UPPER} DONE cat >>${TOP}/i386/conf/${UPPER} <<DONE -options DDB # trust me, you'll need this +# trust me, you'll need this +options KDB +options DDB device ${1} DONE @@ -984,8 +988,25 @@ case ${VAL} in esac echo "" -echo "To build the kernel you should merge ${TOP}/conf/files.${UPPER} " \ - "into one of the ${TOP}/conf/files*" +echo -n "Do you want to build the '${UPPER}' kernel? [Y]" +read VAL +if [ "-z" "$VAL" ]; then + VAL=YES +fi +case ${VAL} in +[yY]*) + ( + cd ${TOP}/i386/conf; \ + config ${UPPER}; \ + cd ${TOP}/i386/compile/${UPPER}; \ + make depend; \ + make; \ + ) + ;; +*) +# exit + ;; +esac #--------------end of script--------------- # |
