From 099225d1e1f0d2501de4a306b95a09883ad17d85 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 10 Aug 2016 00:21:52 +0100 Subject: hotfix for building on distros with newer flex version Adapted from https://review.coreboot.org/cgit/coreboot.git/commit/util/cbfstool/Makefile.inc?id=2b80734811ee056f0447bab359ec5961e90101b7 --- resources/scripts/helpers/build/module/coreboot | 3 +++ 1 file changed, 3 insertions(+) (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/module/coreboot b/resources/scripts/helpers/build/module/coreboot index f8d3e6cb..460b5721 100755 --- a/resources/scripts/helpers/build/module/coreboot +++ b/resources/scripts/helpers/build/module/coreboot @@ -189,6 +189,9 @@ 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 || 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" + fi make -BC "${board}/util/${util}" done # create symlink to crossgcc -- cgit v1.2.3-70-g09d2