public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2008-04-20  3:23 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2008-04-20  3:23 UTC (permalink / raw
  To: gentoo-commits

vapier      08/04/20 03:23:28

  Modified:             rip-headers.sh
  Log:
  create lzma tarballs

Revision  Changes    Path
1.3                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.2&r2=1.3

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- rip-headers.sh	13 Jan 2007 19:19:12 -0000	1.2
+++ rip-headers.sh	20 Apr 2008 03:23:27 -0000	1.3
@@ -32,6 +32,6 @@
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 
-tar jcf ${dst}.tar.bz2 ${dst}
+tar cf - ${dst} | lzma > ${dst}.tar.lzma
 rm -rf ${dst}
-ls -lh ${dst}.tar.bz2
+ls -lh ${dst}.tar.lzma



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2008-10-26 10:48 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2008-10-26 10:48 UTC (permalink / raw
  To: gentoo-commits

vapier      08/10/26 10:48:57

  Modified:             rip-headers.sh
  Log:
  add support for 2.6.27 header split

Revision  Changes    Path
1.4                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.3&r2=1.4

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- rip-headers.sh	20 Apr 2008 03:23:27 -0000	1.3
+++ rip-headers.sh	26 Oct 2008 10:48:57 -0000	1.4
@@ -2,6 +2,8 @@
 
 ver=$1
 [[ -z $ver ]] && exit 1
+[[ ${ver} == linux-* ]] && ver=${ver#linux-}
+ver=${ver%/}
 
 src=linux-${ver}
 dst=gentoo-headers-base-${ver}
@@ -16,7 +18,7 @@
 cp -r \
 	${src}/scripts/{Makefile,Kbuild}* \
 	${src}/scripts/unifdef.c \
-	${src}/scripts/*.sh \
+	${src}/scripts/*.{sh,pl} \
 	${dst}/scripts/
 mkdir -p ${dst}/scripts/basic
 printf '#!/bin/sh\nexit 0' > ${dst}/scripts/basic/fixdep
@@ -25,13 +27,18 @@
 mkdir ${dst}/arch
 arches=$(cd ${src}/arch ; ls)
 for a in ${arches} ; do
-	[[ ! -e ${src}/include/asm-${a}/Kbuild ]] && continue
-	mkdir -p ${dst}/arch/${a}
-	cp ${src}/arch/${a}/Makefile* ${dst}/arch/${a}/
+	if [[ -e ${src}/include/asm-${a}/Kbuild ]] || [[ -e ${src}/arch/${a}/include/asm/Kbuild ]] ; then
+		mkdir -p ${dst}/arch/${a}
+		cp ${src}/arch/${a}/Makefile* ${dst}/arch/${a}/
+		if [[ -e ${src}/arch/${a}/include ]] ; then
+			cp -r ${src}/arch/${a}/include ${dst}/arch/${a}/
+		fi
+	fi
 done
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 
-tar cf - ${dst} | lzma > ${dst}.tar.lzma
+compress=lzma
+tar cf - ${dst} | ${compress} > ${dst}.tar.lzma
 rm -rf ${dst}
 ls -lh ${dst}.tar.lzma






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2009-10-11 21:38 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2009-10-11 21:38 UTC (permalink / raw
  To: gentoo-commits

vapier      09/10/11 21:38:08

  Modified:             rip-headers.sh
  Log:
  improve auto tarball finding

Revision  Changes    Path
1.5                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.4&r2=1.5

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- rip-headers.sh	26 Oct 2008 10:48:57 -0000	1.4
+++ rip-headers.sh	11 Oct 2009 21:38:08 -0000	1.5
@@ -8,6 +8,16 @@
 src=linux-${ver}
 dst=gentoo-headers-base-${ver}
 
+if [ ! -d ${src} ] ; then
+	for srctar in . /usr/portage/distfiles ; do
+		srctar=${srctar}/${src}.tar.bz2
+		if [ -e ${srctar} ] ; then
+			tar xf ${srctar}
+			break
+		fi
+	done
+fi
+
 rm -rf ${dst}
 mkdir ${dst}
 cp ${src}/Makefile ${dst}/






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2010-10-22  0:55 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2010-10-22  0:55 UTC (permalink / raw
  To: gentoo-commits

vapier      10/10/22 00:55:18

  Modified:             rip-headers.sh
  Log:
  compress with xz

Revision  Changes    Path
1.6                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.5&r2=1.6

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- rip-headers.sh	11 Oct 2009 21:38:08 -0000	1.5
+++ rip-headers.sh	22 Oct 2010 00:55:18 -0000	1.6
@@ -48,7 +48,7 @@
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 
-compress=lzma
-tar cf - ${dst} | ${compress} > ${dst}.tar.lzma
+compress=xz
+tar cf - ${dst} | ${compress} > ${dst}.tar.${compress}
 rm -rf ${dst}
-ls -lh ${dst}.tar.lzma
+ls -lh ${dst}.tar.${compress}






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2010-11-24  7:08 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2010-11-24  7:08 UTC (permalink / raw
  To: gentoo-commits

vapier      10/11/24 07:08:40

  Modified:             rip-headers.sh
  Log:
  pull in more arch supplemental files, including crap just for mips #346591

Revision  Changes    Path
1.7                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.6&r2=1.7

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- rip-headers.sh	22 Oct 2010 00:55:18 -0000	1.6
+++ rip-headers.sh	24 Nov 2010 07:08:40 -0000	1.7
@@ -40,11 +40,20 @@
 	if [[ -e ${src}/include/asm-${a}/Kbuild ]] || [[ -e ${src}/arch/${a}/include/asm/Kbuild ]] ; then
 		mkdir -p ${dst}/arch/${a}
 		cp ${src}/arch/${a}/Makefile* ${dst}/arch/${a}/
+		cp ${src}/arch/${a}/Kbuild* ${dst}/arch/${a}/ 2>/dev/null || :
 		if [[ -e ${src}/arch/${a}/include ]] ; then
 			cp -r ${src}/arch/${a}/include ${dst}/arch/${a}/
 		fi
 	fi
 done
+# mips has some stupid unique bs
+if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
+	for f in "${src}"/arch/mips/*/Platform ; do
+		f=${f#${src}}
+		mkdir ${dst}/${f%/*}
+		cp ${src}/${f} ${dst}/${f}
+	done
+fi
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2012-04-02  6:02 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2012-04-02  6:02 UTC (permalink / raw
  To: gentoo-commits

vapier      12/04/02 06:02:14

  Modified:             rip-headers.sh
  Log:
  include more arch subdirs

Revision  Changes    Path
1.8                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.7&r2=1.8

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- rip-headers.sh	24 Nov 2010 07:08:40 -0000	1.7
+++ rip-headers.sh	2 Apr 2012 06:02:14 -0000	1.8
@@ -41,9 +41,11 @@
 		mkdir -p ${dst}/arch/${a}
 		cp ${src}/arch/${a}/Makefile* ${dst}/arch/${a}/
 		cp ${src}/arch/${a}/Kbuild* ${dst}/arch/${a}/ 2>/dev/null || :
-		if [[ -e ${src}/arch/${a}/include ]] ; then
-			cp -r ${src}/arch/${a}/include ${dst}/arch/${a}/
-		fi
+		for d in include syscalls ; do
+			if [[ -e ${src}/arch/${a}/${d} ]] ; then
+				cp -r ${src}/arch/${a}/${d} ${dst}/arch/${a}/
+			fi
+		done
 	fi
 done
 # mips has some stupid unique bs






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2012-07-10  8:01 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2012-07-10  8:01 UTC (permalink / raw
  To: gentoo-commits

vapier      12/07/10 08:01:53

  Modified:             rip-headers.sh
  Log:
  extract tools dir used with newer kernels

Revision  Changes    Path
1.9                  src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.8&r2=1.9

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- rip-headers.sh	2 Apr 2012 06:02:14 -0000	1.8
+++ rip-headers.sh	10 Jul 2012 08:01:53 -0000	1.9
@@ -34,6 +34,12 @@
 printf '#!/bin/sh\nexit 0' > ${dst}/scripts/basic/fixdep
 chmod a+rx ${dst}/scripts/basic/fixdep
 touch ${dst}/scripts/basic/Makefile
+
+mkdir ${dst}/tools
+cp -r \
+	${src}/tools/include \
+	${dst}/tools/
+
 mkdir ${dst}/arch
 arches=$(cd ${src}/arch ; ls)
 for a in ${arches} ; do
@@ -41,7 +47,7 @@
 		mkdir -p ${dst}/arch/${a}
 		cp ${src}/arch/${a}/Makefile* ${dst}/arch/${a}/
 		cp ${src}/arch/${a}/Kbuild* ${dst}/arch/${a}/ 2>/dev/null || :
-		for d in include syscalls ; do
+		for d in include syscalls tools ; do
 			if [[ -e ${src}/arch/${a}/${d} ]] ; then
 				cp -r ${src}/arch/${a}/${d} ${dst}/arch/${a}/
 			fi






^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2012-12-20  3:16 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2012-12-20  3:16 UTC (permalink / raw
  To: gentoo-commits

vapier      12/12/20 03:16:23

  Modified:             rip-headers.sh
  Log:
  handle Kbuild.asm files new to linux-3.7

Revision  Changes    Path
1.10                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.9&r2=1.10

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- rip-headers.sh	10 Jul 2012 08:01:53 -0000	1.9
+++ rip-headers.sh	20 Dec 2012 03:16:23 -0000	1.10
@@ -23,7 +23,7 @@
 cp ${src}/Makefile ${dst}/
 mkdir ${dst}/include
 cp ${src}/include/Kbuild ${dst}/include/
-cp -r $(find ${src}/include -mindepth 2 -maxdepth 2 -name Kbuild -printf %h' ') ${dst}/include/
+cp -r $(find ${src}/include -mindepth 2 -maxdepth 2 -name 'Kbuild*' -printf %h' ') ${dst}/include/
 mkdir ${dst}/scripts
 cp -r \
 	${src}/scripts/{Makefile,Kbuild}* \





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2013-08-16 17:50 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2013-08-16 17:50 UTC (permalink / raw
  To: gentoo-commits

vapier      13/08/16 17:50:42

  Modified:             rip-headers.sh
  Log:
  improve kernel tarball search

Revision  Changes    Path
1.11                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.10&r2=1.11

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- rip-headers.sh	20 Dec 2012 03:16:23 -0000	1.10
+++ rip-headers.sh	16 Aug 2013 17:50:42 -0000	1.11
@@ -9,12 +9,14 @@
 dst=gentoo-headers-base-${ver}
 
 if [ ! -d ${src} ] ; then
-	for srctar in . /usr/portage/distfiles ; do
-		srctar=${srctar}/${src}.tar.bz2
-		if [ -e ${srctar} ] ; then
-			tar xf ${srctar}
-			break
-		fi
+	for srcdir in . /usr/portage/distfiles ; do
+		for ext in bz2 xz ; do
+			srctar=${srcdir}/${src}.tar.${ext}
+			if [ -e ${srctar} ] ; then
+				tar xf ${srctar}
+				break
+			fi
+		done
 	done
 fi
 





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2014-08-04  8:59 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2014-08-04  8:59 UTC (permalink / raw
  To: gentoo-commits

vapier      14/08/04 08:59:23

  Modified:             rip-headers.sh
  Log:
  autofetch new releases

Revision  Changes    Path
1.12                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.11&r2=1.12

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- rip-headers.sh	16 Aug 2013 17:50:42 -0000	1.11
+++ rip-headers.sh	4 Aug 2014 08:59:23 -0000	1.12
@@ -19,6 +19,10 @@
 		done
 	done
 fi
+if [ ! -d ${src} ] ; then
+	wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${ver}.tar.xz -P /usr/portage/distfiles/
+	exec "$0" "$@"
+fi
 
 rm -rf ${dst}
 mkdir ${dst}





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2015-04-14 22:15 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2015-04-14 22:15 UTC (permalink / raw
  To: gentoo-commits

vapier      15/04/14 22:15:43

  Modified:             rip-headers.sh
  Log:
  support 2.x/3.x/4.x URIs

Revision  Changes    Path
1.13                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.12&r2=1.13

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- rip-headers.sh	4 Aug 2014 08:59:23 -0000	1.12
+++ rip-headers.sh	14 Apr 2015 22:15:43 -0000	1.13
@@ -20,7 +20,7 @@
 	done
 fi
 if [ ! -d ${src} ] ; then
-	wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${ver}.tar.xz -P /usr/portage/distfiles/
+	wget https://www.kernel.org/pub/linux/kernel/v${ver:0:1}.x/linux-${ver}.tar.xz -P /usr/portage/distfiles/
 	exec "$0" "$@"
 fi
 





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2015-09-01  2:38 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2015-09-01  2:38 UTC (permalink / raw
  To: gentoo-commits

vapier      15/09/01 02:38:06

  Modified:             rip-headers.sh
  Log:
  pull in x86 dirs starting w/4.2

Revision  Changes    Path
1.14                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.13&r2=1.14

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- rip-headers.sh	14 Apr 2015 22:15:43 -0000	1.13
+++ rip-headers.sh	1 Sep 2015 02:38:06 -0000	1.14
@@ -60,6 +60,11 @@
 		done
 	fi
 done
+# handle x86 unique cruft
+if [[ -e ${src}/arch/x86/entry/syscalls ]] ; then
+	mkdir -p ${dst}/arch/x86/entry
+	cp -r ${src}/arch/x86/entry/syscalls ${dst}/arch/x86/entry/
+fi
 # mips has some stupid unique bs
 if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
 	for f in "${src}"/arch/mips/*/Platform ; do





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2016-08-02 15:22 Mike Frysinger (vapier)
  0 siblings, 0 replies; 17+ messages in thread
From: Mike Frysinger (vapier) @ 2016-08-02 15:22 UTC (permalink / raw
  To: gentoo-commits

vapier      16/08/02 15:22:58

  Modified:             rip-headers.sh
  Log:
  pull in some more mips cruft

Revision  Changes    Path
1.15                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.14&r2=1.15

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- rip-headers.sh	1 Sep 2015 02:38:06 -0000	1.14
+++ rip-headers.sh	2 Aug 2016 15:22:58 -0000	1.15
@@ -73,6 +73,11 @@
 		cp ${src}/${f} ${dst}/${f}
 	done
 fi
+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
+find ${dst}/ -name .gitignore -delete
 
 cp README.ripped-headers rip-headers.sh ${dst}/
 





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2017-09-10 23:54 Matt Turner (mattst88)
  0 siblings, 0 replies; 17+ messages in thread
From: Matt Turner (mattst88) @ 2017-09-10 23:54 UTC (permalink / raw
  To: gentoo-commits

mattst88    17/09/10 23:54:57

  Modified:             rip-headers.sh
  Log:
  Update rip-headers.sh to handle kernels >= 4.12
  
  Upstream kernel commit fcc8487d477a3452a1d0ccbdd4c5e0e1e3cb8bed ("uapi: export
  all headers under uapi directories") removed include/Kbuild and the Kbuild
  files from most directories within include/, thus breaking rip-headers.sh.
  
  I have modified rip-headers.sh to simply rip all of include/ if it cannot find
  the Kbuild files. This increase the size of gentoo-headers-base-*.tar.xz from
  ~4M to ~8M, but that's still significantly better than the size of the whole
  kernel.

Revision  Changes    Path
1.16                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.15&r2=1.16

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- rip-headers.sh	2 Aug 2016 15:22:58 -0000	1.15
+++ rip-headers.sh	10 Sep 2017 23:54:57 -0000	1.16
@@ -28,8 +28,13 @@
 mkdir ${dst}
 cp ${src}/Makefile ${dst}/
 mkdir ${dst}/include
-cp ${src}/include/Kbuild ${dst}/include/
-cp -r $(find ${src}/include -mindepth 2 -maxdepth 2 -name 'Kbuild*' -printf %h' ') ${dst}/include/
+[ -f ${src}/include/Kbuild ] && cp ${src}/include/Kbuild ${dst}/include/
+directories=$(find ${src}/include -mindepth 2 -maxdepth 2 -name 'Kbuild*' -printf %h' ')
+if [ -n "${directories}" ] ; then
+	cp -r ${directories} ${dst}/include/
+else
+	cp -r ${src}/include/* ${dst}/include
+fi
 mkdir ${dst}/scripts
 cp -r \
 	${src}/scripts/{Makefile,Kbuild}* \





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2017-12-28 15:50 Sergei Trofimovich (slyfox)
  0 siblings, 0 replies; 17+ messages in thread
From: Sergei Trofimovich (slyfox) @ 2017-12-28 15:50 UTC (permalink / raw
  To: gentoo-commits

slyfox      17/12/28 15:50:53

  Modified:             rip-headers.sh
  Log:
  rip-headers.sh: try DISTDIR from portage before falling back to /usr/portage

Revision  Changes    Path
1.17                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.16&r2=1.17

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- rip-headers.sh	10 Sep 2017 23:54:57 -0000	1.16
+++ rip-headers.sh	28 Dec 2017 15:50:53 -0000	1.17
@@ -9,7 +9,7 @@
 dst=gentoo-headers-base-${ver}
 
 if [ ! -d ${src} ] ; then
-	for srcdir in . /usr/portage/distfiles ; do
+	for srcdir in . "$(portageq distdir)" /usr/portage/distfiles ; do
 		for ext in bz2 xz ; do
 			srctar=${srcdir}/${src}.tar.${ext}
 			if [ -e ${srctar} ] ; then





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2017-12-28 15:53 Sergei Trofimovich (slyfox)
  0 siblings, 0 replies; 17+ messages in thread
From: Sergei Trofimovich (slyfox) @ 2017-12-28 15:53 UTC (permalink / raw
  To: gentoo-commits

slyfox      17/12/28 15:53:55

  Modified:             rip-headers.sh
  Log:
  rip-headers.sh: add tiny 'usage' banner

Revision  Changes    Path
1.18                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.18&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.17&r2=1.18

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- rip-headers.sh	28 Dec 2017 15:50:53 -0000	1.17
+++ rip-headers.sh	28 Dec 2017 15:53:55 -0000	1.18
@@ -1,7 +1,10 @@
 #!/bin/bash -ex
 
 ver=$1
-[[ -z $ver ]] && exit 1
+if [[ -z $ver ]]; then
+	echo "Usage: $0 <kernel ver>"
+	exit 1
+fi
 [[ ${ver} == linux-* ]] && ver=${ver#linux-}
 ver=${ver%/}
 





^ permalink raw reply	[flat|nested] 17+ messages in thread

* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh
@ 2018-04-14 19:01 Sergei Trofimovich (slyfox)
  0 siblings, 0 replies; 17+ messages in thread
From: Sergei Trofimovich (slyfox) @ 2018-04-14 19:01 UTC (permalink / raw
  To: gentoo-commits

slyfox      18/04/14 19:01:13

  Modified:             rip-headers.sh
  Log:
  rip-headers.sh: add ripping of missing 'kernel/syscalls' directory for s390

Revision  Changes    Path
1.19                 src/patchsets/gentoo-headers/rip-headers.sh

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/rip-headers.sh?r1=1.18&r2=1.19

Index: rip-headers.sh
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/rip-headers.sh,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- rip-headers.sh	28 Dec 2017 15:53:55 -0000	1.18
+++ rip-headers.sh	14 Apr 2018 19:01:13 -0000	1.19
@@ -68,12 +68,12 @@
 		done
 	fi
 done
-# handle x86 unique cruft
+# handle x86 unique headers
 if [[ -e ${src}/arch/x86/entry/syscalls ]] ; then
 	mkdir -p ${dst}/arch/x86/entry
 	cp -r ${src}/arch/x86/entry/syscalls ${dst}/arch/x86/entry/
 fi
-# mips has some stupid unique bs
+# mips has some unique headers as well
 if [[ -e ${src}/arch/mips/Kbuild.platforms ]] ; then
 	for f in "${src}"/arch/mips/*/Platform ; do
 		f=${f#${src}}
@@ -85,6 +85,11 @@
 	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
 find ${dst}/ -name .gitignore -delete
 
 cp README.ripped-headers rip-headers.sh ${dst}/





^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2018-04-14 19:01 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02 15:22 [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers: rip-headers.sh Mike Frysinger (vapier)
  -- strict thread matches above, loose matches on Subject: below --
2018-04-14 19:01 Sergei Trofimovich (slyfox)
2017-12-28 15:53 Sergei Trofimovich (slyfox)
2017-12-28 15:50 Sergei Trofimovich (slyfox)
2017-09-10 23:54 Matt Turner (mattst88)
2015-09-01  2:38 Mike Frysinger (vapier)
2015-04-14 22:15 Mike Frysinger (vapier)
2014-08-04  8:59 Mike Frysinger (vapier)
2013-08-16 17:50 Mike Frysinger (vapier)
2012-12-20  3:16 Mike Frysinger (vapier)
2012-07-10  8:01 Mike Frysinger (vapier)
2012-04-02  6:02 Mike Frysinger (vapier)
2010-11-24  7:08 Mike Frysinger (vapier)
2010-10-22  0:55 Mike Frysinger (vapier)
2009-10-11 21:38 Mike Frysinger (vapier)
2008-10-26 10:48 Mike Frysinger (vapier)
2008-04-20  3:23 Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox