This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
Fetch from: https://github.com/Schischu/ptxdist_sh/tree/master/patches/sp-oops-extract-0.0.7
From: Bernhard Walle <walle@corscience.de>
Date: Wed, 21 Mar 2012 15:55:06 +0100
Subject: [PATCH] Make the Makefile more cross-compiler friendly
Signed-off-by: Bernhard Walle <walle@corscience.de>
---
src/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile
index cf5b550..e05eb1f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -9,4 +9,4 @@ distclean: clean
$(RM) $(TARGETS)
sp-oops-extract: oopslog.c
- gcc -Wall -s -o $@ $^
+ $(CC) $(LDFLAGS) $(CPPFLAGS) $(CFLAGS) -Wall -o $@ $^

View File

@@ -0,0 +1,33 @@
consolidate use of stdint types
Change u_int*_t to uint*_t for compatibility with a larger number of C
libraries.
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
Index: sp-oops-extract-0.0.7-1/src/oopslog.c
===================================================================
--- sp-oops-extract-0.0.7-1.orig/src/oopslog.c
+++ sp-oops-extract-0.0.7-1/src/oopslog.c
@@ -64,8 +64,8 @@ static int try_to_check_for_bad_blocks(v
int main(const int argc, const char *argv[])
{
- u_int32_t *count, maxcount = 0xffffffff;
- u_int32_t *magic_ptr, magic_value = 0x5d005d00;
+ uint32_t *count, maxcount = 0xffffffff;
+ uint32_t *magic_ptr, magic_value = 0x5d005d00;
unsigned char *charbuf;
unsigned long size;
@@ -137,8 +137,8 @@ int main(const int argc, const char *arg
errx(-1, "%s is something weird", device);
charbuf = buf;
- count = (u_int32_t *) buf;
- magic_ptr = (u_int32_t *) (buf + sizeof(u_int32_t));
+ count = (uint32_t *) buf;
+ magic_ptr = (uint32_t *) (buf + sizeof(uint32_t));
for (i = 0; i < (size / OOPS_PAGE_SIZE); i++) {
pread(fd, buf, OOPS_PAGE_SIZE, i * OOPS_PAGE_SIZE);

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_SP_OOPS_EXTRACT
bool "sp-oops-extract"
help
A tool for extracting OOPS/panic logs from MTD.
http://maemo.org/packages/view/sp-oops-extract/

View File

@@ -0,0 +1,2 @@
# Locally computed:
sha256 85601a569af1f4584db75fad21d3a70e377ce12d1bccad7dbe1112abd3b43d93 sp-oops-extract_0.0.7-1.tar.gz

View File

@@ -0,0 +1,22 @@
################################################################################
#
# sp-oops-extract
#
################################################################################
SP_OOPS_EXTRACT_VERSION = 0.0.7-1
SP_OOPS_EXTRACT_SITE = http://repository.maemo.org/pool/maemo5.0/free/s/sp-oops-extract
SP_OOPS_EXTRACT_SOURCE = sp-oops-extract_$(SP_OOPS_EXTRACT_VERSION).tar.gz
SP_OOPS_EXTRACT_LICENSE = GPL-2.0
SP_OOPS_EXTRACT_LICENSE_FILES = COPYING
define SP_OOPS_EXTRACT_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
endef
define SP_OOPS_EXTRACT_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install \
DESTDIR=$(TARGET_DIR)
endef
$(eval $(generic-package))