package/lmbench: use UPDATE_CONFIG_HOOK instead of CONFIG_UPDATE
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 28 May 2019 20:34:11 +0000 (22:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 30 May 2019 10:33:26 +0000 (12:33 +0200)
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>
package/lmbench/lmbench.mk

index c52d6a5a39c31f669b4bdd675dbb442f09bef671..2f3b19b5f820ca15bf18274aca37cf54fe7df5dc 100644 (file)
@@ -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