summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-27 13:01:01 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-05-30 19:48:00 (GMT)
commitdc3e6500577b18309699e957257f2d4966790c83 (patch)
tree7031b65f1fce15772ede9b0e8b0e14a8c56ef84c
parent0d4133edfedd8ca641db39d3eec9dc7146c8fa4e (diff)
downloadbuildroot-dc3e6500577b18309699e957257f2d4966790c83.tar.gz
buildroot-dc3e6500577b18309699e957257f2d4966790c83.tar.bz2
binutils: apply post-patch hook on both the host and target builds
When a Xtensa specific patch needs to be applied, it should be applied both when doing the target and the host build. This change is part of the effort to remove the differences between host and target post-extract and post-patch hooks, that are problematic for the out-of-tree support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/binutils/binutils.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/binutils/binutils.mk b/package/binutils/binutils.mk
index 081be6a..a2c4150 100644
--- a/package/binutils/binutils.mk
+++ b/package/binutils/binutils.mk
@@ -81,6 +81,7 @@ define BINUTILS_XTENSA_PRE_PATCH
tar xf $(BR2_XTENSA_OVERLAY_DIR)/xtensa_$(XTENSA_CORE_NAME).tar \
-C $(@D) --strip-components=1 binutils
endef
+BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
HOST_BINUTILS_PRE_PATCH_HOOKS += BINUTILS_XTENSA_PRE_PATCH
endif