You are not logged in.

#1 2008-01-29 19:36:31

el_ave
Member
From: Silicon Valley
Registered: 2007-03-18
Posts: 20

PKGBUILD for usb-rndis-lite from svn. (Kernel module)

I'm trying to make a package for usb-rndis-lite from SVN. The problem is that it's a kernel module and by default it's makefile doesn't have any option that can be specified to override output directory:

ifneq ($(KERNELRELEASE),)
include Kbuild
else
# Normal Makefile

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

default:
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules

install:
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
    depmod -ae

clean:
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean

endif

So I'm wondering what should I do? Should I create a patch that will be applied to the makefile or should I just substitute the makefile? Or any other way to force this SVN package to build in arbitrary directory?

Offline

#2 2008-01-29 19:43:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: PKGBUILD for usb-rndis-lite from svn. (Kernel module)

Patch the makefile.

Offline

#3 2008-01-29 19:45:35

el_ave
Member
From: Silicon Valley
Registered: 2007-03-18
Posts: 20

Re: PKGBUILD for usb-rndis-lite from svn. (Kernel module)

Thank you!

Offline

#4 2010-03-10 15:08:00

planktonic
Member
Registered: 2010-03-10
Posts: 1

Re: PKGBUILD for usb-rndis-lite from svn. (Kernel module)

Ahh hey there, I'm wanting to build this and I have no idea how one would patch the makefile, could someone please take me through it?

Thankyou

Offline

#5 2010-03-10 15:30:47

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,604

Re: PKGBUILD for usb-rndis-lite from svn. (Kernel module)

planktonic - this thread is over two years old, so you should start a new thread instead of posting here. Full details here.

Before you go, have a look at the man pages for diff and patch - if that's not enough, google is good for this kind of stuff.

Closed.

Offline

Board footer

Powered by FluxBB