Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
Install the setserial program in /usr/bin instead of /bin, and make
sure that the directories (especially the manpages directory) are
created before installing files to them. This is similar to what
automake does.
Also remove CXXFLAGS and its use since the linker errors out with:
cannot find @CXXFLAGS@: No such file or directory
Additionally, remove the strip command made on the wrong file.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
[rebased on top of Debian's setserial_2.17-57.debian.tar.xz instead of relying
on deletion of 01_makefile.patch]
[extend commit log to explain why CXXFLAGS is removed and also that strip is
removed on purpose, c.f. original commit aaa2b660a9f9 ("setserial: convert to
autotargets and fix manpages install")]
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Makefile.in | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Index: setserial-2.17/Makefile.in
===================================================================
--- setserial-2.17.orig/Makefile.in
+++ setserial-2.17/Makefile.in
@@ -15,7 +15,6 @@ RM = rm -f
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
CPPFLAGS = @CPPFLAGS@
-CXXFLAGS = @CXXFLAGS@
DEFS = @DEFS@
INCS = -I.
TAR = tar
@@ -23,14 +22,15 @@ TAR = tar
all: setserial setserial.cat
setserial: setserial.c
- $(CC) $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
setserial.cat: setserial.8
nroff -man setserial.8 > setserial.cat
install: setserial setserial.8
- $(INSTALL_PROGRAM) setserial $(DESTDIR)/bin
- $(STRIP) $(DESTDIR)/bin/setserial
+ mkdir -p $(DESTDIR)/usr/bin
+ $(INSTALL_PROGRAM) setserial $(DESTDIR)/usr/bin
+ mkdir -p $(DESTDIR)/usr/share/man/man8
$(INSTALL_DATA) setserial.8 $(DESTDIR)/usr/share/man/man8
clean:

View File

@@ -0,0 +1,31 @@
[PATCH] setserial: fix build with 2.6.33+ kernel headers
linux/hayesesp.h got removed in 2.6.33, but some archs (like x86) still
define the TIOCGHAYESESP ioctl, breaking the build.
It's very unlikely to be of interest anymore, so just undef it.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
[rebased on top of Debian's setserial_2.17-45.3.diff]
Upstream: N/A only for compatibility with Linux kernels [2.6.33;2.6.36[
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
setserial.c | 5 +++++
1 file changed, 5 insertions(+)
Index: setserial-2.17/setserial.c
===================================================================
--- setserial-2.17.orig/setserial.c
+++ setserial-2.17/setserial.c
@@ -39,6 +39,11 @@
#include "safety.h"
#endif
+/* linux/hayesesp.h got removed in 2.6.33 but some archs (like x86)
+ still define TIOCGHAYESESP. It's very unlikely to be of interest
+ anymore, so just undef it */
+#undef TIOCGHAYESESP
+
#include "version.h"
static char version_str[] = "setserial version " SETSERIAL_VERSION ", "

View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_SETSERIAL
bool "setserial"
# Uses fork()
depends on BR2_USE_MMU
help
Setserial : configuration of serial ports
http://setserial.sourceforge.net/

View File

@@ -0,0 +1,5 @@
# From https://snapshot.debian.org/file/98a1ce8758c5313a8b8a266d493605e578bcc4f6/setserial_2.17-57.dsc
sha256 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a setserial_2.17.orig.tar.gz
sha256 e96ef61d3e5fc5a77d6e54c4c48a2caee31931732a18ee49e4c67d128ad181c9 setserial_2.17-57.debian.tar.xz
# Locally computed
sha256 1d7e810ed28daf370def626dfd4c502f2f77d2b678f1ac72e2ba675dd6f9af0d debian/copyright

View File

@@ -0,0 +1,38 @@
################################################################################
#
# setserial
#
################################################################################
SETSERIAL_VERSION = 2.17
SETSERIAL_SOURCE = setserial_$(SETSERIAL_VERSION).orig.tar.gz
SETSERIAL_SITE = https://snapshot.debian.org/archive/debian/20250307T084701Z/pool/main/s/setserial
SETSERIAL_EXTRA_DOWNLOADS = setserial_$(SETSERIAL_VERSION)-57.debian.tar.xz
SETSERIAL_LICENSE = GPL-2.0
SETSERIAL_LICENSE_FILES = debian/copyright
# make all also builds setserial.cat which needs nroff
SETSERIAL_MAKE_OPTS = setserial
SETSERIAL_AUTORECONF = YES
# Extract the Debian tarball inside the sources
define SETSERIAL_DEBIAN_EXTRACT
$(call suitable-extractor,$(notdir $(SETSERIAL_EXTRA_DOWNLOADS))) \
$(SETSERIAL_DL_DIR)/$(notdir $(SETSERIAL_EXTRA_DOWNLOADS)) | \
$(TAR) -C $(@D) $(TAR_OPTIONS) -
endef
SETSERIAL_POST_EXTRACT_HOOKS += SETSERIAL_DEBIAN_EXTRACT
define SETSERIAL_APPLY_DEBIAN_PATCHES
# - Touching gorhack.h is needed for the Debian patch 18 to work
# - Apply patches in the order listed in debian/patches/series
if [ -d $(@D)/debian/patches ]; then \
touch $(@D)/gorhack.h; \
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches series; \
fi
endef
SETSERIAL_PRE_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES
$(eval $(autotools-package))