Oops! forgot to send this to the list...
-----Forwarded Message-----
From: David Bryson <db...@du...>
To: Herbert Valerio Riedel <hv...@hv...>
Subject: Re: [CryptoAPI-devel] check it out...
Date: 01 Mar 2002 13:10:43 -0700
Ask and ye shall receive:
Here is a patch to do kernel patching in the makefile. I'm not sure
that it does everything you wanted.. i hard coded it to do only the 2.4
series patches, but i assume we can change that. And i wasn't sure
where the loop stuff was in the sources.. so i didn't add that.
There is a make patch-kernel and a make unpatch-kernel
i *think* did the diff right, lemme know if i didn't.
Dave
On Thu, 2002-02-28 at 10:08, Herbert Valerio Riedel wrote:
>
> I've done some more work on the Makefile system;
>
> please checkout the cryptoapi-new module (you need to remove it, and
> re-checkout it, since I changed the CVSROOT/modules definition for
> it...)
>
> the cool thing know is, that it gets the kernel parameters w/o having to
> do a ./configure run... it's similiar to loop-AES' approach, but I've
> stolen it from some other package :-)
>
> the next thing that's missing now, is some clever scripting, to
> implement a
>
> "make patch-kernel" thingie...
>
> which basically
> 1. copies the files from kernel/ into /usr/src/linux
> 2. applies the correct patch/linux-2.4/kbuild-2.4.x file to
> /usr/src/linux
> 3. optionally patches /usr/src/linux/drivers/block/loop.c and loop.h
>
>
> regards,
> --
> Herbert Valerio Riedel / Phone: (EUROPE) +43-1-58801-18840
> Email: hv...@hv... / Finger hv...@gn... for GnuPG Public Key
> GnuPG Key Fingerprint: 7BB9 2D6C D485 CE64 4748 5F65 4981 E064 883F
> 4142
----
? crypto-kernelpatch.patch
Index: Makefile
===================================================================
RCS file: /cvsroot/cryptoapi/cryptoapi2/Makefile,v
retrieving revision 1.3
diff -r1.3 Makefile
5a6,8
> # version number of kernel sources
> KVER := 2.4.18
>
41a45,54
>
> patch-kernel:
> cp -r kernel/crypto $(KDIR)/kernel
> cp -r kernel/include $(KDIR)/kernel
> patch -d /usr/src -p0 < patches/linux-2.4/kbuild-$(KVER)
>
> unpatch-kernel:
> rm -rf $(KDIR)/kernel/crypto
> rm -rf $(KDIR)/kernel/include
> patch -d /usr/src -R -p0 < patches/linux-2.4/kbuild-$(KVER)
|