OpenWrt Forum Archive

Topic: HOWTO: Build from _stable_ source ?

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

I had an old build system of LEDE, October 2017, for a custom build, which worked well.
Now I wanted to implement a change regarding included packages, and also to use new sources, so I did
git pull
which retreived lot of files. I also did ./scripts/feeds update/install -a

And then the build was aborted, with an error regarding some dependencies.
Question: How to setup sources  from a stable platform, i.e. 17.0.4 ?
As
git clone https://git.lede-project.org/source.git
obviously gave me an unstable code base. (Which I consider rediculous, but thats another story).

I want to build from source, as I have special /uci-defaults, /files etc.

First clone the sources with 'git clone', or update your local copy with 'git pull'. Then use 'git tag' to list the known "frozen" versions. Use 'git checkout <tagname>' to move our head to a specific commit (i.e. a specific commit that matches a specific "frozen" version)

Use 'make distclean' to clean-up your working copy, then './scripts/feeds update/install -a' to update the feeds. Use 'make menuconfig' to setup your image and finally 'make' to build the image.

Thanx a lot. I suggest, you might include this info in the wiki for the build system, to be the "default procedure" to build from source, to build from a "frozen" version, as you call it. And keep the actual description for the brave users, with a big warning, to risk a broken build system. I consider the actual state of wiki rediculous, like "do this and this. O, sorry, BTW, you might get a broken build." I had this problem a few times in the past already, but always had a backup of the old build system. This time I was too lazy, and f... up.

The LEDE wiki is quite detailed about this: https://lede-project.org/docs/guide-dev … uildsystem

Only thing missing is the checkout of a specific version. I added this information to the guide.

There's no point in updating the OpenWrt wiki anymore.

Usually it makes no sense to build a historical stable release like 17.01.4, as it is better to build from the head of the stable 17.01 branch to get also the fixes done after the last release.

So, instead of checking out tag 17.01.4, checkout the 17.01 branch to get the stable head.

Good point. I've updated the wiki page to reflect this as well.

Antek wrote:

The LEDE wiki is quite detailed about this: https://lede-project.org/docs/guide-dev … uildsystem
Only thing missing is the checkout of a specific version. I added this information to the guide.

There is bad flow of info. When entering
https://lede-project.org/docs/guide-dev … uildsystem
on the bottom, only the begin how to to build a potentially broken system.
This should be the exception, I guess; better to add a link to https://lede-project.org/docs/guide-dev … uildsystem

(Last edited by augustus_meyer on 26 Dec 2017, 02:33)

I moved the information into the relevant section in the first article.

The discussion might have continued from here.