OpenWrt Forum Archive

Topic: building packages from local source

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all.

As mentionned in this tutorial http://forum.openwrt.org/viewtopic.php?pid=31794#p31794 , to create packages, you create a Makefile for it specifying a few variables and the buildroot-ng tree should take it from there.

But, do I absolutely have to make my package sources be downloaded to be built under buildroot-ng or can I put them somewhere in the buildroot-ng tree and somehow convince it to look for them there?

Thanks!

Stanislas

There's no requirement that the sources have to be downloaded, and indeed there are a few packages already in OpenWrt that include sources in the packages directory. All you need to do is define your Build/Prepare rule to extract or copy the sources to $(PKG_BUILD_DIR); see the mtd package for an example.

The discussion might have continued from here.