[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

View File

@ -0,0 +1,46 @@
From 148712f8a559cc613236e9e72b3ce6c24b83c373 Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: Sat, 23 Jul 2022 18:51:37 +0200
Subject: [PATCH] configure.ac: remove LOCAL_CHECK_FLAGS
These cause problems with Buildroot (the -fstack-protector-all check
does only a compile test, it should do a link test), and generally the
decision of using those flags or not should be left to Buildroot.
An issue has been reported upstream at
https://github.com/ibm-power-utilities/librtas/issues/25 to hopefully
get a better solution.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
configure.ac | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/configure.ac b/configure.ac
index c3429e8..b7208ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,20 +24,6 @@ AC_TYPE_UID_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
-AC_DEFUN([LOCAL_CHECK_FLAGS],[
- AC_REQUIRE([AX_CHECK_LINK_FLAG])
- AC_REQUIRE([AX_APPEND_COMPILE_FLAGS])
- AC_LANG_PUSH([C])
- AX_APPEND_COMPILE_FLAGS([-Wall])
- AX_APPEND_COMPILE_FLAGS([-D_FORTIFY_SOURCE=2 -fstack-protector-all])
- AX_APPEND_COMPILE_FLAGS([-fwrapv -fPIE -Wstack-protector])
- AX_APPEND_COMPILE_FLAGS([--param=ssp-buffer-size=1])
- AX_CHECK_LINK_FLAG([-z relro -z now])
- AX_CHECK_LINK_FLAG([-pie])
- AC_LANG_POP
-])
-LOCAL_CHECK_FLAGS
-
LT_INIT
LT_LANG([C])
--
2.37.1

10
package/librtas/Config.in Normal file
View File

@ -0,0 +1,10 @@
config BR2_PACKAGE_LIBRTAS
bool "librtas"
depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
help
The librtas package provides an interface for Run-Time
Abstraction Services (RTAS) calls on PAPR platforms.
The libraries allow users to examine and manipulate hardware,
and parse RTAS events.
http://librtas.sourceforge.net/

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 1b951422ec9553fa9d5e5e158fd8e298f867f561189fff6817a9540d5661f145 librtas-2.0.3.tar.gz
sha256 592987e8510228d546540b84a22444bde98e48d03078d3b2eefcd889bec5ce8c COPYING.LESSER

View File

@ -0,0 +1,15 @@
################################################################################
#
# librtas
#
################################################################################
LIBRTAS_VERSION = 2.0.3
LIBRTAS_SITE = $(call github,ibm-power-utilities,librtas,v$(LIBRTAS_VERSION))
LIBRTAS_LICENSE = LGPL-2.1+
LIBRTAS_LICENSE_FILES = COPYING.LESSER
LIBRTAS_INSTALL_STAGING = YES
# From git
LIBRTAS_AUTORECONF = YES
$(eval $(autotools-package))