• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/mysql/mysql.mk
Floris BosFloris Bos committed cd741df4bb814 Sep 2016
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# mysql
4
#
5
################################################################################
6
​
7
MYSQL_VERSION_MAJOR = 5.1
8
MYSQL_VERSION = $(MYSQL_VERSION_MAJOR).73
9
MYSQL_SOURCE = mysql-$(MYSQL_VERSION).tar.gz
10
MYSQL_SITE = http://downloads.skysql.com/archives/mysql-$(MYSQL_VERSION_MAJOR)
11
MYSQL_INSTALL_STAGING = YES
12
MYSQL_DEPENDENCIES = readline ncurses
13
MYSQL_AUTORECONF = YES
14
MYSQL_LICENSE = GPLv2
15
MYSQL_LICENSE_FILES = README COPYING
16
​
17
# Unix socket. This variable can also be consulted by other buildroot packages
18
MYSQL_SOCKET = /run/mysql/mysql.sock
19
​
20
MYSQL_CONF_ENV = \
21
    ac_cv_sys_restartable_syscalls=yes \
22
    ac_cv_path_PS=/bin/ps \
23
    ac_cv_FIND_PROC="/bin/ps p \$\$PID | grep -v grep | grep mysqld > /dev/null" \
24
    ac_cv_have_decl_HAVE_IB_ATOMIC_PTHREAD_T_GCC=yes \
25
    ac_cv_have_decl_HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS=no \
26
    ac_cv_have_decl_HAVE_IB_GCC_ATOMIC_BUILTINS=yes \
27
    mysql_cv_new_rl_interface=yes
28
​
29
MYSQL_CONF_OPTS = \
30
    --without-ndb-binlog \
31
    --without-docs \
32
    --without-man \
33
    --without-libedit \
34
    --without-readline \
35
    --with-low-memory \
36
    --enable-thread-safe-client \
37
    --with-unix-socket-path=$(MYSQL_SOCKET) \
38
    --disable-mysql-maintainer-mode
39
​
40
# host-mysql only installs what is needed to build mysql, i.e. the
41
# gen_lex_hash tool, and it only builds the parts that are needed to
42
# create this tool
43
HOST_MYSQL_DEPENDENCIES = host-zlib host-ncurses
44
​
45
HOST_MYSQL_CONF_OPTS = \
46
    --with-embedded-server \
47
    --disable-mysql-maintainer-mode
48
​
49
define HOST_MYSQL_BUILD_CMDS
50
    $(MAKE) -C $(@D)/include my_config.h
51
    $(MAKE) -C $(@D)/mysys libmysys.a
52
    $(MAKE) -C $(@D)/strings libmystrings.a
53
    $(MAKE) -C $(@D)/vio libvio.a
54
    $(MAKE) -C $(@D)/dbug libdbug.a
55
    $(MAKE) -C $(@D)/regex libregex.a
56
    $(MAKE) -C $(@D)/sql gen_lex_hash
57
endef
58
​
59
define HOST_MYSQL_INSTALL_CMDS
60
    $(INSTALL) -m 0755  $(@D)/sql/gen_lex_hash $(HOST_DIR)/usr/bin/
61
endef
62
​
63
ifeq ($(BR2_PACKAGE_OPENSSL),y)
64
MYSQL_DEPENDENCIES += openssl
65
endif
66
​
67
ifeq ($(BR2_PACKAGE_ZLIB),y)
68
MYSQL_DEPENDENCIES += zlib
69
endif
70
​
71
ifeq ($(BR2_PACKAGE_MYSQL_SERVER),y)
72
MYSQL_DEPENDENCIES += host-mysql host-bison
73
​
74
MYSQL_CONF_OPTS += \
75
    --localstatedir=/var/mysql \
76
    --with-atomic-ops=up \
77
    --with-embedded-server \
78
    --without-query-cache \
79
    --without-plugin-partition \
80
    --without-plugin-daemon_example \
81
    --without-plugin-ftexample \
82
    --without-plugin-archive \
83
    --without-plugin-blackhole \
84
    --without-plugin-example \
85
    --without-plugin-federated \
86
    --without-plugin-ibmdb2i \
87
    --without-plugin-innobase \
88
    --without-plugin-innodb_plugin \
89
    --without-plugin-ndbcluster
90
​
91
# Debugging is only available for the server, so no need for
92
# this if-block outside of the server if-block
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.