Initial Commit
- initial default booting image
This commit is contained in:
68
package/make/0001-fix-compilation-on-musl-with-gcc15.patch
Normal file
68
package/make/0001-fix-compilation-on-musl-with-gcc15.patch
Normal file
@@ -0,0 +1,68 @@
|
||||
From 31bc8976fb7bfdde8b9293e6a4eb2becb29a73bc Mon Sep 17 00:00:00 2001
|
||||
From: Bobby Bingham <koorogi@koorogi.info>
|
||||
Date: Wed, 2 Jul 2025 18:09:28 -0500
|
||||
Subject: [PATCH] fix compilation on musl with gcc15
|
||||
|
||||
Patch originally from https://codeberg.org/gentoo/gentoo/raw/branch/master/dev-build/make/files/make-4.4.1-c23.patch
|
||||
|
||||
This addresses the same issues as, but is not quite identical to, the
|
||||
patch linked to as upstream. Upstream has not acknowledged its patch in
|
||||
any way.
|
||||
|
||||
Upstream bug report: https://savannah.gnu.org/bugs/index.php?68302
|
||||
|
||||
Signed-off-by: Daniel Houck <Software@DRHouck.me>
|
||||
Upstream: https://lists.gnu.org/archive/html/bug-make/2025-03/msg00032.html
|
||||
---
|
||||
lib/fnmatch.c | 2 +-
|
||||
src/getopt.c | 2 +-
|
||||
src/getopt.h | 7 -------
|
||||
3 files changed, 2 insertions(+), 9 deletions(-)
|
||||
|
||||
diff --git a/lib/fnmatch.c b/lib/fnmatch.c
|
||||
index 01da376..9b54022 100644
|
||||
--- a/lib/fnmatch.c
|
||||
+++ b/lib/fnmatch.c
|
||||
@@ -121,7 +121,7 @@ USA. */
|
||||
whose names are inconsistent. */
|
||||
|
||||
# if !defined _LIBC && !defined getenv
|
||||
-extern char *getenv ();
|
||||
+extern char *getenv (const char*);
|
||||
# endif
|
||||
|
||||
# ifndef errno
|
||||
diff --git a/src/getopt.c b/src/getopt.c
|
||||
index 7a792de..9b56abe 100644
|
||||
--- a/src/getopt.c
|
||||
+++ b/src/getopt.c
|
||||
@@ -202,7 +202,7 @@ static char *posixly_correct;
|
||||
whose names are inconsistent. */
|
||||
|
||||
#ifndef getenv
|
||||
-extern char *getenv ();
|
||||
+extern char *getenv (const char*);
|
||||
#endif
|
||||
|
||||
static char *
|
||||
diff --git a/src/getopt.h b/src/getopt.h
|
||||
index df18cee..a6cc621 100644
|
||||
--- a/src/getopt.h
|
||||
+++ b/src/getopt.h
|
||||
@@ -96,14 +96,7 @@ struct option
|
||||
#define optional_argument 2
|
||||
|
||||
#if defined (__STDC__) && __STDC__
|
||||
-#ifdef __GNU_LIBRARY__
|
||||
-/* Many other libraries have conflicting prototypes for getopt, with
|
||||
- differences in the consts, in stdlib.h. To avoid compilation
|
||||
- errors, only prototype getopt for the GNU C library. */
|
||||
extern int getopt (int argc, char *const *argv, const char *shortopts);
|
||||
-#else /* not __GNU_LIBRARY__ */
|
||||
-extern int getopt ();
|
||||
-#endif /* __GNU_LIBRARY__ */
|
||||
extern int getopt_long (int argc, char *const *argv, const char *shortopts,
|
||||
const struct option *longopts, int *longind);
|
||||
extern int getopt_long_only (int argc, char *const *argv,
|
||||
--
|
||||
2.50.0
|
||||
12
package/make/Config.in
Normal file
12
package/make/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_MAKE
|
||||
bool "make"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
A tool which controls the generation of executables and other
|
||||
non-source files of a program from the program's source files.
|
||||
|
||||
While Buildroot no longer supports building a toolchain for
|
||||
the target, we keep a make package that is for example
|
||||
useful to run the uClibc test suite on the target.
|
||||
|
||||
http://www.gnu.org/software/make/
|
||||
6
package/make/make.hash
Normal file
6
package/make/make.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://lists.gnu.org/archive/html/info-gnu/2023-02/msg00011.html
|
||||
md5 c8b13b7477e812d4213a9b88ff0ff1d6 make-4.4.1.tar.lz
|
||||
# Locally calculated after checking signature
|
||||
sha256 8814ba072182b605d156d7589c19a43b89fc58ea479b9355146160946f8cf6e9 make-4.4.1.tar.lz
|
||||
# Locally computed
|
||||
sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING
|
||||
30
package/make/make.mk
Normal file
30
package/make/make.mk
Normal file
@@ -0,0 +1,30 @@
|
||||
################################################################################
|
||||
#
|
||||
# make
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MAKE_VERSION = 4.4.1
|
||||
MAKE_SOURCE = make-$(MAKE_VERSION).tar.lz
|
||||
MAKE_SITE = $(BR2_GNU_MIRROR)/make
|
||||
MAKE_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-pkgconf
|
||||
MAKE_LICENSE = GPL-3.0+
|
||||
MAKE_LICENSE_FILES = COPYING
|
||||
MAKE_CPE_ID_VENDOR = gnu
|
||||
|
||||
MAKE_CONF_OPTS = --without-guile
|
||||
|
||||
# Disable the 'load' operation for static builds since it needs dlopen
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
MAKE_CONF_OPTS += --disable-load
|
||||
endif
|
||||
|
||||
HOST_MAKE_DEPENDENCIES = host-pkgconf
|
||||
HOST_MAKE_CONF_OPTS = --without-guile
|
||||
|
||||
# Configure host-make binary to be 'host-make' to ensure it isn't
|
||||
# accidentally used by packages when they invoke recursive / sub-make.
|
||||
HOST_MAKE_CONF_OPTS += --program-prefix=host-
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user