M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Upstream-Status: Inappropriate [licensing]
Index: modutils-initscripts-1.0/LICENSE
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ modutils-initscripts-1.0/LICENSE 2010-12-06 14:26:03.570339002 -0800
@@ -0,0 +1 @@
+Public Domain

View File

@@ -0,0 +1,25 @@
# disable man page build
#
# by Kevin Tian <kevin.tian@intel.com>, 2010-07-21
Upstream-Status: Inappropriate [disable feature]
diff --git a/Makefile.am b/Makefile.am
index 6f83c12..32972a8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,13 +39,12 @@ modindex_LDADD = $(LDADD) libmodtools.a
MAN5 = modprobe.conf.5 modules.dep.5 depmod.conf.5 modprobe.d.5
MAN8 = depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8
SGML = $(addprefix doc/, $(MAN5:%.5=%.sgml) $(MAN8:%.8=%.sgml))
-dist_man_MANS = $(MAN5) $(MAN8)
# If they haven't overridden mandir, fix it (never /man!)
mandir =$(shell if [ @mandir@ = $(prefix)/man ]; then if [ $(prefix) = / ]; then echo /usr/share/man; else echo $(prefix)/share/man; fi; else echo @mandir@; fi)
TESTSUITE := $(shell test -e @srcdir@/tests && find @srcdir@/tests -type f ! -name '*~')
-EXTRA_DIST = generate-modprobe.conf FAQ CODING stress_modules.sh install-with-care $(SGML) $(man_MANS) $(TESTSUITE)
+EXTRA_DIST = generate-modprobe.conf FAQ CODING stress_modules.sh install-with-care
sbin_PROGRAMS = insmod modprobe rmmod depmod modinfo
if BUILD_STATIC_UTILS

View File

@@ -0,0 +1,21 @@
# this patch is from Mark Hatle <mark.hatle@windriver.com>, who ran into
# a random segfault using the latest module-init-tools (3.12) and finally
# trace back to depmod.c:grab_module, which appears that the new malloc(...)
# setups up things, but never clears the memory that was just allocated.
#
# Kevin Tian <kevin.tian@intel.com>, 2010-08-06
Upstream-Status: Pending
diff --git a/depmod.c b/depmod.c
index 647e5e6..46e03e0 100644
--- a/depmod.c
+++ b/depmod.c
@@ -313,6 +313,7 @@ static struct module *grab_module(const char *dirname, const char *filename)
new = NOFAIL(malloc(sizeof(*new)
+ strlen(dirname?:"") + 1 + strlen(filename) + 1));
+ memset(new, 0x00, sizeof(*new) + strlen(dirname?:"") + 1 + strlen(filename) + 1);
if (dirname)
sprintf(new->pathname, "%s/%s", dirname, filename);
else

View File

@@ -0,0 +1,36 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: module-init-tools
# Required-Start:
# Required-Stop:
# Should-Start: checkroot
# Should-stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Process /etc/modules.
# Description: Load the modules listed in /etc/modules.
### END INIT INFO
LOAD_MODULE=modprobe
[ -f /proc/modules ] || exit 0
[ -f /etc/modules ] || exit 0
[ -e /sbin/modprobe ] || LOAD_MODULE=insmod
if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
depmod -Ae
fi
[ "$VERBOSE" != no ] && echo -n "Loading modules: "
(cat /etc/modules; echo; ) |
while read module args
do
case "$module" in
\#*|"") continue ;;
esac
[ "$VERBOSE" != no ] && echo -n "$module "
eval "$LOAD_MODULE $module $args >/dev/null 2>&1"
done
[ "$VERBOSE" != no ] && echo
exit 0

View File

@@ -0,0 +1,25 @@
# poky uses new name to differentiate from modutils, so reflect this new name in source
#
# comment added by Kevin Tian <kevin.tian@intel.com>, 2010-07-21
Upstream-Status: Inappropriate [embedded specific]
--- module-init-tools-3.0-pre10.orig/generate-modprobe.conf
+++ module-init-tools-3.0-pre10/generate-modprobe.conf
@@ -45,12 +45,12 @@
cp $TESTING_MODPROBE_CONF $MODPROBECONF
elif [ "$STDIN" = "1" ]; then
cat > $MODPROBECONF
-elif [ -x /sbin/modprobe.old ]; then
+elif [ -x /sbin/modprobe.24 ]; then
# In sbin.
- /sbin/modprobe.old -c > $MODPROBECONF || modprobe_abort
-elif modprobe.old -c >/dev/null 2>&1; then
+ /sbin/modprobe.24 -c > $MODPROBECONF || modprobe_abort
+elif modprobe.24 -c >/dev/null 2>&1; then
# Somewhere in path.
- modprobe.old -c > $MODPROBECONF || modprobe_abort
+ modprobe.24 -c > $MODPROBECONF || modprobe_abort
elif /sbin/modprobe -V 2>/dev/null | grep -q 'modprobe version'; then
# Running /sbin/modprobe gives old version.
/sbin/modprobe -c > $MODPROBECONF || modprobe_abort