[openwrt/openwrt] build: fix warnings from grep

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


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/fc86176363149493810dc0b424583dd120e7f4c7

commit fc86176363149493810dc0b424583dd120e7f4c7
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 2f89ce0cf8..3d5d06a727 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 which -a pkg-config | grep -E '\/usr' | head -n 1)
+DISTRO_PKG_CONFIG:=$(shell which -a 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