Initial Commit
- initial default booting image
This commit is contained in:
40
package/s6-linux-init/0001-configure-add-D_GNU_SOURCE.patch
Normal file
40
package/s6-linux-init/0001-configure-add-D_GNU_SOURCE.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
From dadb157df58e79c7f560cacae80ea51953606fca Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 11 Apr 2021 11:02:20 +0200
|
||||
Subject: [PATCH] configure: add -D_GNU_SOURCE
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
This will fix the following build failure with uclibc-ng which is raised
|
||||
since version 1.0.6.1 and
|
||||
https://github.com/skarnet/s6-linux-init/commit/355a75e08bbc8af8af97576bad07471dd1b431d8:
|
||||
|
||||
src/shutdown/s6-linux-init-shutdownd.c: In function ‘main’:
|
||||
src/shutdown/s6-linux-init-shutdownd.c:294:24: error: ‘F_DUPFD_CLOEXEC’ undeclared (first use in this function); did you mean ‘FD_CLOEXEC’?
|
||||
294 | fd[0] = fcntl(1, F_DUPFD_CLOEXEC, 0) ;
|
||||
| ^~~~~~~~~~~~~~~
|
||||
| FD_CLOEXEC
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
[Upstream status: https://github.com/skarnet/s6-linux-init/pull/3]
|
||||
---
|
||||
configure | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 47db5b2..90fbb3b 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -138,7 +138,7 @@ getmacrostring () {
|
||||
# Actual script
|
||||
|
||||
CC_AUTO=
|
||||
-CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include"
|
||||
+CPPFLAGS_AUTO="-D_GNU_SOURCE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -iquote src/include-local -Isrc/include"
|
||||
CPPFLAGS_POST="$CPPFLAGS"
|
||||
CPPFLAGS=
|
||||
CFLAGS_AUTO="-pipe -Wall"
|
||||
--
|
||||
2.30.2
|
||||
|
||||
12
package/s6-linux-init/Config.in
Normal file
12
package/s6-linux-init/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_S6_LINUX_INIT
|
||||
bool "s6-linux-init"
|
||||
depends on BR2_USE_MMU # s6
|
||||
select BR2_PACKAGE_S6
|
||||
select BR2_PACKAGE_S6_LINUX_UTILS
|
||||
select BR2_PACKAGE_S6_PORTABLE_UTILS
|
||||
help
|
||||
s6-linux-init is a set of minimalistic tools to create a
|
||||
s6-based init system, including a /sbin/init binary, on a
|
||||
Linux kernel.
|
||||
|
||||
http://skarnet.org/software/s6-linux-init/
|
||||
3
package/s6-linux-init/s6-linux-init.hash
Normal file
3
package/s6-linux-init/s6-linux-init.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally generated
|
||||
sha256 971e014a229b7f47a128721dd714f8d493c4ac644e465197b6599a9640966530 s6-linux-init-1.1.2.1.tar.gz
|
||||
sha256 75b0b50d7bcb9b2fc174d01442536bce03333da1814df3e61cd6ef8f663548f1 COPYING
|
||||
35
package/s6-linux-init/s6-linux-init.mk
Normal file
35
package/s6-linux-init/s6-linux-init.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# s6-linux-init
|
||||
#
|
||||
################################################################################
|
||||
|
||||
S6_LINUX_INIT_VERSION = 1.1.2.1
|
||||
S6_LINUX_INIT_SITE = https://skarnet.org/software/s6-linux-init
|
||||
S6_LINUX_INIT_LICENSE = ISC
|
||||
S6_LINUX_INIT_LICENSE_FILES = COPYING
|
||||
S6_LINUX_INIT_DEPENDENCIES = s6 s6-linux-utils s6-portable-utils
|
||||
|
||||
S6_LINUX_INIT_CONF_OPTS = \
|
||||
--with-sysdeps=$(STAGING_DIR)/usr/lib/skalibs/sysdeps \
|
||||
--with-include=$(STAGING_DIR)/include \
|
||||
--with-dynlib=$(STAGING_DIR)/lib \
|
||||
--with-lib=$(STAGING_DIR)/lib/execline \
|
||||
--with-lib=$(STAGING_DIR)/lib/s6 \
|
||||
--with-lib=$(STAGING_DIR)/lib/skalibs \
|
||||
$(if $(BR2_STATIC_LIBS),,--disable-allstatic) \
|
||||
$(SHARED_STATIC_LIBS_OPTS)
|
||||
|
||||
define S6_LINUX_INIT_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure $(S6_LINUX_INIT_CONF_OPTS))
|
||||
endef
|
||||
|
||||
define S6_LINUX_INIT_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define S6_LINUX_INIT_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user