From 9eef871c5c3ae131f1fc170ff1dcba2f1731b212 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 10 Aug 2016 00:33:39 +0100 Subject: no, use swiftgeek's better sed pattern --- resources/scripts/helpers/build/module/coreboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot index ac19790f..337b98f8 100755 --- a/resources/scripts/helpers/build/module/coreboot +++ b/resources/scripts/helpers/build/module/coreboot @@ -190,7 +190,7 @@ for payload in coreboot/*; do # cbfstool, cbmem, nvramtool for util in {cbfs,nvram}tool cbmem; do if [ "${util}" = "cbfstool" ]; then - grep -wq "\-Wno\-sign\-compare" ${board}/util/cbfstool/Makefile.inc || sed -i -- "s/'\$(objutil)/cbfstool/fmd_scanner.o: \$(objutil)/cbfstool/fmd.o'/'\$(objutil)/cbfstool/fmd_scanner.o: \$(objutil)/cbfstool/fmd.o\n\$(objutil)\/cbfstool\/fmd_scanner.o: TOOLCFLAGS += \-Wno\-sign\-compare'" ${board}/util/cbfstool/Makefile.inc + sed -i '/.*fmd_scanner.o.*-Wno-unused-function$/ s/$/ -Wno-sign-compare/' "${board}"/util/cbfstool/Makefile.inc fi make -BC "${board}/util/${util}" done -- cgit v1.2.3-70-g09d2