November 22, 2024, 11:48:58 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: What is the make file for 2.6.3  (Read 10568 times)

Offline jeeva

  • Linux Noob !
  • *
  • Posts: 28
What is the make file for 2.6.3
« on: July 26, 2004, 05:19:21 AM »
Hi,

       Am new to linux, i worked couple months on 2.4, now i migrated to 2.6, am using suse9.1 kernel2-2.6.3, and it seems make file is changed from 2.4 to 2.6, can anyone tell me what eaxactly the make file is in 2.6, coz i wrote a small module for an usb interface, n m trying to compile it. Thank you,

Jeeva
Quote

Offline jeeva

  • Linux Noob !
  • *
  • Posts: 28
i made the make file
« Reply #1 on: July 26, 2004, 02:22:29 PM »
hey i made the make file, coool!!

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
What is the make file for 2.6.3
« Reply #2 on: July 27, 2004, 03:14:49 PM »
Can u share with us what the changes u have done, and the intereting things a bout writing teh small module for the usb interface :)

Really interested to hear about it. :)

Offline jeeva

  • Linux Noob !
  • *
  • Posts: 28
Make file!!
« Reply #3 on: July 29, 2004, 02:36:01 PM »
Here is the make file!!

ifneq ($(KERNELRELEASE),)
obj-m := <filename.o>

else
KDIR:= /lib/modules/$(shell uname -r)/build
CC := gcc
CFLAGS  := -c -nostdinc \
-D__KERNEL__ -I /$(KDIR) \
 -I /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/include/

PWD := $(shell pwd)

default :
   make -C $(KDIR) SUBDIRS=$(PWD) modules
clean :
   rm *.o *.ko
endif

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
What is the make file for 2.6.3
« Reply #4 on: July 30, 2004, 05:55:06 AM »
Can explain a bit on how this script works? It will be great :)

Thank u very very very much.