From ffb1dee0687d1d59641e7b5869c96a54a80d1db5 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 29 Apr 2014 15:20:13 +0200 Subject: [PATCH] musl: improved parse-config-9 to also handle patches only applied at toolchain stage --- base/musl/parse-config-9 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/base/musl/parse-config-9 b/base/musl/parse-config-9 index 579869f9d..54207a458 100644 --- a/base/musl/parse-config-9 +++ b/base/musl/parse-config-9 @@ -204,6 +204,14 @@ if [ "$SDECFG_LIBC" == "musl" ]; then pkg_musl_pkg=${pkg} ;; esac + if atstage toolchain; then + pkg_musl_toolchain_patches=$( ls -1 $pkg_musl_dir/pkg/$pkg_musl_pkg/*.patch.toolchain 2> /dev/null | tr '\n' ' ' ) + if [ -n "$pkg_musl_toolchain_patches" ]; then + echo_status "Appending musl libc specific toolchain patches" + var_append patchfiles ' ' "$pkg_musl_toolchain_patches" + fi + fi + pkg_musl_patches=$( ls -1 $pkg_musl_dir/pkg/$pkg_musl_pkg/*.patch 2> /dev/null | tr '\n' ' ' ) if [ -n "$pkg_musl_patches" ]; then echo_status "musl: appending patches ..."