[Openswan dev] build openswan from the source code

Paul Wouters paul at xelerance.com
Wed Dec 29 15:53:46 EST 2010


On Wed, 29 Dec 2010, raymond zhao wrote:

> I am trying to build Openswan 2.4.12 from the source code. I know I need to export KERNELSRC first. The Makefile uses this KERNELSRC to do at least two
> things:
> 1. It use it as a path to find the source code and patch them
> 2. It use it as a patch to find autoconf.h etc to figure out the kernel configuration.
> Ok, then, I have a problem with it now. In my building system, I have to build the kernel with O=$KERNEL_OUT_DIR, so the .config and autoconf.h etc. are
> not in the source tree. If I set  KERNELSRC to kernel source, it can patch but the build fail because it can not find the kernel configuration. If I set
> KERNELSRC to O=$KERNEL_OUT_DIR, it can build. But I believe it did not apply the patches.
> Do you have a version which actually separates the  KERNELSRC? Or is there any work around for this issue.

"make kpatch" gives you the patch on standard out, so you can then use that and apply it to your tree.

Paul


More information about the Dev mailing list