[openwrt/openwrt] tools/padjffs2: use Host/Prepare/Default instead of raw commands
LEDE Commits
lede-commits at lists.infradead.org
Wed May 22 03:01:02 PDT 2024
ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/aa77c796fec90e3e328c5b33d9239bd4910f1e9a
commit aa77c796fec90e3e328c5b33d9239bd4910f1e9a
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Wed May 22 11:56:45 2024 +0200
tools/padjffs2: use Host/Prepare/Default instead of raw commands
Now that Host/Prepare/Default is always defined, we can use that instead
of using raw commands to move files from the src directory to
HOST_BUILD_DIR.
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
(cherry picked from commit 01048c7456785bc4a45452c84d8f31635e1fa60b)
---
tools/padjffs2/Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/padjffs2/Makefile b/tools/padjffs2/Makefile
index 422d14db30..b893fadce5 100644
--- a/tools/padjffs2/Makefile
+++ b/tools/padjffs2/Makefile
@@ -13,8 +13,7 @@ PKG_RELEASE:=1
include $(INCLUDE_DIR)/host-build.mk
define Host/Prepare
- mkdir -p $(HOST_BUILD_DIR)
- $(CP) ./src/* $(HOST_BUILD_DIR)/
+ $(call Host/Prepare/Default)
find $(HOST_BUILD_DIR) -name .svn | $(XARGS) rm -rf
endef
More information about the lede-commits
mailing list