mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
scripts/image: replace busybox's 'depmod' with module-init-tools's 'depmod'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
a57afd04c8
commit
c032261858
@ -46,7 +46,7 @@ rm -rf modules
|
|||||||
mkdir -p modules
|
mkdir -p modules
|
||||||
|
|
||||||
make modules
|
make modules
|
||||||
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/sbin/depmod" modules_install
|
make INSTALL_MOD_PATH=modules DEPMOD="$ROOT/$TOOLCHAIN/bin/depmod" modules_install
|
||||||
rm -f modules/lib/modules/*/build
|
rm -f modules/lib/modules/*/build
|
||||||
rm -f modules/lib/modules/*/source
|
rm -f modules/lib/modules/*/source
|
||||||
|
|
||||||
@ -61,4 +61,4 @@ make $KERNEL_IMAGE
|
|||||||
V=1 \
|
V=1 \
|
||||||
DEBUG=false \
|
DEBUG=false \
|
||||||
NLS=false \
|
NLS=false \
|
||||||
)
|
)
|
||||||
|
@ -26,7 +26,7 @@ PKG_LICENSE="GPL"
|
|||||||
PKG_SITE="http://www.kernel.org"
|
PKG_SITE="http://www.kernel.org"
|
||||||
PKG_URL="http://www.kernel.org/pub/linux/kernel/v3.x/$PKG_NAME-$PKG_VERSION.tar.xz"
|
PKG_URL="http://www.kernel.org/pub/linux/kernel/v3.x/$PKG_NAME-$PKG_VERSION.tar.xz"
|
||||||
PKG_DEPENDS="busybox linux-drivers linux-firmware pciutils"
|
PKG_DEPENDS="busybox linux-drivers linux-firmware pciutils"
|
||||||
PKG_BUILD_DEPENDS="toolchain busybox-hosttools xz cpio pciutils"
|
PKG_BUILD_DEPENDS="toolchain module-init-tools xz cpio pciutils"
|
||||||
PKG_PRIORITY="optional"
|
PKG_PRIORITY="optional"
|
||||||
PKG_SECTION="linux"
|
PKG_SECTION="linux"
|
||||||
PKG_SHORTDESC="linux26: The Linux kernel 2.6 precompiled kernel binary image and modules"
|
PKG_SHORTDESC="linux26: The Linux kernel 2.6 precompiled kernel binary image and modules"
|
||||||
|
@ -39,5 +39,5 @@ cd $BUILD/busybox*
|
|||||||
ln -sf busybox $ROOT/$TOOLCHAIN/bin/cryptpw
|
ln -sf busybox $ROOT/$TOOLCHAIN/bin/cryptpw
|
||||||
ln -sf busybox $ROOT/$TOOLCHAIN/bin/mkpasswd
|
ln -sf busybox $ROOT/$TOOLCHAIN/bin/mkpasswd
|
||||||
|
|
||||||
mkdir -p $ROOT/$TOOLCHAIN/sbin
|
# mkdir -p $ROOT/$TOOLCHAIN/sbin
|
||||||
ln -sf ../bin/busybox $ROOT/$TOOLCHAIN/sbin/depmod
|
# ln -sf ../bin/busybox $ROOT/$TOOLCHAIN/sbin/depmod
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Busybox version: 1.19.0
|
# Busybox version: 1.19.3
|
||||||
# Sun Aug 14 01:31:07 2011
|
# Sat Dec 17 01:48:26 2011
|
||||||
#
|
#
|
||||||
CONFIG_HAVE_DOT_CONFIG=y
|
CONFIG_HAVE_DOT_CONFIG=y
|
||||||
|
|
||||||
@ -476,7 +476,7 @@ CONFIG_CRYPTPW=y
|
|||||||
# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
|
# CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set
|
||||||
# CONFIG_MODPROBE is not set
|
# CONFIG_MODPROBE is not set
|
||||||
# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set
|
# CONFIG_FEATURE_MODPROBE_BLACKLIST is not set
|
||||||
CONFIG_DEPMOD=y
|
# CONFIG_DEPMOD is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Options common to multiple modutils
|
# Options common to multiple modutils
|
||||||
@ -489,10 +489,10 @@ CONFIG_DEPMOD=y
|
|||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP is not set
|
||||||
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
# CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set
|
||||||
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
# CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set
|
||||||
CONFIG_FEATURE_MODUTILS_ALIAS=y
|
# CONFIG_FEATURE_MODUTILS_ALIAS is not set
|
||||||
CONFIG_FEATURE_MODUTILS_SYMBOLS=y
|
# CONFIG_FEATURE_MODUTILS_SYMBOLS is not set
|
||||||
CONFIG_DEFAULT_MODULES_DIR="/lib/modules"
|
CONFIG_DEFAULT_MODULES_DIR=""
|
||||||
CONFIG_DEFAULT_DEPMOD_FILE="modules.dep"
|
CONFIG_DEFAULT_DEPMOD_FILE=""
|
||||||
|
|
||||||
#
|
#
|
||||||
# Linux System Utilities
|
# Linux System Utilities
|
||||||
|
@ -25,7 +25,7 @@ PKG_ARCH="any"
|
|||||||
PKG_LICENSE="GPL"
|
PKG_LICENSE="GPL"
|
||||||
PKG_SITE="http://www.busybox.net"
|
PKG_SITE="http://www.busybox.net"
|
||||||
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
PKG_URL="http://busybox.net/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||||
PKG_DEPENDS="kexec-tools grep hdparm speedcontrol pastebinit"
|
PKG_DEPENDS="kmod kexec-tools grep hdparm speedcontrol pastebinit"
|
||||||
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
|
PKG_BUILD_DEPENDS="toolchain busybox-hosttools"
|
||||||
PKG_PRIORITY="required"
|
PKG_PRIORITY="required"
|
||||||
PKG_SECTION="system"
|
PKG_SECTION="system"
|
||||||
|
@ -26,7 +26,7 @@ $SCRIPTS/checkdeps build
|
|||||||
$SCRIPTS/build toolchain
|
$SCRIPTS/build toolchain
|
||||||
$SCRIPTS/build squashfs
|
$SCRIPTS/build squashfs
|
||||||
$SCRIPTS/build fakeroot
|
$SCRIPTS/build fakeroot
|
||||||
$SCRIPTS/build busybox-hosttools
|
$SCRIPTS/build module-init-tools
|
||||||
|
|
||||||
export INSTALL=$BUILD/image/system
|
export INSTALL=$BUILD/image/system
|
||||||
|
|
||||||
@ -149,10 +149,7 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION"
|
|||||||
|
|
||||||
# run depmod
|
# run depmod
|
||||||
KVER=`ls $BUILD/linux-*/modules/lib/modules`
|
KVER=`ls $BUILD/linux-*/modules/lib/modules`
|
||||||
$ROOT/$TOOLCHAIN/sbin/depmod -b $INSTALL $KVER > /dev/null
|
$ROOT/$TOOLCHAIN/bin/depmod -b $INSTALL $KVER > /dev/null
|
||||||
for i in `ls $INSTALL/lib/modules/*/modules.* | grep -v modules.dep | grep -v modules.alias | grep -v modules.symbols`; do
|
|
||||||
rm -f $i
|
|
||||||
done
|
|
||||||
|
|
||||||
# strip kernel modules
|
# strip kernel modules
|
||||||
for MOD in `find $INSTALL/lib/modules/ -name *.ko`; do
|
for MOD in `find $INSTALL/lib/modules/ -name *.ko`; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user