Bump buidlroot version to 2018.02.6
This commit is contained in:
@@ -8,18 +8,12 @@ config BR2_PACKAGE_LINUX_TOOLS
|
||||
config BR2_PACKAGE_LINUX_TOOLS_CPUPOWER
|
||||
bool "cpupower"
|
||||
depends on !BR2_bfin # pciutils
|
||||
depends on BR2_USE_WCHAR || !BR2_NEEDS_GETTEXT # gettext
|
||||
select BR2_PACKAGE_LINUX_TOOLS
|
||||
select BR2_PACKAGE_PCIUTILS
|
||||
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT
|
||||
help
|
||||
cpupower is a collection of tools to examine and tune power
|
||||
saving related features of your processor.
|
||||
|
||||
comment "cpupower needs a toolchain w/ wchar"
|
||||
depends on !BR2_bfin
|
||||
depends on !BR2_USE_WCHAR && BR2_NEEDS_GETTEXT
|
||||
|
||||
config BR2_PACKAGE_LINUX_TOOLS_GPIO
|
||||
bool "gpio"
|
||||
select BR2_PACKAGE_LINUX_TOOLS
|
||||
@@ -54,9 +48,11 @@ config BR2_PACKAGE_LINUX_TOOLS_PERF
|
||||
code), single CPU or severals threads.
|
||||
|
||||
This will build and install the userspace 'perf'
|
||||
command. It is up to the user to ensure that the kernel
|
||||
configuration has all the suitable options enabled to allow a
|
||||
proper operation of 'perf'.
|
||||
command.
|
||||
|
||||
Your kernel must have CONFIG_PERF_EVENTS enabled to use perf
|
||||
profiling. Buildroot automatically enables this in the kernel
|
||||
configuration.
|
||||
|
||||
https://perf.wiki.kernel.org/
|
||||
|
||||
@@ -83,4 +79,12 @@ comment "selftests needs BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
|
||||
config BR2_PACKAGE_LINUX_TOOLS_TMON
|
||||
bool "tmon"
|
||||
select BR2_PACKAGE_LINUX_TOOLS
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
tmon is a terminal-based tool (using curses) that allows the
|
||||
user to access thermal information about the system.
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
LINUX_TOOLS += cpupower
|
||||
|
||||
CPUPOWER_DEPENDENCIES = pciutils $(if $(BR2_NEEDS_GETTEXT),gettext)
|
||||
CPUPOWER_DEPENDENCIES = pciutils $(TARGET_NLS_DEPENDENCIES)
|
||||
|
||||
CPUPOWER_MAKE_OPTS = CROSS=$(TARGET_CROSS) \
|
||||
CPUFREQ_BENCH=false \
|
||||
NLS=false \
|
||||
$(if $(BR2_NEEDS_GETTEXT),LDFLAGS=-lintl) \
|
||||
LDFLAGS=$(TARGET_NLS_LIBS) \
|
||||
DEBUG=false
|
||||
|
||||
define CPUPOWER_BUILD_CMDS
|
||||
@@ -19,9 +19,11 @@ define IIO_BUILD_CMDS
|
||||
$(IIO_MAKE_OPTS)
|
||||
endef
|
||||
|
||||
# DESTDIR used since kernel version 4.14
|
||||
define IIO_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools/iio \
|
||||
$(IIO_MAKE_OPTS) \
|
||||
INSTALL_ROOT=$(TARGET_DIR) \
|
||||
DESTDIR=$(TARGET_DIR) \
|
||||
install
|
||||
endef
|
||||
@@ -28,17 +28,25 @@ PERF_MAKE_FLAGS = \
|
||||
NO_LIBPYTHON=1 \
|
||||
NO_LIBBIONIC=1
|
||||
|
||||
# We need to pass an argument to ld for setting the endianness when
|
||||
# building it for MIPS architecture, otherwise the default one will
|
||||
# always be used (which is big endian) and the compilation for little
|
||||
# endian will always fail showing an error like this one:
|
||||
# LD foo.o
|
||||
# mips-linux-gnu-ld: foo.o: compiled for a little endian system and
|
||||
# target is big endian
|
||||
ifeq ($(BR2_mips)$(BR2_mips64),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -EB"
|
||||
else ifeq ($(BR2_mipsel)$(BR2_mips64el),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -EL"
|
||||
# We need to pass an argument to ld for setting the emulation when
|
||||
# building for MIPS architecture, otherwise the default one will always
|
||||
# be used and the compilation for most variants will fail.
|
||||
ifeq ($(BR2_mips),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf32btsmip"
|
||||
else ifeq ($(BR2_mipsel),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf32ltsmip"
|
||||
else ifeq ($(BR2_mips64),y)
|
||||
ifeq ($(BR2_MIPS_NABI32),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf32btsmipn32"
|
||||
else
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf64btsmip"
|
||||
endif
|
||||
else ifeq ($(BR2_mips64el),y)
|
||||
ifeq ($(BR2_MIPS_NABI32),y)
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf32ltsmipn32"
|
||||
else
|
||||
PERF_MAKE_FLAGS += LD="$(TARGET_LD) -m elf64ltsmip"
|
||||
endif
|
||||
endif
|
||||
|
||||
# The call to backtrace() function fails for ARC, because for some
|
||||
37
bsp/buildroot/package/linux-tools/linux-tool-tmon.mk.in
Normal file
37
bsp/buildroot/package/linux-tools/linux-tool-tmon.mk.in
Normal file
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# tmon
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINUX_TOOLS += tmon
|
||||
|
||||
TMON_DEPENDENCIES = host-pkgconf ncurses
|
||||
TMON_MAKE_OPTS = $(LINUX_MAKE_FLAGS) \
|
||||
CC=$(TARGET_CC) \
|
||||
PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_SSP),)
|
||||
define TMON_DISABLE_STACK_PROTECTOR
|
||||
$(SED) 's%-fstack-protector%%' $(LINUX_DIR)/tools/thermal/tmon/Makefile
|
||||
endef
|
||||
endif
|
||||
|
||||
define TMON_BUILD_CMDS
|
||||
$(Q)if ! grep install $(LINUX_DIR)/tools/thermal/tmon/Makefile >/dev/null 2>&1 ; then \
|
||||
echo "Your kernel version is too old and does not have the tmon tool." ; \
|
||||
echo "At least kernel 3.13 must be used." ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
$(TMON_DISABLE_STACK_PROTECTOR)
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
|
||||
$(TMON_MAKE_OPTS) \
|
||||
tmon
|
||||
endef
|
||||
|
||||
define TMON_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(LINUX_DIR)/tools \
|
||||
$(TMON_MAKE_OPTS) \
|
||||
INSTALL_ROOT=$(TARGET_DIR) \
|
||||
tmon_install
|
||||
endef
|
||||
@@ -10,15 +10,14 @@
|
||||
#
|
||||
# So, all tools refer to $(LINUX_DIR) instead of $(@D).
|
||||
|
||||
# Note: we need individual tools .mk files to be included *before* this one
|
||||
# to guarantee that each tool has a chance to register itself before we build
|
||||
# the list of build and install hooks, below.
|
||||
#
|
||||
# This is currently guaranteed by the naming of each file:
|
||||
# - they get included by the top-level Makefile, with $(sort $(wildcard ...))
|
||||
# - make's $(sort) function will aways sort in the C locale
|
||||
# - the files names correctly sort out in the C locale so that each tool's
|
||||
# .mk file is included before this one.
|
||||
# Note: we need individual tools makefiles to be included *before* we build
|
||||
# the list of build and install hooks below to guarantee that each tool has
|
||||
# a chance to register itself once, and only once. Therefore, the makefiles
|
||||
# are named linux-tool-*.mk.in, so they won't be picked up by the top-level
|
||||
# Makefile, but can be included here, guaranteeing the single inclusion and
|
||||
# the proper ordering.
|
||||
|
||||
include $(sort $(wildcard package/linux-tools/*.mk.in))
|
||||
|
||||
# We only need the kernel to be extracted, not actually built
|
||||
LINUX_TOOLS_PATCH_DEPENDENCIES = linux
|
||||
|
||||
Reference in New Issue
Block a user