Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
From 0c6acdae090cb74ca60c81194ac9ac819a19935f Mon Sep 17 00:00:00 2001
|
||||
From: Michal Suchanek <msuchanek@suse.de>
|
||||
Date: Mon, 4 Aug 2025 13:25:38 +0200
|
||||
Subject: [PATCH] nvram.c: Correct librtas function prototypes
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Fix build breakage with GCC 15 (which assumes C23) such that and empty
|
||||
argument list is treated as zero arguments rather than an arbitrary
|
||||
number.
|
||||
|
||||
src/nvram.c: In function ‘dump_rtas_event_entry’:
|
||||
src/nvram.c:932:18: error: too many arguments to function ‘parse_rtas_event’; expected 0, have 2
|
||||
932 | rtas_event = parse_rtas_event(data, len);
|
||||
| ^~~~~~~~~~~~~~~~ ~~~~
|
||||
src/nvram.c:938:5: error: too many arguments to function ‘rtas_print_event’; expected 0, have 3
|
||||
938 | rtas_print_event(stdout, rtas_event, 0);
|
||||
| ^~~~~~~~~~~~~~~~ ~~~~~~
|
||||
src/nvram.c:940:5: error: too many arguments to function ‘cleanup_rtas_event’; expected 0, have 1
|
||||
940 | cleanup_rtas_event(rtas_event);
|
||||
| ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~
|
||||
In file included from src/vcpustat.c:34:
|
||||
|
||||
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
|
||||
[tyreld: add description to commit log]
|
||||
Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
|
||||
|
||||
Upstream: https://github.com/ibm-power-utilities/powerpc-utils/commit/0c6acdae090cb74ca60c81194ac9ac819a19935f
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
src/nvram.c | 10 ++++++----
|
||||
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/nvram.c b/src/nvram.c
|
||||
index 1987c3d9..45a61ebf 100644
|
||||
--- a/src/nvram.c
|
||||
+++ b/src/nvram.c
|
||||
@@ -886,6 +886,8 @@ dump_errlog(struct nvram *nvram)
|
||||
return 0;
|
||||
}
|
||||
|
||||
+struct rtas_event;
|
||||
+
|
||||
/**
|
||||
* dump_rtas_event_entry
|
||||
* @brief Dump event-scan data.
|
||||
@@ -901,11 +903,11 @@ dump_errlog(struct nvram *nvram)
|
||||
int
|
||||
dump_rtas_event_entry(char *data, int len)
|
||||
{
|
||||
- void *rtas_event;
|
||||
+ struct rtas_event *rtas_event;
|
||||
void *handle;
|
||||
- void *(*parse_rtas_event)();
|
||||
- void (*rtas_print_event)();
|
||||
- void (*cleanup_rtas_event)();
|
||||
+ struct rtas_event *(*parse_rtas_event)(char *, int);
|
||||
+ int (*rtas_print_event)(FILE *, struct rtas_event *, int);
|
||||
+ int (*cleanup_rtas_event)(struct rtas_event *);
|
||||
|
||||
handle = dlopen("/usr/lib/librtasevent.so", RTLD_LAZY);
|
||||
if (handle == NULL)
|
||||
35
package/powerpc-utils/Config.in
Normal file
35
package/powerpc-utils/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
comment "powerpc-utils tools needs a toolchain w/ dynamic library"
|
||||
depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
||||
depends on BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC
|
||||
|
||||
config BR2_PACKAGE_POWERPC_UTILS
|
||||
bool "powerpc-utils"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
depends on BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le
|
||||
depends on BR2_USE_MMU # numactl
|
||||
depends on BR2_TOOLCHAIN_HAS_ATOMIC # numactl
|
||||
select BR2_PACKAGE_ZLIB
|
||||
select BR2_PACKAGE_NUMACTL
|
||||
help
|
||||
System utilities for PowerPC machines.
|
||||
|
||||
https://github.com/ibm-power-utilities/powerpc-utils.git
|
||||
|
||||
if BR2_PACKAGE_POWERPC_UTILS
|
||||
|
||||
config BR2_PACKAGE_POWERPC_UTILS_RTAS
|
||||
bool "RTAS support"
|
||||
select BR2_PACKAGE_LIBRTAS
|
||||
help
|
||||
Enable support for functions that require RTAS.
|
||||
|
||||
This adds a dependency on librtas and provides the following
|
||||
additional features at the cost of increasing the installed
|
||||
package size from about 0.5MB to about 2MB:
|
||||
ppc64_cpu --run-mode, uesensor, set_poweron_time, drmgr,
|
||||
lsslot, activate_firmware, rtas_ibm_get_vpd, serv_config,
|
||||
rtas_event_decode, sys_ident.
|
||||
|
||||
endif
|
||||
3
package/powerpc-utils/powerpc-utils.hash
Normal file
3
package/powerpc-utils/powerpc-utils.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 35efb04063f1b7bd9d715f1d8d3ab75352b595b1fd12349d7570a7ba19ba6d86 powerpc-utils-1.3.13.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
26
package/powerpc-utils/powerpc-utils.mk
Normal file
26
package/powerpc-utils/powerpc-utils.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# powerpc-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
POWERPC_UTILS_VERSION = 1.3.13
|
||||
POWERPC_UTILS_SITE = $(call github,ibm-power-utilities,powerpc-utils,v$(POWERPC_UTILS_VERSION))
|
||||
POWERPC_UTILS_DEPENDENCIES = zlib numactl
|
||||
POWERPC_UTILS_AUTORECONF = YES
|
||||
POWERPC_UTILS_LICENSE = GPL-2.0+
|
||||
POWERPC_UTILS_LICENSE_FILES = COPYING
|
||||
POWERPC_UTILS_CPE_ID_VALID = YES
|
||||
|
||||
POWERPC_UTILS_CONF_ENV = \
|
||||
ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
|
||||
POWERPC_UTILS_CONF_OPTS = --disable-werror
|
||||
|
||||
ifeq ($(BR2_PACKAGE_POWERPC_UTILS_RTAS),y)
|
||||
POWERPC_UTILS_DEPENDENCIES += librtas
|
||||
POWERPC_UTILS_CONF_OPTS += --with-librtas
|
||||
else
|
||||
POWERPC_UTILS_CONF_OPTS += --without-librtas
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user