• 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/bash/bash.mk
Rahul BedarkarRahul Bedarkar committed 337aa51f3fd30 Mar 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# bash
4
#
5
################################################################################
6
​
7
BASH_VERSION = 4.4
8
BASH_SITE = $(BR2_GNU_MIRROR)/bash
9
# Build after since bash is better than busybox shells
10
BASH_DEPENDENCIES = ncurses readline host-bison \
11
    $(if $(BR2_PACKAGE_BUSYBOX),busybox)
12
BASH_CONF_OPTS = --with-installed-readline
13
BASH_LICENSE = GPL-3.0+
14
BASH_LICENSE_FILES = COPYING
15
​
16
BASH_CONF_ENV += \
17
    ac_cv_rl_prefix="$(STAGING_DIR)" \
18
    ac_cv_rl_version="$(READLINE_VERSION)" \
19
    bash_cv_getcwd_malloc=yes \
20
    bash_cv_job_control_missing=present \
21
    bash_cv_sys_named_pipes=present \
22
    bash_cv_func_sigsetjmp=present \
23
    bash_cv_printf_a_format=yes
24
​
25
# The static build needs some trickery
26
ifeq ($(BR2_STATIC_LIBS),y)
27
BASH_CONF_OPTS += --enable-static-link --without-bash-malloc
28
# bash wants to redefine the getenv() function. To check whether this is
29
# possible, AC_TRY_RUN is used which is not possible in
30
# cross-compilation.
31
# On uClibc, redefining getenv is not possible; on glibc and musl it is.
32
# Related:
33
# http://lists.gnu.org/archive/html/bug-bash/2012-03/msg00052.html
34
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
35
BASH_CONF_ENV += bash_cv_getenv_redef=no
36
else
37
BASH_CONF_ENV += bash_cv_getenv_redef=yes
38
endif
39
endif
40
​
41
# Make /bin/sh -> bash (no other shell, better than busybox shells)
42
define BASH_INSTALL_TARGET_CMDS
43
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
44
        DESTDIR=$(TARGET_DIR) exec_prefix=/ install
45
    rm -f $(TARGET_DIR)/bin/bashbug
46
endef
47
​
48
$(eval $(autotools-package))
  • 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.