update buildroot to 2017.02.11
This commit is contained in:
13
bsp/buildroot-2017.02.11/package/ruby/Config.in
Normal file
13
bsp/buildroot-2017.02.11/package/ruby/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_RUBY
|
||||
bool "ruby"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Object Oriented Scripting Language.
|
||||
|
||||
http://www.ruby-lang.org/
|
||||
|
||||
comment "ruby needs a toolchain w/ wchar, threads, dynamic library"
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
BR2_STATIC_LIBS
|
||||
6
bsp/buildroot-2017.02.11/package/ruby/ruby.hash
Normal file
6
bsp/buildroot-2017.02.11/package/ruby/ruby.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://www.ruby-lang.org/en/news/2017/09/14/ruby-2-4-2-released/
|
||||
sha256 748a8980d30141bd1a4124e11745bb105b436fb1890826e0d2b9ea31af27f735 ruby-2.4.2.tar.xz
|
||||
# License files, Locally calculated
|
||||
sha256 5cda9584acd5e1096276a375085b7e659fa67a072fd69ec2c3931e54f7f563bb LEGAL
|
||||
sha256 f5eb1b2956d5f7a67b2e5722a3749bc2fe86f9c580f2e3f5a08519cf073b5864 COPYING
|
||||
sha256 a5e3042dacb53eebda91f3b1caefbfec8307711df8c4ed1ed20e4e97c43307a4 BSDL
|
||||
102
bsp/buildroot-2017.02.11/package/ruby/ruby.mk
Normal file
102
bsp/buildroot-2017.02.11/package/ruby/ruby.mk
Normal file
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# ruby
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RUBY_VERSION_MAJOR = 2.4
|
||||
RUBY_VERSION = $(RUBY_VERSION_MAJOR).2
|
||||
RUBY_VERSION_EXT = 2.4.0
|
||||
RUBY_SITE = http://cache.ruby-lang.org/pub/ruby/$(RUBY_VERSION_MAJOR)
|
||||
RUBY_SOURCE = ruby-$(RUBY_VERSION).tar.xz
|
||||
RUBY_DEPENDENCIES = host-pkgconf host-ruby
|
||||
HOST_RUBY_DEPENDENCIES = host-pkgconf
|
||||
RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
|
||||
RUBY_CONF_OPTS = --disable-install-doc --disable-rpath --disable-rubygems
|
||||
HOST_RUBY_CONF_OPTS = \
|
||||
--disable-install-doc \
|
||||
--with-out-ext=curses,openssl,readline \
|
||||
--without-gmp
|
||||
RUBY_LICENSE = Ruby or BSD-2c, BSD-3c, others
|
||||
RUBY_LICENSE_FILES = LEGAL COPYING BSDL
|
||||
|
||||
RUBY_CFLAGS = $(TARGET_CFLAGS)
|
||||
# With some SuperH toolchains (like Sourcery CodeBench 2012.09), ruby fails to
|
||||
# build with 'pcrel too far'. This seems to be caused by the -Os option we pass
|
||||
# by default. To fix the problem, use standard -O2 optimization instead.
|
||||
ifeq ($(BR2_sh),y)
|
||||
RUBY_CFLAGS += -O2
|
||||
endif
|
||||
RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
|
||||
# On uClibc, finite, isinf and isnan are not directly implemented as
|
||||
# functions. Instead math.h #define's these to __finite, __isinf and
|
||||
# __isnan, confusing the Ruby configure script. Tell it that they
|
||||
# really are available.
|
||||
RUBY_CONF_ENV += \
|
||||
ac_cv_func_finite=yes \
|
||||
ac_cv_func_isinf=yes \
|
||||
ac_cv_func_isnan=yes
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_bfin),y)
|
||||
RUBY_CONF_ENV += ac_cv_func_dl_iterate_phdr=no
|
||||
# Blackfin doesn't have FFI closure support, needed by the fiddle
|
||||
# extension.
|
||||
RUBY_CONF_OPTS += --with-out-ext=fiddle
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),)
|
||||
RUBY_CONF_ENV += stack_protector=no
|
||||
endif
|
||||
|
||||
# Force optionals to build before we do
|
||||
ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
|
||||
RUBY_DEPENDENCIES += berkeleydb
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_GDBM),y)
|
||||
RUBY_DEPENDENCIES += gdbm
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_LIBYAML),y)
|
||||
RUBY_DEPENDENCIES += libyaml
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
||||
RUBY_DEPENDENCIES += ncurses
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
RUBY_DEPENDENCIES += openssl
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_READLINE),y)
|
||||
RUBY_DEPENDENCIES += readline
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
RUBY_DEPENDENCIES += zlib
|
||||
endif
|
||||
ifeq ($(BR2_PACKAGE_GMP),y)
|
||||
RUBY_DEPENDENCIES += gmp
|
||||
RUBY_CONF_OPTS += --with-gmp
|
||||
else
|
||||
RUBY_CONF_OPTS += --without-gmp
|
||||
endif
|
||||
|
||||
# workaround for amazing build failure, see
|
||||
# http://lists.busybox.net/pipermail/buildroot/2014-December/114273.html
|
||||
define RUBY_REMOVE_VERCONF_H
|
||||
rm -f $(@D)/verconf.h
|
||||
endef
|
||||
RUBY_POST_CONFIGURE_HOOKS += RUBY_REMOVE_VERCONF_H
|
||||
|
||||
# Remove rubygems and friends, as they need extensions that aren't
|
||||
# built and a target compiler.
|
||||
RUBY_EXTENSIONS_REMOVE = rake* rdoc* rubygems*
|
||||
define RUBY_REMOVE_RUBYGEMS
|
||||
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, gem rdoc ri rake)
|
||||
rm -rf $(TARGET_DIR)/usr/lib/ruby/gems
|
||||
rm -rf $(addprefix $(TARGET_DIR)/usr/lib/ruby/$(RUBY_VERSION_EXT)/, \
|
||||
$(RUBY_EXTENSIONS_REMOVE))
|
||||
endef
|
||||
RUBY_POST_INSTALL_TARGET_HOOKS += RUBY_REMOVE_RUBYGEMS
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user