initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
Do not pass -fstack-protector unconditionally
|
||||
|
||||
Using -fstack-protector only works when the toolchain has SSP support.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/src/Makefile.am
|
||||
===================================================================
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -127,7 +127,6 @@
|
||||
-Wformat \
|
||||
-Wshadow \
|
||||
-fno-omit-frame-pointer \
|
||||
- -fstack-protector \
|
||||
$(GLIB2_CFLAGS) \
|
||||
$(LIBNL_CFLAGS) \
|
||||
$(NCURSES_CFLAGS) \
|
||||
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_POWERTOP
|
||||
bool "powertop"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
depends on BR2_USE_WCHAR
|
||||
select BR2_PACKAGE_NCURSES
|
||||
select BR2_PACKAGE_PCIUTILS
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
A tool to diagnose issues with power consumption and power
|
||||
management
|
||||
|
||||
https://01.org/powertop/
|
||||
|
||||
comment "powertop needs a toolchain w/ C++, threads, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_USE_WCHAR
|
||||
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://01.org/sites/default/files/downloads/powertop-2.13.tar.gz.asc.txt
|
||||
# using key 22E8F306C8FA4BAA2A5F36F3A0303B060918941C
|
||||
sha256 a65f992ca4a419bc73b623651060eb9fc00c5a86fa03556358cd9db011ef3178 powertop-2.13.tar.gz
|
||||
sha256 b499eddebda05a8859e32b820a64577d91f1de2b52efa2a1575a2cb4000bc259 COPYING
|
||||
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# powertop
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POWERTOP_VERSION = 2.13
|
||||
POWERTOP_SITE = https://01.org/sites/default/files/downloads
|
||||
POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-pkgconf \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
POWERTOP_LICENSE = GPL-2.0
|
||||
POWERTOP_LICENSE_FILES = COPYING
|
||||
POWERTOP_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
||||
# 0001-dont-force-stack-smashing-protection.patch
|
||||
POWERTOP_AUTORECONF = YES
|
||||
|
||||
# Help powertop at finding the right ncurses library depending on
|
||||
# which one is available.
|
||||
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
||||
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
|
||||
else
|
||||
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user