Re: How to integrate custom module into kernel tree?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry if you received it twice, but I don't know if public posting is
enable on this list... :-(


----- Forwarded message from Christophe Lucas <clucas@iomeda.fr> -----

Date: Fri, 27 Jun 2003 19:18:10 +0200
From: Christophe Lucas <clucas@iomeda.fr>
To: kernelnewbies@nl.linux.org
Subject: Re: How to integrate custom module into kernel tree?
User-Agent: Mutt/1.4.1i
X-Operating-System: GNU/Linux / 2.4.19 (i686)

Frank A. Uepping (Frank.Uepping@t-online.de) wrote:
> Hello,
> how to integrate my kernel module into the kernel tree,
> in a way that the user can select my module via `make menuconfig'?
> Can someone advice me?
> 
> /FAU

I enclosed a patch were it is done :-)
I work on it for a while for a job( it was stopped by rick miller on
2.4.6 kernel), so I continue so far.

An example :

diff -urbN linux-2.4.20/arch/i386/defconfig
linux-2.4.20-lpp/arch/i386/defconfig
--- linux-2.4.20/arch/i386/defconfig    Fri Nov 29 00:53:09 2002
+++ linux-2.4.20-lpp/arch/i386/defconfig        Sun Jan  5 15:12:08 2003
@@ -554,6 +554,9 @@
 CONFIG_UNIX98_PTYS=y
 CONFIG_UNIX98_PTY_COUNT=256
 
+CONFIG_FBLOGO_TOPLEFT=y
+# CONFIG_FBLOGO_CENTER is not set
+
 #
 # I2C support
 #
[...]
diff -urbN linux-2.4.20/drivers/video/Config.in
linux-2.4.20-lpp/drivers/video/Config.in
--- linux-2.4.20/drivers/video/Config.in        Fri Nov 29 00:53:15 2002
+++ linux-2.4.20-lpp/drivers/video/Config.in    Sun Jan  5 15:12:08 2003
@@ -92,6 +92,9 @@
    fi
    if [ "$CONFIG_X86" = "y" ]; then
       bool '  VESA VGA graphics console' CONFIG_FB_VESA
+      if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
+          bool '  Enable Linux Progress Patch (EXPERIMENTAL)'
CONFIG_PROGRESS_BAR
+      fi
       tristate '  VGA 16-color graphics console' CONFIG_FB_VGA16
       tristate '  Hercules mono graphics console (EXPERIMENTAL)'
CONFIG_FB_HGA
       define_bool CONFIG_VIDEO_SELECT y
@@ -489,6 +492,10 @@
         fi
       fi
    fi
+   choice 'Boot graphic position' \
+       "topleft  CONFIG_FBLOGO_TOPLEFT \
+        center   CONFIG_FBLOGO_CENTER" topleft
+
 fi
 
endmenu
diff -urbN linux-2.4.20/drivers/video/Makefile
linux-2.4.20-lpp/drivers/video/Makefile
--- linux-2.4.20/drivers/video/Makefile Fri Nov 29 00:53:15 2002
+++ linux-2.4.20-lpp/drivers/video/Makefile     Sun Jan  5 15:12:08 2003
@@ -34,10 +34,11 @@
 obj-$(CONFIG_FONT_ACORN_8x8)      += font_acorn_8x8.o
 
 # Add fbmon.o back into obj-$(CONFIG_FB) in 2.5.x
-obj-$(CONFIG_FB)                  += fbmem.o fbcmap.o modedb.o fbcon.o
fonts.o
+obj-$(CONFIG_FB)                  += fbmem.o fbcmap.o modedb.o fbcon.o
fonts.o fbprogress.o
 # Only include macmodes.o if we have FB support and are PPC
 ifeq ($(CONFIG_FB),y)
 obj-$(CONFIG_PPC)                 += macmodes.o
+obj-$(CONFIG_PROGRESS_BAR)        += fbprogress.o
 endif
 
 obj-$(CONFIG_FB_ACORN)            += acornfb.o

----- End forwarded message -----

-- 
Cordialement/Regards
+--------------------------------------------------+
| Christophe Lucas -- IOMEDA SA (clucas@iomeda.fr) |
| Developpeur/Administrateur GNU/Linux             |
+--------------------------------------------------+
| http://titux.tuxfamily.org                       |
+--------------------------------------------------+

Attachment: linux-2.4.20-bootscreen.diff.bz2
Description: Binary data


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux