mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-19 16:40:46 -09:00
Debian has a newer setserial which compiles on newer toolchains, so
let's update to it.
Noteworthy is the change from a big diff to a tarball containing the
whole debian directory. The series file which contains all patches to
apply is named properly so no need to rename 00list anymore. The patches
file extension is now .patch instead of .dpatch.
This fixes the build with BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64 external
toolchain (14.2.rel1).
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 871cdeab6a)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# 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; \
|
|
rm $(@D)/debian/patches/01_makefile.patch; \
|
|
sed -i '/01_makefile.patch/d' $(@D)/debian/patches/series; \
|
|
$(APPLY_PATCHES) $(@D) $(@D)/debian/patches series; \
|
|
fi
|
|
endef
|
|
|
|
SETSERIAL_PRE_PATCH_HOOKS += SETSERIAL_APPLY_DEBIAN_PATCHES
|
|
|
|
$(eval $(autotools-package))
|