From 16145f645a1a48abb865f978ffea847ae7f4b027 Mon Sep 17 00:00:00 2001 From: Michael LeMay Date: Fri, 12 Feb 2016 13:45:25 -0800 Subject: [PATCH] galileo: build_newlib.sh: Only apply patch files with the extension ".patch" This avoids treating as patches other files that may happen to be present in the newlib patch directory in a working tree. --- platform/galileo/bsp/libc/build_newlib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/galileo/bsp/libc/build_newlib.sh b/platform/galileo/bsp/libc/build_newlib.sh index cef167e14..a3354a286 100755 --- a/platform/galileo/bsp/libc/build_newlib.sh +++ b/platform/galileo/bsp/libc/build_newlib.sh @@ -38,7 +38,7 @@ prepare() { tar xf ${TARBALL} cd ${SRC_DIR} - for i in `ls ${PATCH_DIR}`; do patch -p0 < ${PATCH_DIR}/${i}; done + for i in `ls ${PATCH_DIR}/*.patch`; do patch -p0 < ${i}; done }