From: Woody Suwalski <terraluna977@gmail.com>
To: Masahiro Yamada <masahiroy@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Cc: Woody Suwalski <terraluna977@gmail.com>
Subject: [PATCH] 3 small patches for the 6.3 build scripts
Date: Fri, 31 Mar 2023 10:15:40 -0400 [thread overview]
Message-ID: <b99224fb-85f8-8526-7148-988df800a6ad@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2921 bytes --]
1. Fix a spell typo in mkdebian script.
Fixes: spelling error in scripts/package/mkdebian
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/package/mkdebian 2023-03-30 18:46:06.008350787 -0400
+++ b/scripts/package/mkdebian 2023-03-31 09:31:28.063637332 -0400
@@ -175,7 +175,7 @@ EOF
# Generate copyright file
cat <<EOF > debian/copyright
-This is a packacked upstream version of the Linux kernel.
+This is a packaged upstream version of the Linux kernel.
The sources may be found at most Linux archive sites, including:
https://www.kernel.org/pub/linux/kernel
2. Fix an invalid user-mode subarch architecture name.
The x86 32-bit architecture name should be i386, not x86.
The SUBARCH tag is used in UM arch check in scripts/tags.sh.
Fixes: incorrect user mode subarch tag in scripts/subarch.include
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/subarch.include 2023-02-19 17:24:22.000000000 -0500
+++ b/scripts/subarch.include 2023-03-30 11:18:05.357082494 -0400
@@ -4,7 +4,7 @@
# then ARCH is assigned, getting whatever value it gets normally, and
# SUBARCH is subsequently ignored.
-SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/x86_64/x86/ \
-e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ \
-e s/s390x/s390/ \
3.In 6.3 the mkdebian script started to wipe the debian directory.
On my build system I have been installing a "real" changelog file with
build history
into the unpacked/patched kernel tree before calling "make bindeb-pkg".
It seems that a workaround could be to copy the real changelog into
another directory,
e.g. patches/, and then if the patches/changelog file exists, move it to
the debian/
directory and skip creation of a stock changelog file.
Fixes: in Debian packaging use a real changelog file if provided
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/package/mkdebian 2023-03-31 09:38:14.620023584 -0400
+++ b/scripts/package/mkdebian 2023-03-31 09:38:55.704050033 -0400
@@ -164,14 +164,18 @@ echo $debarch > debian/arch
extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC
libelf-dev:native)"
extra_build_depends="$extra_build_depends, $(if_enabled_echo
CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
-# Generate a simple changelog template
-cat <<EOF > debian/changelog
+if [ ! -s patches/changelog ]; then
+ # Generate a simple changelog template
+ cat <<EOF > debian/changelog
$sourcename ($packageversion) $distribution; urgency=low
* Custom built Linux kernel.
-- $maintainer $(date -R)
EOF
+else
+ mv patches/changelog debian
+fi
# Generate copyright file
cat <<EOF > debian/copyright
Thanks, Woody
[-- Attachment #2: [PATCH]mkdebian_spell.patch --]
[-- Type: text/x-patch, Size: 549 bytes --]
Fixes: spelling error in scripts/package/mkdebian
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/package/mkdebian 2023-03-30 18:46:06.008350787 -0400
+++ b/scripts/package/mkdebian 2023-03-31 09:31:28.063637332 -0400
@@ -175,7 +175,7 @@ EOF
# Generate copyright file
cat <<EOF > debian/copyright
-This is a packacked upstream version of the Linux kernel.
+This is a packaged upstream version of the Linux kernel.
The sources may be found at most Linux archive sites, including:
https://www.kernel.org/pub/linux/kernel
[-- Attachment #3: [PATCH]subarch_i386.patch --]
[-- Type: text/x-patch, Size: 614 bytes --]
Fixes: incorrect user mode subarch tag in scripts/subarch.include
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/subarch.include 2023-02-19 17:24:22.000000000 -0500
+++ b/scripts/subarch.include 2023-03-30 11:18:05.357082494 -0400
@@ -4,7 +4,7 @@
# then ARCH is assigned, getting whatever value it gets normally, and
# SUBARCH is subsequently ignored.
-SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
+SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/x86_64/x86/ \
-e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ \
-e s/s390x/s390/ \
[-- Attachment #4: [PATCH]mkdebian_changelog.patch --]
[-- Type: text/x-patch, Size: 907 bytes --]
Fixes: in Debian packaging use a real changelog file if provided
Signed-off-by: Woody Suwalski <terraluna977@gmail.com>
--- a/scripts/package/mkdebian 2023-03-31 09:38:14.620023584 -0400
+++ b/scripts/package/mkdebian 2023-03-31 09:38:55.704050033 -0400
@@ -164,14 +164,18 @@ echo $debarch > debian/arch
extra_build_depends=", $(if_enabled_echo CONFIG_UNWINDER_ORC libelf-dev:native)"
extra_build_depends="$extra_build_depends, $(if_enabled_echo CONFIG_SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
-# Generate a simple changelog template
-cat <<EOF > debian/changelog
+if [ ! -s patches/changelog ]; then
+ # Generate a simple changelog template
+ cat <<EOF > debian/changelog
$sourcename ($packageversion) $distribution; urgency=low
* Custom built Linux kernel.
-- $maintainer $(date -R)
EOF
+else
+ mv patches/changelog debian
+fi
# Generate copyright file
cat <<EOF > debian/copyright
reply other threads:[~2023-03-31 14:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b99224fb-85f8-8526-7148-988df800a6ad@gmail.com \
--to=terraluna977@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®