diff options
author | Leah Rowe <info@minifree.org> | 2016-08-10 00:21:52 +0100 |
---|---|---|
committer | Leah Rowe <info@minifree.org> | 2016-08-10 00:21:52 +0100 |
commit | 099225d1e1f0d2501de4a306b95a09883ad17d85 (patch) | |
tree | 965a49ceeb75b18e125b1d51ce176fdd01ee7476 | |
parent | 196d9031a8b05cc86d1b05e9d2ea5267e4beb532 (diff) | |
download | librebootfr-099225d1e1f0d2501de4a306b95a09883ad17d85.tar.gz librebootfr-099225d1e1f0d2501de4a306b95a09883ad17d85.zip |
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
-rwxr-xr-x | resources/scripts/helpers/build/module/coreboot | 3 |
1 files changed, 3 insertions, 0 deletions
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 |