-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
luci.mk: allow more customization (for external feeds/packages) #2637
Conversation
This adds PR openwrt/luci#2637 to the build, in order to fix freifunk-feed issue of brocken packages as of missing luci.mk (freifunk/openwrt-packages#9).
This adds PR openwrt/luci#2637 to the build, in order to fix freifunk-feed issue of brocken packages as of missing luci.mk (freifunk/openwrt-packages#9).
This adds PR openwrt/luci#2637 to the build, in order to fix freifunk-feed issue of brocken packages as of missing luci.mk (freifunk/openwrt-packages#9).
wtih openwrt/luci#2637 and these changes this will fix freifunk#9
What is preventing other packages from using |
One fact of suggesting this is making the Makefile more readable. When working on fixing the freifunk-packages, recently split off the luci-feed, it was really handy to get not distracted by these luci-only definitions like:
|
wtih openwrt/luci#2637 and these changes this will fix #9
as per comment of jow (openwrt/luci#2637 (comment))
@jow- using the unmodified luci.mk causes a lot of warnings:
I guess this is caused by calling the "Buildpackage" macro by the feeds Makefile and a 2nd time by luci.mk |
I have also luci packages in my own feed. |
@SvenRoederer Does my last message solve your issue with luci.mk? |
@feckert linking / including the original luci.mk was also done by me. But as this file defines many things that are not needed in other feeds (e.g. |
20c5eaa
to
6207af8
Compare
@feckert by just linking / including the original luci.mk I found no way to make a package appear outside of the LuCI-menu of menuconfig (caused by hardcoded |
…on.mk This include was added by PR openwrt/luci#2637 (see the relating patch-file)
…on.mk This include was added by PR openwrt/luci#2637 (see the relating patch-file)
…on.mk This include was added by PR openwrt/luci#2637 (see the relating patch-file)
From my side, the explanation sounds conclusive. |
in our freifunk-firmware we use the following code to locate and include the luci-common.mk file
|
…on.mk This include was added by PR openwrt/luci#2637 (see the relating patch-file)
…on.mk This include was added by PR openwrt/luci#2637 (see the relating patch-file)
@behzaddana What do you mean by "M3 config"? |
The PR openwrt/luci#2637 has been completely rewritten, so update to it.
The PR openwrt/luci#2637 has been completely rewritten, so update to it.
The PR openwrt/luci#2637 has been completely rewritten, so update to it.
@jow- did you have time to review? |
The PR openwrt/luci#2637 has been completely rewritten, so update to it.
The PR openwrt/luci#2637 has been completely rewritten, so update to it.
@feckert can you verify this change with your own feed? I'm currently using this change in my personal builds of our firmware for the Freifunk- and Freifunk-Berlin feeds (only) |
@Freifunk-Potsdam @Freifunk-Spalter as you are also using my old "LuCI-include" code, you might also benefit from the improvements of this PR (esp. placing the packages outside of the LuCI menu, embedding your own Repo-URL). |
@jow- just seen that OpenWrt-21.02-rc2 has been tagged. How are the chances to get this merged to master and backported to 21.02 before official release? |
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
Looks pretty good to me, i don't see why this should be merged. |
@aparcar I'm confused now ... "looks pretty good" as |
Oh snap I meant to say "shouldn't be merged" |
Thanks for your patience, i hope we didn't discourage your from further contributions! |
@aparcar indeed took some time, but it's volunteer work for all of us. AS it's a non-breaking change, can this be cherry-picked into openwrt-21.02 too? |
* switch to OpenWrt 21.02.0-rc2+ * changed UCI-configuration for bridges (freifunk-berlin/firmware-packages#221) * move OWM add to Freifunk-repo * fix build of our packages after accepting openwrt/luci#2637
* for LuCI, packages_berlin feed squashed: * "patches/luci: replace patches for LuCI PR 2637 with recent version" * "patches/berlin: adapt to rewritten LuCI-PR2637" * "patches/berlin: update "rework-package-defines-to-changes-of-luci.mk" to reapply" * "adapt to renamed package "freifunk-berlin-uplink-notunnel""
Split the current luci.mk file into two files, "luci-common.mk" with definitions that might be relevant for other feeds too and "luci.mk" to be included by our packages.EDIT: After the NACK of my 1st version in #2637 (comment) I did a complete rework, which only adds / changes some macros.
This new Version will not split the current
luci.mk
but allows nearly all defaults to be overwritten externally. This allows including theluci.mk
in external Makefiles and allowing strong customization.After the move of the freifunk-packages to it's own feed (55cd0c4) such "luci-common.mk" will make the freifunk-packages build again without recreating the Makefile or copying the common code over to this feed.
The luci-apps of the openwrt-routing feed might also benefit from the common definition of the LuCI-menu and the srcdiet feature.
I send this PR in 2 individual commits for easy reviewing but finally all can be squashed into one single commit.Further down @feckert suggested to just link to luci.mk from 3rd-party repos to benefit from the features of luci.mk, which I also did before creating this PR. Linking had several drawbacks:
LuciTranslation
,luci-base
(V1 removed this unneeded code for external repos; V2 keeps itas it'S just conditional code that is not causing problems)CATEGORY:=LuCI
can't be changed (This has been made customizable in patch v2)