Signed-off-by: Marcelo Gutiérrez <kuyurix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
--disable-mysql-maintainer-mode
MYSQL_CONF_OPT += \
+ --localstatedir=/var/mysql \
--disable-dependency-tracking \
--with-atomic-ops=up \
--with-embedded-server \
$(INSTALL) -m 0755 $(@D)/sql/gen_lex_hash $(HOST_DIR)/usr/bin/
endef
+define MYSQL_ADD_FOLDER
+ $(INSTALL) -d $(TARGET_DIR)/var/mysql
+endef
+
+MYSQL_POST_INSTALL_TARGET_HOOKS += MYSQL_ADD_FOLDER
+
else
MYSQL_CONF_OPT += \
--without-server