mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
kmod: replace module-init-tools by kmod-13.
newer udev depend on kmod.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
etc/modprobe.d/framebuffer
|
||||
etc/modprobe.d/ipv6
|
||||
etc/modprobe.d/isdn
|
||||
etc/modprobe.d/framebuffer.conf
|
||||
etc/modprobe.d/ipv6.conf
|
||||
etc/modprobe.d/isdn.conf
|
||||
sbin/gen_init_cpio
|
||||
|
||||
@@ -4,9 +4,9 @@ boot/config-KVER-ipfire-kirkwood
|
||||
boot/dtb-KVER-ipfire-kirkwood
|
||||
boot/uImage-ipfire-kirkwood
|
||||
boot/vmlinuz-KVER-ipfire-kirkwood
|
||||
etc/modprobe.d/framebuffer
|
||||
etc/modprobe.d/ipv6
|
||||
etc/modprobe.d/isdn
|
||||
etc/modprobe.d/framebuffer.conf
|
||||
etc/modprobe.d/ipv6.conf
|
||||
etc/modprobe.d/isdn.conf
|
||||
lib/modules/KVER-ipfire-kirkwood
|
||||
#lib/modules/KVER-ipfire-kirkwood/build
|
||||
#lib/modules/KVER-ipfire-kirkwood/kernel
|
||||
|
||||
@@ -3,9 +3,9 @@ boot/System.map-ipfire
|
||||
boot/config-KVER-ipfire
|
||||
boot/vmlinuz-KVER-ipfire
|
||||
boot/vmlinuz-ipfire
|
||||
etc/modprobe.d/framebuffer
|
||||
etc/modprobe.d/ipv6
|
||||
etc/modprobe.d/isdn
|
||||
etc/modprobe.d/framebuffer.conf
|
||||
etc/modprobe.d/ipv6.conf
|
||||
etc/modprobe.d/isdn.conf
|
||||
lib/modules/KVER-ipfire
|
||||
#lib/modules/KVER-ipfire/build
|
||||
#lib/modules/KVER-ipfire/kernel
|
||||
|
||||
13
config/rootfiles/common/kmod
Normal file
13
config/rootfiles/common/kmod
Normal file
@@ -0,0 +1,13 @@
|
||||
bin/kmod
|
||||
sbin/depmod
|
||||
sbin/insmod
|
||||
sbin/lsmod
|
||||
sbin/modinfo
|
||||
sbin/modprobe
|
||||
sbin/rmmod
|
||||
#usr/include/libkmod.h
|
||||
#usr/lib/libkmod.la
|
||||
usr/lib/libkmod.so
|
||||
usr/lib/libkmod.so.2
|
||||
usr/lib/libkmod.so.2.2.3
|
||||
#usr/lib/pkgconfig/libkmod.pc
|
||||
@@ -1,21 +0,0 @@
|
||||
bin/lsmod
|
||||
sbin/depmod
|
||||
sbin/generate-modprobe.conf
|
||||
sbin/insmod
|
||||
sbin/insmod.static
|
||||
sbin/modinfo
|
||||
sbin/modprobe
|
||||
sbin/rmmod
|
||||
#share
|
||||
#share/man
|
||||
#share/man/man5
|
||||
#share/man/man5/depmod.conf.5
|
||||
#share/man/man5/modprobe.conf.5
|
||||
#share/man/man5/modules.dep.5
|
||||
#share/man/man8
|
||||
#share/man/man8/depmod.8
|
||||
#share/man/man8/insmod.8
|
||||
#share/man/man8/lsmod.8
|
||||
#share/man/man8/modinfo.8
|
||||
#share/man/man8/modprobe.8
|
||||
#share/man/man8/rmmod.8
|
||||
@@ -20,8 +20,8 @@ etc/ld.so.conf
|
||||
etc/logrotate.conf
|
||||
etc/mime.types
|
||||
etc/modprobe.d
|
||||
etc/modprobe.d/cfg80211
|
||||
etc/modprobe.d/pcspeaker
|
||||
etc/modprobe.d/cfg80211.conf
|
||||
etc/modprobe.d/pcspeaker.conf
|
||||
etc/modules.conf
|
||||
etc/mtab
|
||||
etc/nsswitch.conf
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
etc/modprobe.d/blacklist
|
||||
etc/modprobe.d/blacklist.conf
|
||||
etc/scsi_id.config
|
||||
etc/udev
|
||||
#etc/udev/rules.d
|
||||
|
||||
94
lfs/kmod
Normal file
94
lfs/kmod
Normal file
@@ -0,0 +1,94 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007 Michael Tremer & Christian Schmidt #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
# the Free Software Foundation, either version 3 of the License, or #
|
||||
# (at your option) any later version. #
|
||||
# #
|
||||
# This program is distributed in the hope that it will be useful, #
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
# GNU General Public License for more details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU General Public License #
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
###############################################################################
|
||||
# Definitions
|
||||
###############################################################################
|
||||
|
||||
include Config
|
||||
|
||||
VER = 13
|
||||
|
||||
THISAPP = kmod-$(VER)
|
||||
DL_FILE = $(THISAPP).tar.xz
|
||||
DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
|
||||
objects = $(DL_FILE)
|
||||
|
||||
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
|
||||
|
||||
$(DL_FILE)_MD5 = d5aba43b9370cd52f3cb35e82a1aa595
|
||||
|
||||
install : $(TARGET)
|
||||
|
||||
check : $(patsubst %,$(DIR_CHK)/%,$(objects))
|
||||
|
||||
download :$(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
|
||||
md5 : $(subst %,%_MD5,$(objects))
|
||||
|
||||
###############################################################################
|
||||
# Downloading, checking, md5sum
|
||||
###############################################################################
|
||||
|
||||
$(patsubst %,$(DIR_CHK)/%,$(objects)) :
|
||||
@$(CHECK)
|
||||
|
||||
$(patsubst %,$(DIR_DL)/%,$(objects)) :
|
||||
@$(LOAD)
|
||||
|
||||
$(subst %,%_MD5,$(objects)) :
|
||||
@$(MD5)
|
||||
|
||||
###############################################################################
|
||||
# Installation Details
|
||||
###############################################################################
|
||||
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && ./configure \
|
||||
--prefix=/usr \
|
||||
--bindir=/bin \
|
||||
--sysconfdir=/etc \
|
||||
--enable-zlib \
|
||||
--disable-manpages
|
||||
|
||||
# --libdir=/lib \
|
||||
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
cd $(DIR_APP) && make install
|
||||
|
||||
# Create symlinks
|
||||
ln -svf ../bin/kmod /sbin/modprobe
|
||||
ln -svf ../bin/kmod /sbin/modinfo
|
||||
ln -svf ../bin/kmod /sbin/insmod
|
||||
ln -svf ../bin/kmod /sbin/rmmod
|
||||
ln -svf ../bin/kmod /sbin/depmod
|
||||
ln -svf ../bin/kmod /sbin/lsmod
|
||||
|
||||
@rm -rf $(DIR_APP)
|
||||
@$(POSTBUILD)
|
||||
14
lfs/linux
14
lfs/linux
@@ -230,25 +230,25 @@ ifeq "$(LASTKERNEL)" "1"
|
||||
cd $(DIR_APP) && install -m 755 usr/gen_init_cpio /sbin/
|
||||
|
||||
# Blacklist matroxfb_base
|
||||
echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer
|
||||
echo "blacklist matroxfb_base" >> /etc/modprobe.d/framebuffer.conf
|
||||
# Blacklist old framebuffer modules
|
||||
for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/video -name *fb.ko); do \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer ; \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
|
||||
done
|
||||
# Blacklist new drm framebuffer modules
|
||||
for f in $$(ls -1 /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/gpu/drm/*/*.ko); do \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer ; \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/framebuffer.conf ; \
|
||||
done
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/framebuffer.conf
|
||||
|
||||
# Blacklist isdn modules
|
||||
for f in $$(find /lib/modules/$(VER)-$(VERSUFIX)/kernel/drivers/isdn -name *.ko); do \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/isdn ; \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/isdn.conf ; \
|
||||
done
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/isdn
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/isdn.conf
|
||||
|
||||
# Disable ipv6 at runtime
|
||||
echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6
|
||||
echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6.conf
|
||||
endif
|
||||
|
||||
# Disable geode_aes modul if exist
|
||||
|
||||
@@ -106,9 +106,9 @@ endif
|
||||
ifneq "$(XEN)" "1"
|
||||
# Blacklist misdn modules
|
||||
for f in $$(find /lib/modules/$(KVER)-$(VERSUFIX)/mISDN -name *.ko); do \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/mISDN ; \
|
||||
echo "blacklist $$(basename $$f)" >> /etc/modprobe.d/mISDN.conf ; \
|
||||
done
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/mISDN
|
||||
sed -i -e "s|.ko||g" /etc/modprobe.d/mISDN.conf
|
||||
endif
|
||||
|
||||
# Remove mISDN modules that was shipped with the kernel
|
||||
|
||||
2
lfs/udev
2
lfs/udev
@@ -95,7 +95,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
touch /etc/udev/rules.d/30-persistent-network.rules
|
||||
|
||||
# Blacklist some modules
|
||||
cp -vf $(DIR_SRC)/config/udev/blacklist /etc/modprobe.d/blacklist
|
||||
cp -vf $(DIR_SRC)/config/udev/blacklist.conf /etc/modprobe.d/blacklist.conf
|
||||
|
||||
# Install alsa rules.
|
||||
install -v -m 644 $(DIR_SRC)/config/udev/25-alsa.rules \
|
||||
|
||||
Reference in New Issue
Block a user