diff options
author | Mischa Jonker <mischa.jonker@synopsys.com> | 2013-11-11 15:36:36 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2013-11-11 22:44:08 +0100 |
commit | 86a48c33b0f5cf7376c1fa1758ad1de5ec75380f (patch) | |
tree | 2e47b088a23346bb8b669ca84e6fd735ade575bc /package/gcc | |
parent | ed3f3e433f146a093750905a3c578ae2ec83c1c3 (diff) | |
download | buildroot-86a48c33b0f5cf7376c1fa1758ad1de5ec75380f.tar.gz buildroot-86a48c33b0f5cf7376c1fa1758ad1de5ec75380f.zip |
gcc: don't patch gcc if there are no patches to apply
While the generic package handler checks for a directory with patches
before starting apply-patches.sh, this is not the case for gcc: the
script is called, even if there is no directory with patches. This results
into a build failure, as apply-patches exits with error code 1 if the
directory doesn't exist.
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/gcc.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 0c0cc99a61..41600ef6ec 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -49,7 +49,9 @@ endif endif define HOST_GCC_APPLY_PATCHES - support/scripts/apply-patches.sh $(@D) package/gcc/$(GCC_VERSION) \*.patch + if test -d package/gcc/$(GCC_VERSION); then \ + support/scripts/apply-patches.sh $(@D) package/gcc/$(GCC_VERSION) \*.patch ; \ + fi; $(HOST_GCC_APPLY_POWERPC_PATCH) endef |