Initial Commit
- initial default booting image
This commit is contained in:
48
package/cpio/0001-Fix-c23-conformity.patch
Normal file
48
package/cpio/0001-Fix-c23-conformity.patch
Normal file
@@ -0,0 +1,48 @@
|
||||
From f42137f5ab9cf07d1e62edc05e0212688d3ebaa2 Mon Sep 17 00:00:00 2001
|
||||
From: Sergey Poznyakoff <gray@gnu.org>
|
||||
Date: Tue, 6 May 2025 21:02:43 +0300
|
||||
Subject: [PATCH] Fix c23 conformity
|
||||
|
||||
Upstream: https://git.savannah.gnu.org/gitweb/?p=cpio.git;a=commitdiff;h=f42137f5ab9cf07d1e62edc05e0212688d3ebaa2
|
||||
Signed-off-by: Sergey Poznyakoff <gray@gnu.org>
|
||||
Signed-off-by: Florian Larysch <fl@n621.de>
|
||||
---
|
||||
src/extern.h | 4 ++--
|
||||
src/global.c | 4 ++--
|
||||
2 files changed, 4 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/extern.h b/src/extern.h
|
||||
index bf3d5b3..455119b 100644
|
||||
--- a/src/extern.h
|
||||
+++ b/src/extern.h
|
||||
@@ -96,8 +96,8 @@ extern char input_is_special;
|
||||
extern char output_is_special;
|
||||
extern char input_is_seekable;
|
||||
extern char output_is_seekable;
|
||||
-extern int (*xstat) ();
|
||||
-extern void (*copy_function) ();
|
||||
+extern int (*xstat) (const char *, struct stat *);
|
||||
+extern void (*copy_function) (void);
|
||||
extern char *change_directory_option;
|
||||
|
||||
#define STRINGIFY_BIGINT(i, b) umaxtostr (i, b)
|
||||
diff --git a/src/global.c b/src/global.c
|
||||
index 66686f2..5c6ab16 100644
|
||||
--- a/src/global.c
|
||||
+++ b/src/global.c
|
||||
@@ -184,10 +184,10 @@ bool to_stdout_option = false;
|
||||
|
||||
/* A pointer to either lstat or stat, depending on whether
|
||||
dereferencing of symlinks is done for input files. */
|
||||
-int (*xstat) ();
|
||||
+int (*xstat) (const char *, struct stat *);
|
||||
|
||||
/* Which copy operation to perform. (-i, -o, -p) */
|
||||
-void (*copy_function) () = 0;
|
||||
+void (*copy_function) (void) = 0;
|
||||
|
||||
char *change_directory_option;
|
||||
|
||||
--
|
||||
2.49.0
|
||||
|
||||
12
package/cpio/Config.in
Normal file
12
package/cpio/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_CPIO
|
||||
bool "cpio"
|
||||
depends on BR2_USE_WCHAR
|
||||
# Need argp.h support
|
||||
select BR2_PACKAGE_ARGP_STANDALONE if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
|
||||
help
|
||||
cpio archive utility for creation and extraction.
|
||||
|
||||
https://www.gnu.org/software/cpio/
|
||||
|
||||
comment "cpio needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
6
package/cpio/cpio.hash
Normal file
6
package/cpio/cpio.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://lists.gnu.org/archive/html/info-gnu/2024-01/msg00006.html
|
||||
sha1 db5e3845eb5475ddcb7e8915c3a1458a0c13d787 cpio-2.15.tar.bz2
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 937610b97c329a1ec9268553fb780037bcfff0dcffe9725ebc4fd9c1aa9075db cpio-2.15.tar.bz2
|
||||
# Locally calculated
|
||||
sha256 fc82ca8b6fdb18d4e3e85cfd8ab58d1bcd3f1b29abe782895abd91d64763f8e7 COPYING
|
||||
22
package/cpio/cpio.mk
Normal file
22
package/cpio/cpio.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# cpio
|
||||
#
|
||||
################################################################################
|
||||
|
||||
CPIO_VERSION = 2.15
|
||||
CPIO_SOURCE = cpio-$(CPIO_VERSION).tar.bz2
|
||||
CPIO_SITE = $(BR2_GNU_MIRROR)/cpio
|
||||
CPIO_CONF_OPTS = --bindir=/bin
|
||||
CPIO_LICENSE = GPL-3.0+
|
||||
CPIO_LICENSE_FILES = COPYING
|
||||
CPIO_CPE_ID_VENDOR = gnu
|
||||
|
||||
# cpio uses argp.h which is not provided by uclibc or musl by default.
|
||||
# Use the argp-standalone package to provide this.
|
||||
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
||||
CPIO_DEPENDENCIES += argp-standalone
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user