[openwrt/openwrt] build: fix warnings from grep

LEDE Commits lede-commits at lists.infradead.org
Thu Sep 29 10:42:33 PDT 2022


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/0cb3a616e4251ff7b8eb1da268451303d5a16eb7

commit 0cb3a616e4251ff7b8eb1da268451303d5a16eb7
Author: Chris Osgood <chris_github at functionalfuture.com>
AuthorDate: Thu Sep 15 08:09:38 2022 -0400

    build: fix warnings from grep
    
    Fixes build warnings when using newer versions of grep.
    
    Signed-off-by: Chris Osgood <chris_github at functionalfuture.com>
    Tested-by: Georgi Valkov <gvalkov at gmail.com>
    (cherry picked from commit c5e167e0d6075c46ca92c30b425c4dcb05fec5ed)
    [ fix conflict error ]
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 target/sdk/files/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/sdk/files/Makefile b/target/sdk/files/Makefile
index a710ca5f51..dcc0dcdf82 100644
--- a/target/sdk/files/Makefile
+++ b/target/sdk/files/Makefile
@@ -14,7 +14,7 @@ export TOPDIR LC_ALL LANG SDK
 
 world:
 
-DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -E '\/usr' | head -n 1)
+DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep '/usr' | head -n 1)
 export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
 
 ifneq ($(OPENWRT_BUILD),1)




More information about the lede-commits mailing list