Page MenuHomeFreeBSD

D61877.1795448445.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61877.1795448445.diff

diff --git a/share/examples/drivers/make_device_driver.sh b/share/examples/drivers/make_device_driver.sh
--- a/share/examples/drivers/make_device_driver.sh
+++ b/share/examples/drivers/make_device_driver.sh
@@ -33,6 +33,7 @@
TOP=${2}
fi
UPPER=`echo ${1} |tr "[:lower:]" "[:upper:]"`
+ARCH=`uname -m`
if [ -d ${TOP}/modules/${1} ]; then
echo "There appears to already be a module called ${1}"
@@ -47,7 +48,7 @@
rm -rf ${TOP}/dev/${1}
rm -rf ${TOP}/modules/${1}
rm ${TOP}/conf/files.${UPPER}
- rm ${TOP}/i386/conf/${UPPER}
+ rm ${TOP}/${ARCH}/conf/${UPPER}
rm ${TOP}/sys/${1}io.h
;;
*)
@@ -59,7 +60,7 @@
echo "The following files will be created:"
echo ${TOP}/modules/${1}
echo ${TOP}/conf/files.${UPPER}
-echo ${TOP}/i386/conf/${UPPER}
+echo ${TOP}/${ARCH}/conf/${UPPER}
echo ${TOP}/dev/${1}
echo ${TOP}/dev/${1}/${1}.c
echo ${TOP}/sys/${1}io.h
@@ -86,7 +87,7 @@
#######################################################################
# Then create a configuration file for a kernel that contains this driver.
#######################################################################
-cat >${TOP}/i386/conf/${UPPER} <<DONE
+cat >${TOP}/${ARCH}/conf/${UPPER} <<DONE
# Configuration file for kernel type: ${UPPER}
files "${TOP}/conf/files.${UPPER}"
@@ -97,7 +98,7 @@
DONE
-cat >>${TOP}/i386/conf/${UPPER} <<DONE
+cat >>${TOP}/${ARCH}/conf/${UPPER} <<DONE
# trust me, you'll need this
options KDB
options DDB
@@ -988,13 +989,7 @@
fi
case ${VAL} in
[yY]*)
- (
- cd ${TOP}/i386/conf; \
- config ${UPPER}; \
- cd ${TOP}/i386/compile/${UPPER}; \
- make depend; \
- make; \
- )
+ (cd ${TOP}; make buildkernel KERNCONF=${UPPER})
;;
*)
# exit

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 3:40 PM (13 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41911013
Default Alt Text
D61877.1795448445.diff (1 KB)

Event Timeline