OpenWrt Forum Archive

Topic: LuCI Package Inclusion

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.

I have a dev environment set up where I am building OpenWRT and making changes to LuCi to then compile into the image.

I have a basic question.

I have changed the feed from the LuCI SVN to a local directory on my machine.

I did a feeds update/install.

I built OpenWRT, and it included my LuCI changes.  All was good.

I now make some more changes to my local LuCI on my machine.

I built the firmware again, and the new LuCI changes are not included in the new build.

I tried performed another feeds update/install, but as I assumed, it did not effect the source used to perform (build_dir) the build.

How do I get OpenWRT to see, and pick up, the changes in my local directory?


Do I need to update something in my local LuCI to make OpenWRT think it is a new version?
Do I have to perform a 'make clean" on OpenWRT each time I want to test a change?

Thanks in advance.
John

Here is the solution I found.  Hopefully it can help someone else.

In the Makefile for Luci at /contrib/package/luci (the Makefile used by the feed)

Is a line near the top:

ifeq ($(USELOCAL),1)
  PKG_VERSION:=0.11.1

If you change (increment, I added the .1 for example)) the PKG_VERSION the OpenWRT build seems to assume there is a new version and grabs the update source.

John

"make package/luci/clean" might also help.

The discussion might have continued from here.