aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-05-28 22:34:11 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-06-24 21:51:19 +0200
commit68fab715eff1265216a320e799e5e3cda267a148 (patch)
treee9a720ffa6436624ae8f704467aa533d30f9f1d1
parent5bd18c13d45b3c4d13ce08bbd569bb38b5f38626 (diff)
downloadbuildroot-68fab715eff1265216a320e799e5e3cda267a148.tar.gz
buildroot-68fab715eff1265216a320e799e5e3cda267a148.tar.bz2
package/lmbench: use UPDATE_CONFIG_HOOK instead of CONFIG_UPDATE
jimtcl, perl, usb_modeswitch and x264 are registering UPDATE_CONFIG_HOOK as a post patch hook to get their gnuconfig files updated. lmbench is the only package calling CONFIG_UPDATE directly, so for consistency, let's make it use the same logic as jimtcl, perl, usb_modeswitch and x264. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 2b8b6767ab1cc803a888cca91730732945f95b85) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/lmbench/lmbench.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk
index c52d6a5a39..2f3b19b5f8 100644
--- a/package/lmbench/lmbench.mk
+++ b/package/lmbench/lmbench.mk
@@ -18,8 +18,9 @@ LMBENCH_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags libtirpc`
LMBENCH_LDLIBS = `$(PKG_CONFIG_HOST_BINARY) --libs libtirpc`
endif
+LMBENCH_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
+
define LMBENCH_CONFIGURE_CMDS
- $(call CONFIG_UPDATE,$(@D))
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
sed -i 's/LDLIBS=/LDLIBS+=/g' $(@D)/scripts/build
sed -i '/cd .*doc/d' $(@D)/src/Makefile