Topic: Building package from source directly - what am I missing?

I spent some time this weekend building tinysid (http://www.rsinsch.de/?id=7298b) with the Kamikaze 8.09 branch of the build-system.

I followed the instructions at http://kamikaze.openwrt.org/docs/openwr … 460002.1.2 to create a Makefile and stuck it into the package/tinysid directory.

I was able to get tinysid to compile, but I had to create a tarball of the modified source and stick it up on the network so that I could enter a PKG_SOURCE_URL and keep the build-system happy.

Maybe I am missing something obvious, but is there a way to build a package from the source files directly instead of via wget from a tarball on the network?

It seems silly to have to stick a package up on the network just so that the build system can download it again.

Re: Building package from source directly - what am I missing?

You don't need to upload the package to a network.  Here is an alternate tutorial, that is a bit dated, but I have been able to successfully use it in the past:
http://www.gargoyle-router.com/openwrt-coding.php

Good Luck.

Re: Building package from source directly - what am I missing?

Hi mightyohm,

first of all, the build system will not download a file if it is already in the ./dl directory.
But instead of modifying the source and create a new tarball, the build system provides a simple method to create patches: QUILT=1

See here for an example: http://pastebin.ca/574897

Hope this helps,
Thomas

Re: Building package from source directly - what am I missing?

shellster - I'll give your method a try.  I didn't realize I could omit PKG_SOURCE_URL and use Build/Prepare to do the work instead!  From what I can tell, I don't actually need to install the SDK like you did.  I can just use the default Kamikaze build system (the one I get when I checkout (openwrt/branches/8.09), right?

tl71 - You're right, I shouldn't be mucking with existing source without using patches.  I'll check out quilt.

Re: Building package from source directly - what am I missing?

mightyohm,

did you ever get your package built?

if so, could you post the makefile from you built for your package.

I have source for something I want to build as a package and I'm having problems figuring out how to describe that I want to build from my source that is in another directory.  I complie the source for several "nix" supported architectures and need to keep it outside the openwrt directories.

Regards,
Jim