Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177846972
D61877.1795419987.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61877.1795419987.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 23, 7:46 AM (5 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41911013
Default Alt Text
D61877.1795419987.diff (1 KB)
Attached To
Mode
D61877: make_device_driver.sh: Use current arch for custom kernel config
Attached
Detach File
Event Timeline