Initial Commit
- initial default booting image
This commit is contained in:
30
package/jemalloc/Config.in
Normal file
30
package/jemalloc/Config.in
Normal file
@@ -0,0 +1,30 @@
|
||||
config BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
||||
bool
|
||||
# see include/jemalloc/internal/quantum.h
|
||||
default y if BR2_arm || BR2_armeb
|
||||
default y if BR2_aarch64 || BR2_aarch64_be
|
||||
default y if BR2_i386 || BR2_x86_64
|
||||
default y if BR2_m68k
|
||||
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
||||
default y if BR2_or1k
|
||||
default y if BR2_powerpc
|
||||
default y if BR2_riscv
|
||||
default y if BR2_sh4 || BR2sh4eb || BR2_sh4a || BR2_sh4aeb
|
||||
default y if BR2_sparc64
|
||||
|
||||
config BR2_PACKAGE_JEMALLOC
|
||||
bool "jemalloc"
|
||||
depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU # madvise()
|
||||
help
|
||||
This library providing a malloc(3) implementation that
|
||||
emphasizes fragmentation avoidance and scalable concurrency
|
||||
support.
|
||||
|
||||
http://jemalloc.net/
|
||||
|
||||
comment "jemalloc needs a toolchain w/ threads"
|
||||
depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
4
package/jemalloc/jemalloc.hash
Normal file
4
package/jemalloc/jemalloc.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/jemalloc/jemalloc/releases/tag/5.3.1
|
||||
sha256 3826bc80232f22ed5c4662f3034f799ca316e819103bdc7bb99018a421706f92 jemalloc-5.3.1.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 94aa2caa98c25d942f58b956c71dba6a99ff98fc3a31cbc669fe2a4cd0268b53 COPYING
|
||||
26
package/jemalloc/jemalloc.mk
Normal file
26
package/jemalloc/jemalloc.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# jemalloc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JEMALLOC_VERSION = 5.3.1
|
||||
JEMALLOC_SOURCE = jemalloc-$(JEMALLOC_VERSION).tar.bz2
|
||||
JEMALLOC_SITE = https://github.com/jemalloc/jemalloc/releases/download/$(JEMALLOC_VERSION)
|
||||
JEMALLOC_LICENSE = BSD-2-Clause
|
||||
JEMALLOC_LICENSE_FILES = COPYING
|
||||
JEMALLOC_INSTALL_STAGING = YES
|
||||
JEMALLOC_CONFIG_SCRIPTS = jemalloc-config
|
||||
|
||||
JEMALLOC_CFLAGS = $(TARGET_CFLAGS) -D_GNU_SOURCE
|
||||
|
||||
# gcc bug internal compiler error: in merge_overlapping_regs, at
|
||||
# regrename.c:304. This bug is fixed since gcc 6.
|
||||
ifeq ($(BR2_or1k):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:)
|
||||
JEMALLOC_CFLAGS += -O0
|
||||
endif
|
||||
|
||||
JEMALLOC_CONF_ENV += CFLAGS="$(JEMALLOC_CFLAGS)"
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user