[source] build: fix kmod package build on non-GNU systems

LEDE Commits lede-commits at lists.infradead.org
Wed Jul 5 03:49:48 PDT 2017


nbd pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/27da508749e038479ceb19435cf2ca548cd5aef8

commit 27da508749e038479ceb19435cf2ca548cd5aef8
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Mon May 29 14:26:36 2017 +0200

    build: fix kmod package build on non-GNU systems
    
    BSD paste requires a filename argument, and it accepts - to use stdin as
    intended.
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 include/kernel.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/kernel.mk b/include/kernel.mk
index 5e2111c..b1d0e8d 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -131,7 +131,7 @@ define ModuleAutoLoad
 	}; \
 	$(3) \
 	if [ -n "$$$$$$$$modules" ]; then \
-		modules="$$$$$$$$(echo "$$$$$$$$modules" | tr ' ' '\n' | sort | uniq | paste -s -d' ')"; \
+		modules="$$$$$$$$(echo "$$$$$$$$modules" | tr ' ' '\n' | sort | uniq | paste -s -d' ' -)"; \
 		mkdir -p $(2)/etc/modules.d; \
 		mkdir -p $(2)/CONTROL; \
 		echo "#!/bin/sh" > $(2)/CONTROL/postinst-pkg; \



More information about the lede-commits mailing list