luci-base: Extending packages prepare handling
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 18 Apr 2024 11:39:33 +0000 (13:39 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 10 May 2024 08:24:56 +0000 (10:24 +0200)
With this change, packages that do not have the source files in the
generic location (luasrc,ucode,htdocs,root,src) can still copy there
build files into the build directory if they add the following make
target 'Build/Prepare/<luci-packages-name>' to the Makefile.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
luci.mk

diff --git a/luci.mk b/luci.mk
index b5bd6fcd13a899dc85f55566a6be7a9ac7f8dbb6..ceb4903f78952a3dfa29e147e67b6b634463a56e 100644 (file)
--- a/luci.mk
+++ b/luci.mk
@@ -174,6 +174,7 @@ define Build/Prepare
                $(CP) ./$$$$d/* $(PKG_BUILD_DIR)/$$$$d/; \
          fi; \
        done
+       $(call Build/Prepare/$(LUCI_NAME))
        $(call Build/Prepare/Default)
 endef