public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/toolchain/linux-headers-patches:master commit in: /
Date: Wed,  6 Mar 2019 22:13:30 +0000 (UTC)	[thread overview]
Message-ID: <1551909991.b418143bc1bc69f4b0c7509f74e16f9302557e4c.slyfox@gentoo> (raw)

commit:     b418143bc1bc69f4b0c7509f74e16f9302557e4c
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  6 22:06:31 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Mar  6 22:06:31 2019 +0000
URL:        https://gitweb.gentoo.org/proj/toolchain/linux-headers-patches.git/commit/?id=b418143b

rip-headers.sh: preserve arch/*/kernel/syscalls for all arches

Noticed by Jer as install failure:
    scripts/Makefile.build:42: arch/parisc/kernel/syscalls/Makefile: No such file or directory
    make[1]: *** No rule to make target 'arch/parisc/kernel/syscalls/Makefile'.  Stop.
    make: *** [arch/parisc/Makefile:168: archheaders] Error 2

The change generalises s390 tblgen inclusion for all arches.

Reported-by: Jeroen Roovers
Bug: https://bugs.gentoo.org/679630
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 rip-headers.sh | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/rip-headers.sh b/rip-headers.sh
index 7c37991..717405b 100755
--- a/rip-headers.sh
+++ b/rip-headers.sh
@@ -89,11 +89,16 @@ if [[ -d ${src}/arch/mips/boot/tools ]] ; then
 	mkdir -p ${dst}/arch/mips/boot
 	cp -r ${src}/arch/mips/boot/tools ${dst}/arch/mips/boot/
 fi
-# s390 has special sauce starting from 4.16
-if [[ -d ${src}/arch/s390/kernel/syscalls ]] ; then
-	mkdir -p ${dst}/arch/s390/kernel
-	cp -r ${src}/arch/s390/kernel/syscalls ${dst}/arch/s390/kernel/
-fi
+# linux-5.0 started generating syscall tables
+for tblgen in ${src}/arch/*/kernel/syscalls; do
+	tblgen_parent=${tblgen#${src}/}
+	tblgen_parent=${tblgen_parent%/syscalls}
+	# older kernels have none
+	if [[ -d ${tblgen} ]]; then
+		mkdir -p ${dst}/${tblgen_parent}
+		cp -r ${tblgen} ${dst}/${tblgen_parent}
+	fi
+done
 find ${dst}/ -name .gitignore -delete
 
 cp README.ripped-headers rip-headers.sh ${dst}/


             reply	other threads:[~2019-03-06 22:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-06 22:13 Sergei Trofimovich [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-05-03  6:32 [gentoo-commits] proj/toolchain/linux-headers-patches:master commit in: / Sam James
2024-03-13  4:52 Sam James
2024-03-13  4:52 Sam James
2024-01-19 11:15 Sam James
2022-10-08 22:17 Sam James
2022-10-08 22:17 Sam James
2022-01-08  3:49 Sam James
2021-09-05  5:47 Sam James
2021-02-15 22:40 Sergei Trofimovich
2020-12-14  8:12 Sergei Trofimovich
2019-12-08 14:28 Sergei Trofimovich
2019-12-08 13:23 Sergei Trofimovich
2019-12-08 13:21 Sergei Trofimovich
2019-12-08 13:03 Sergei Trofimovich
2018-10-23 22:39 Sergei Trofimovich
2018-10-12 22:56 Sergei Trofimovich

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=1551909991.b418143bc1bc69f4b0c7509f74e16f9302557e4c.slyfox@gentoo \
    --to=slyfox@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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