summaryrefslogtreecommitdiffstats
path: root/share/examples/drivers
diff options
context:
space:
mode:
authorrik <rik@FreeBSD.org>2006-08-09 10:53:26 +0000
committerrik <rik@FreeBSD.org>2006-08-09 10:53:26 +0000
commite4e9eb23deadfc361a612c750f7892969a70d0fe (patch)
tree8fd280c3fe204c53d4ee7d99f9b39774864d0683 /share/examples/drivers
parent95f39eebb51f2edc9b4d476a4b76f25de69090d2 (diff)
downloadFreeBSD-src-e4e9eb23deadfc361a612c750f7892969a70d0fe.zip
FreeBSD-src-e4e9eb23deadfc361a612c750f7892969a70d0fe.tar.gz
- Added 'files "files.FOO"' to config for inclusion of user specific files.
- Added KDB option to config file (for DDB). - Added ability to compile custom kernel. Discussed with: julian@
Diffstat (limited to 'share/examples/drivers')
-rwxr-xr-xshare/examples/drivers/make_device_driver.sh27
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 b917b4c..2acea33 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---------------
#
OpenPOWER on IntegriCloud