* [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
2013-06-14 9:46 [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging Anisse Astier
@ 2013-06-14 9:46 ` Anisse Astier
2013-06-14 13:54 ` maximilian attems
2013-06-15 3:11 ` Ben Hutchings
2013-06-14 9:46 ` [PATCH v5 2/4] deb-pkg: split debug symbols in their own package Anisse Astier
` (3 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Anisse Astier @ 2013-06-14 9:46 UTC (permalink / raw)
To: linux-kbuild
Cc: debian-kernel, kernel-team, Ben Hutchings, Michal Marek,
maximilian attems, Anisse Astier
Signed-off-by: Anisse Astier <anisse@astier.eu>
Cc: Ben Hutchings <ben@decadent.org.uk>
---
scripts/package/builddeb | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index acb8650..6f21ad8 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -41,9 +41,9 @@ create_package() {
parisc*)
debarch=hppa ;;
mips*)
- debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y .config && echo el) ;;
+ debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
arm*)
- debarch=arm$(grep -q CONFIG_AEABI=y .config && echo el) ;;
+ debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
*)
echo "" >&2
echo "** ** ** WARNING ** ** **" >&2
@@ -106,12 +106,12 @@ fi
if [ "$ARCH" = "um" ] ; then
$MAKE linux
cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
- cp .config "$tmpdir/usr/share/doc/$packagename/config"
+ cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
gzip "$tmpdir/usr/share/doc/$packagename/config"
cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version"
else
cp System.map "$tmpdir/boot/System.map-$version"
- cp .config "$tmpdir/boot/config-$version"
+ cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
# Not all arches include the boot path in KBUILD_IMAGE
if [ -e $KBUILD_IMAGE ]; then
cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
@@ -120,7 +120,7 @@ else
fi
fi
-if grep -q '^CONFIG_MODULES=y' .config ; then
+if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
rm -f "$tmpdir/lib/modules/$version/build"
rm -f "$tmpdir/lib/modules/$version/source"
@@ -245,7 +245,7 @@ fi
# Build header package
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
-(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
+(cd $objtree; find arch/$SRCARCH/include $KCONFIG_CONFIG Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
--
1.8.3.rc1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
2013-06-14 9:46 ` [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly Anisse Astier
@ 2013-06-14 13:54 ` maximilian attems
2013-06-15 3:11 ` Ben Hutchings
1 sibling, 0 replies; 15+ messages in thread
From: maximilian attems @ 2013-06-14 13:54 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Ben Hutchings,
Michal Marek
On Fri, Jun 14, 2013 at 11:46:54AM +0200, Anisse Astier wrote:
> Signed-off-by: Anisse Astier <anisse@astier.eu>
> Cc: Ben Hutchings <ben@decadent.org.uk>
Acked-by: maximilian attems <max@stro.at>
> ---
> scripts/package/builddeb | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index acb8650..6f21ad8 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -41,9 +41,9 @@ create_package() {
> parisc*)
> debarch=hppa ;;
> mips*)
> - debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y .config && echo el) ;;
> + debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
> arm*)
> - debarch=arm$(grep -q CONFIG_AEABI=y .config && echo el) ;;
> + debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
> *)
> echo "" >&2
> echo "** ** ** WARNING ** ** **" >&2
> @@ -106,12 +106,12 @@ fi
> if [ "$ARCH" = "um" ] ; then
> $MAKE linux
> cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
> - cp .config "$tmpdir/usr/share/doc/$packagename/config"
> + cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
> gzip "$tmpdir/usr/share/doc/$packagename/config"
> cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version"
> else
> cp System.map "$tmpdir/boot/System.map-$version"
> - cp .config "$tmpdir/boot/config-$version"
> + cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
> # Not all arches include the boot path in KBUILD_IMAGE
> if [ -e $KBUILD_IMAGE ]; then
> cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
> @@ -120,7 +120,7 @@ else
> fi
> fi
>
> -if grep -q '^CONFIG_MODULES=y' .config ; then
> +if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
> rm -f "$tmpdir/lib/modules/$version/build"
> rm -f "$tmpdir/lib/modules/$version/source"
> @@ -245,7 +245,7 @@ fi
> # Build header package
> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> -(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> +(cd $objtree; find arch/$SRCARCH/include $KCONFIG_CONFIG Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> destdir=$kernel_headers_dir/usr/src/linux-headers-$version
> mkdir -p "$destdir"
> (cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
> --
> 1.8.3.rc1
>
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
2013-06-14 9:46 ` [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly Anisse Astier
2013-06-14 13:54 ` maximilian attems
@ 2013-06-15 3:11 ` Ben Hutchings
2013-06-17 13:49 ` Anisse Astier
1 sibling, 1 reply; 15+ messages in thread
From: Ben Hutchings @ 2013-06-15 3:11 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Michal Marek,
maximilian attems
[-- Attachment #1: Type: text/plain, Size: 1003 bytes --]
On Fri, 2013-06-14 at 11:46 +0200, Anisse Astier wrote:
> Signed-off-by: Anisse Astier <anisse@astier.eu>
> Cc: Ben Hutchings <ben@decadent.org.uk>
[...]
> @@ -245,7 +245,7 @@ fi
> # Build header package
> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> -(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> +(cd $objtree; find arch/$SRCARCH/include $KCONFIG_CONFIG Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
[...]
I think $KCONFIG_CONFIG needs to be handled specially here - it should
be installed as .config in the linux-headers package, since you can't
assume the environment variable is set when that package is used.
Ben.
--
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
2013-06-15 3:11 ` Ben Hutchings
@ 2013-06-17 13:49 ` Anisse Astier
2013-06-23 16:51 ` Ben Hutchings
0 siblings, 1 reply; 15+ messages in thread
From: Anisse Astier @ 2013-06-17 13:49 UTC (permalink / raw)
To: Ben Hutchings
Cc: linux-kbuild, debian-kernel, kernel-team, Michal Marek,
maximilian attems
On Sat, 15 Jun 2013 04:11:36 +0100, Ben Hutchings <ben@decadent.org.uk> wrote :
> On Fri, 2013-06-14 at 11:46 +0200, Anisse Astier wrote:
> > Signed-off-by: Anisse Astier <anisse@astier.eu>
> > Cc: Ben Hutchings <ben@decadent.org.uk>
> [...]
> > @@ -245,7 +245,7 @@ fi
> > # Build header package
> > (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> > (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> > -(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> > +(cd $objtree; find arch/$SRCARCH/include $KCONFIG_CONFIG Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> [...]
>
> I think $KCONFIG_CONFIG needs to be handled specially here - it should
> be installed as .config in the linux-headers package, since you can't
> assume the environment variable is set when that package is used.
>
> Ben.
>
You're right. New version below.
From: Anisse Astier <anisse@astier.eu>
Subject: [PATCH] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
Signed-off-by: Anisse Astier <anisse@astier.eu>
Cc: Ben Hutchings <ben@decadent.org.uk>
---
scripts/package/builddeb | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index acb8650..a8662ef 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -41,9 +41,9 @@ create_package() {
parisc*)
debarch=hppa ;;
mips*)
- debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y .config && echo el) ;;
+ debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
arm*)
- debarch=arm$(grep -q CONFIG_AEABI=y .config && echo el) ;;
+ debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
*)
echo "" >&2
echo "** ** ** WARNING ** ** **" >&2
@@ -106,12 +106,12 @@ fi
if [ "$ARCH" = "um" ] ; then
$MAKE linux
cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
- cp .config "$tmpdir/usr/share/doc/$packagename/config"
+ cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
gzip "$tmpdir/usr/share/doc/$packagename/config"
cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version"
else
cp System.map "$tmpdir/boot/System.map-$version"
- cp .config "$tmpdir/boot/config-$version"
+ cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
# Not all arches include the boot path in KBUILD_IMAGE
if [ -e $KBUILD_IMAGE ]; then
cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
@@ -120,7 +120,7 @@ else
fi
fi
-if grep -q '^CONFIG_MODULES=y' .config ; then
+if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
rm -f "$tmpdir/lib/modules/$version/build"
rm -f "$tmpdir/lib/modules/$version/source"
@@ -245,11 +245,12 @@ fi
# Build header package
(cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
(cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
-(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
+(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
destdir=$kernel_headers_dir/usr/src/linux-headers-$version
mkdir -p "$destdir"
(cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
(cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
+(cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be
ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
arch=$(dpkg --print-architecture)
--
1.8.3.rc1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
2013-06-17 13:49 ` Anisse Astier
@ 2013-06-23 16:51 ` Ben Hutchings
0 siblings, 0 replies; 15+ messages in thread
From: Ben Hutchings @ 2013-06-23 16:51 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Michal Marek,
maximilian attems
[-- Attachment #1: Type: text/plain, Size: 4432 bytes --]
On Mon, 2013-06-17 at 15:49 +0200, Anisse Astier wrote:
> On Sat, 15 Jun 2013 04:11:36 +0100, Ben Hutchings <ben@decadent.org.uk> wrote :
>
> > On Fri, 2013-06-14 at 11:46 +0200, Anisse Astier wrote:
> > > Signed-off-by: Anisse Astier <anisse@astier.eu>
> > > Cc: Ben Hutchings <ben@decadent.org.uk>
> > [...]
> > > @@ -245,7 +245,7 @@ fi
> > > # Build header package
> > > (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> > > (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> > > -(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> > > +(cd $objtree; find arch/$SRCARCH/include $KCONFIG_CONFIG Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> > [...]
> >
> > I think $KCONFIG_CONFIG needs to be handled specially here - it should
> > be installed as .config in the linux-headers package, since you can't
> > assume the environment variable is set when that package is used.
> >
> > Ben.
> >
>
> You're right. New version below.
>
> From: Anisse Astier <anisse@astier.eu>
> Subject: [PATCH] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
>
> Signed-off-by: Anisse Astier <anisse@astier.eu>
> Cc: Ben Hutchings <ben@decadent.org.uk>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> scripts/package/builddeb | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index acb8650..a8662ef 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -41,9 +41,9 @@ create_package() {
> parisc*)
> debarch=hppa ;;
> mips*)
> - debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y .config && echo el) ;;
> + debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el) ;;
> arm*)
> - debarch=arm$(grep -q CONFIG_AEABI=y .config && echo el) ;;
> + debarch=arm$(grep -q CONFIG_AEABI=y $KCONFIG_CONFIG && echo el) ;;
> *)
> echo "" >&2
> echo "** ** ** WARNING ** ** **" >&2
> @@ -106,12 +106,12 @@ fi
> if [ "$ARCH" = "um" ] ; then
> $MAKE linux
> cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
> - cp .config "$tmpdir/usr/share/doc/$packagename/config"
> + cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
> gzip "$tmpdir/usr/share/doc/$packagename/config"
> cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version"
> else
> cp System.map "$tmpdir/boot/System.map-$version"
> - cp .config "$tmpdir/boot/config-$version"
> + cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
> # Not all arches include the boot path in KBUILD_IMAGE
> if [ -e $KBUILD_IMAGE ]; then
> cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
> @@ -120,7 +120,7 @@ else
> fi
> fi
>
> -if grep -q '^CONFIG_MODULES=y' .config ; then
> +if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> INSTALL_MOD_PATH="$tmpdir" $MAKE KBUILD_SRC= modules_install
> rm -f "$tmpdir/lib/modules/$version/build"
> rm -f "$tmpdir/lib/modules/$version/source"
> @@ -245,11 +245,12 @@ fi
> # Build header package
> (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
> (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
> -(cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> +(cd $objtree; find arch/$SRCARCH/include Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
> destdir=$kernel_headers_dir/usr/src/linux-headers-$version
> mkdir -p "$destdir"
> (cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
> (cd $objtree; tar -c -f - -T "$objtree/debian/hdrobjfiles") | (cd $destdir; tar -xf -)
> +(cd $objtree; cp $KCONFIG_CONFIG $destdir/.config) # copy .config manually to be where it's expected to be
> ln -sf "/usr/src/linux-headers-$version" "$kernel_headers_dir/lib/modules/$version/build"
> rm -f "$objtree/debian/hdrsrcfiles" "$objtree/debian/hdrobjfiles"
> arch=$(dpkg --print-architecture)
--
Ben Hutchings
DNRC Motto: I can please only one person per day.
Today is not your day. Tomorrow isn't looking good either.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v5 2/4] deb-pkg: split debug symbols in their own package
2013-06-14 9:46 [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging Anisse Astier
2013-06-14 9:46 ` [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly Anisse Astier
@ 2013-06-14 9:46 ` Anisse Astier
2013-06-14 13:55 ` maximilian attems
2013-06-15 4:03 ` Ben Hutchings
2013-06-14 9:46 ` [PATCH v5 3/4] deb-pkg: fix installed image path on parisc, mips and powerpc Anisse Astier
` (2 subsequent siblings)
4 siblings, 2 replies; 15+ messages in thread
From: Anisse Astier @ 2013-06-14 9:46 UTC (permalink / raw)
To: linux-kbuild
Cc: debian-kernel, kernel-team, Ben Hutchings, Michal Marek,
maximilian attems, Anisse Astier
This can reduce almost 3 times the size of the linux-image package,
while keeping the debug symbols available for this particular build, in
their own package.
This mimics the way kernels are built in debian, ubuntu, or with
make-kpkg, and comes at the price of a small slowdown in the building of
packages.
Signed-off-by: Anisse Astier <anisse@astier.eu>
Cc: Ben Hutchings <ben@decadent.org.uk>
---
scripts/package/builddeb | 50 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 49 insertions(+), 1 deletion(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 6f21ad8..7c5703a 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -78,17 +78,21 @@ tmpdir="$objtree/debian/tmp"
fwdir="$objtree/debian/fwtmp"
kernel_headers_dir="$objtree/debian/hdrtmp"
libc_headers_dir="$objtree/debian/headertmp"
+dbg_dir="$objtree/debian/dbgtmp"
packagename=linux-image-$version
fwpackagename=linux-firmware-image
kernel_headers_packagename=linux-headers-$version
libc_headers_packagename=linux-libc-dev
+dbg_packagename=$packagename-dbg
if [ "$ARCH" = "um" ] ; then
packagename=user-mode-linux-$version
fi
+BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
+
# Setup the directory structure
-rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir"
+rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir"
mkdir -m 755 -p "$tmpdir/DEBIAN"
mkdir -p "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
mkdir -m 755 -p "$fwdir/DEBIAN"
@@ -101,6 +105,10 @@ mkdir -p "$kernel_headers_dir/lib/modules/$version/"
if [ "$ARCH" = "um" ] ; then
mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
fi
+if [ -n "$BUILD_DEBUG" ] ; then
+ mkdir -p "$dbg_dir/usr/share/doc/$dbg_packagename"
+ mkdir -m 755 -p "$dbg_dir/DEBIAN"
+fi
# Build and install the kernel
if [ "$ARCH" = "um" ] ; then
@@ -128,6 +136,20 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
rmdir "$tmpdir/lib/modules/$version"
fi
+ if [ -n "$BUILD_DEBUG" ] ; then
+ (
+ cd $tmpdir
+ for module in $(find lib/modules/ -name *.ko); do
+ mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
+ # only keep debug symbols in the debug file
+ objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module
+ # strip original module from debug symbols
+ objcopy --strip-debug $module
+ # then add a link to those
+ objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module
+ done
+ )
+ fi
fi
if [ "$ARCH" != "um" ]; then
@@ -299,4 +321,30 @@ fi
create_package "$packagename" "$tmpdir"
+if [ -n "$BUILD_DEBUG" ] ; then
+ # Build debug package
+ # Different tools want the image in different locations
+ # perf
+ mkdir -p $dbg_dir/usr/lib/debug/lib/modules/$version/
+ cp vmlinux $dbg_dir/usr/lib/debug/lib/modules/$version/
+ # systemtap
+ mkdir -p $dbg_dir/usr/lib/debug/boot/
+ ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
+ # kdump-tools
+ ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
+
+ cat <<EOF >> debian/control
+
+Package: $dbg_packagename
+Section: debug
+Provides: linux-debug, linux-debug-$version
+Architecture: any
+Description: Linux kernel debugging symbols for $version
+ This package will come in handy if you need to debug the kernel. It provides
+ all the necessary debug symbols for the kernel and its modules.
+EOF
+
+ create_package "$dbg_packagename" "$dbg_dir"
+fi
+
exit 0
--
1.8.3.rc1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 2/4] deb-pkg: split debug symbols in their own package
2013-06-14 9:46 ` [PATCH v5 2/4] deb-pkg: split debug symbols in their own package Anisse Astier
@ 2013-06-14 13:55 ` maximilian attems
2013-06-15 4:03 ` Ben Hutchings
1 sibling, 0 replies; 15+ messages in thread
From: maximilian attems @ 2013-06-14 13:55 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Ben Hutchings,
Michal Marek
On Fri, Jun 14, 2013 at 11:46:55AM +0200, Anisse Astier wrote:
> This can reduce almost 3 times the size of the linux-image package,
> while keeping the debug symbols available for this particular build, in
> their own package.
>
> This mimics the way kernels are built in debian, ubuntu, or with
> make-kpkg, and comes at the price of a small slowdown in the building of
> packages.
>
> Signed-off-by: Anisse Astier <anisse@astier.eu>
> Cc: Ben Hutchings <ben@decadent.org.uk>
Acked-by: maximilian attems <max@stro.at>
> ---
> scripts/package/builddeb | 50 +++++++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 49 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 6f21ad8..7c5703a 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -78,17 +78,21 @@ tmpdir="$objtree/debian/tmp"
> fwdir="$objtree/debian/fwtmp"
> kernel_headers_dir="$objtree/debian/hdrtmp"
> libc_headers_dir="$objtree/debian/headertmp"
> +dbg_dir="$objtree/debian/dbgtmp"
> packagename=linux-image-$version
> fwpackagename=linux-firmware-image
> kernel_headers_packagename=linux-headers-$version
> libc_headers_packagename=linux-libc-dev
> +dbg_packagename=$packagename-dbg
>
> if [ "$ARCH" = "um" ] ; then
> packagename=user-mode-linux-$version
> fi
>
> +BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
> +
> # Setup the directory structure
> -rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir"
> +rm -rf "$tmpdir" "$fwdir" "$kernel_headers_dir" "$libc_headers_dir" "$dbg_dir"
> mkdir -m 755 -p "$tmpdir/DEBIAN"
> mkdir -p "$tmpdir/lib" "$tmpdir/boot" "$tmpdir/usr/share/doc/$packagename"
> mkdir -m 755 -p "$fwdir/DEBIAN"
> @@ -101,6 +105,10 @@ mkdir -p "$kernel_headers_dir/lib/modules/$version/"
> if [ "$ARCH" = "um" ] ; then
> mkdir -p "$tmpdir/usr/lib/uml/modules/$version" "$tmpdir/usr/bin"
> fi
> +if [ -n "$BUILD_DEBUG" ] ; then
> + mkdir -p "$dbg_dir/usr/share/doc/$dbg_packagename"
> + mkdir -m 755 -p "$dbg_dir/DEBIAN"
> +fi
>
> # Build and install the kernel
> if [ "$ARCH" = "um" ] ; then
> @@ -128,6 +136,20 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
> rmdir "$tmpdir/lib/modules/$version"
> fi
> + if [ -n "$BUILD_DEBUG" ] ; then
> + (
> + cd $tmpdir
> + for module in $(find lib/modules/ -name *.ko); do
> + mkdir -p $(dirname $dbg_dir/usr/lib/debug/$module)
> + # only keep debug symbols in the debug file
> + objcopy --only-keep-debug $module $dbg_dir/usr/lib/debug/$module
> + # strip original module from debug symbols
> + objcopy --strip-debug $module
> + # then add a link to those
> + objcopy --add-gnu-debuglink=$dbg_dir/usr/lib/debug/$module $module
> + done
> + )
> + fi
> fi
>
> if [ "$ARCH" != "um" ]; then
> @@ -299,4 +321,30 @@ fi
>
> create_package "$packagename" "$tmpdir"
>
> +if [ -n "$BUILD_DEBUG" ] ; then
> + # Build debug package
> + # Different tools want the image in different locations
> + # perf
> + mkdir -p $dbg_dir/usr/lib/debug/lib/modules/$version/
> + cp vmlinux $dbg_dir/usr/lib/debug/lib/modules/$version/
> + # systemtap
> + mkdir -p $dbg_dir/usr/lib/debug/boot/
> + ln -s ../lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/boot/vmlinux-$version
> + # kdump-tools
> + ln -s lib/modules/$version/vmlinux $dbg_dir/usr/lib/debug/vmlinux-$version
> +
> + cat <<EOF >> debian/control
> +
> +Package: $dbg_packagename
> +Section: debug
> +Provides: linux-debug, linux-debug-$version
> +Architecture: any
> +Description: Linux kernel debugging symbols for $version
> + This package will come in handy if you need to debug the kernel. It provides
> + all the necessary debug symbols for the kernel and its modules.
> +EOF
> +
> + create_package "$dbg_packagename" "$dbg_dir"
> +fi
> +
> exit 0
> --
> 1.8.3.rc1
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v5 2/4] deb-pkg: split debug symbols in their own package
2013-06-14 9:46 ` [PATCH v5 2/4] deb-pkg: split debug symbols in their own package Anisse Astier
2013-06-14 13:55 ` maximilian attems
@ 2013-06-15 4:03 ` Ben Hutchings
2013-06-17 12:05 ` Anisse Astier
1 sibling, 1 reply; 15+ messages in thread
From: Ben Hutchings @ 2013-06-15 4:03 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Michal Marek,
maximilian attems
[-- Attachment #1: Type: text/plain, Size: 1018 bytes --]
On Fri, 2013-06-14 at 11:46 +0200, Anisse Astier wrote:
> This can reduce almost 3 times the size of the linux-image package,
> while keeping the debug symbols available for this particular build, in
> their own package.
>
> This mimics the way kernels are built in debian, ubuntu, or with
> make-kpkg, and comes at the price of a small slowdown in the building of
> packages.
[...]
> @@ -128,6 +136,20 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
> rmdir "$tmpdir/lib/modules/$version"
> fi
> + if [ -n "$BUILD_DEBUG" ] ; then
> + (
> + cd $tmpdir
> + for module in $(find lib/modules/ -name *.ko); do
[...]
Can shells generally cope with the list this produces for, say, an
allmodconfig build? My instinct would be to use xargs and while, but
I'm willing to believe that this does work.
Ben.
--
Ben Hutchings
If the facts do not conform to your theory, they must be disposed of.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v5 2/4] deb-pkg: split debug symbols in their own package
2013-06-15 4:03 ` Ben Hutchings
@ 2013-06-17 12:05 ` Anisse Astier
0 siblings, 0 replies; 15+ messages in thread
From: Anisse Astier @ 2013-06-17 12:05 UTC (permalink / raw)
To: Ben Hutchings
Cc: linux-kbuild, debian-kernel, kernel-team, Michal Marek,
maximilian attems
On Sat, 15 Jun 2013 05:03:15 +0100, Ben Hutchings <ben@decadent.org.uk> wrote :
> On Fri, 2013-06-14 at 11:46 +0200, Anisse Astier wrote:
> > This can reduce almost 3 times the size of the linux-image package,
> > while keeping the debug symbols available for this particular build, in
> > their own package.
> >
> > This mimics the way kernels are built in debian, ubuntu, or with
> > make-kpkg, and comes at the price of a small slowdown in the building of
> > packages.
> [...]
> > @@ -128,6 +136,20 @@ if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
> > mv "$tmpdir/lib/modules/$version"/* "$tmpdir/usr/lib/uml/modules/$version/"
> > rmdir "$tmpdir/lib/modules/$version"
> > fi
> > + if [ -n "$BUILD_DEBUG" ] ; then
> > + (
> > + cd $tmpdir
> > + for module in $(find lib/modules/ -name *.ko); do
> [...]
>
> Can shells generally cope with the list this produces for, say, an
> allmodconfig build? My instinct would be to use xargs and while, but
> I'm willing to believe that this does work.
Did a quick test with an allmodconfig. It has 4038 modules. I'm pretty
sure it should work.
In bash 4.2.37, "for i in $(seq 50000000); do :; done" does work,
although it ends up eating 5GB of memory.
Anisse
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v5 3/4] deb-pkg: fix installed image path on parisc, mips and powerpc
2013-06-14 9:46 [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging Anisse Astier
2013-06-14 9:46 ` [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly Anisse Astier
2013-06-14 9:46 ` [PATCH v5 2/4] deb-pkg: split debug symbols in their own package Anisse Astier
@ 2013-06-14 9:46 ` Anisse Astier
2013-06-14 9:46 ` [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters Anisse Astier
2013-06-14 13:58 ` [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging maximilian attems
4 siblings, 0 replies; 15+ messages in thread
From: Anisse Astier @ 2013-06-14 9:46 UTC (permalink / raw)
To: linux-kbuild
Cc: debian-kernel, kernel-team, Ben Hutchings, Michal Marek,
maximilian attems, Anisse Astier
Signed-off-by: Anisse Astier <anisse@astier.eu>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
---
scripts/package/builddeb | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 7c5703a..0dbada8 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -89,6 +89,20 @@ if [ "$ARCH" = "um" ] ; then
packagename=user-mode-linux-$version
fi
+# Not all arches have the same installed path in debian
+# XXX: have each arch Makefile export a variable of the canonical image install
+# path instead
+case $ARCH in
+um)
+ installed_image_path="usr/bin/linux-$version"
+ ;;
+parisc|mips|powerpc)
+ installed_image_path="boot/vmlinux-$version"
+ ;;
+*)
+ installed_image_path="boot/vmlinuz-$version"
+esac
+
BUILD_DEBUG="$(grep -s '^CONFIG_DEBUG_INFO=y' $KCONFIG_CONFIG || true)"
# Setup the directory structure
@@ -116,16 +130,15 @@ if [ "$ARCH" = "um" ] ; then
cp System.map "$tmpdir/usr/lib/uml/modules/$version/System.map"
cp $KCONFIG_CONFIG "$tmpdir/usr/share/doc/$packagename/config"
gzip "$tmpdir/usr/share/doc/$packagename/config"
- cp $KBUILD_IMAGE "$tmpdir/usr/bin/linux-$version"
else
cp System.map "$tmpdir/boot/System.map-$version"
cp $KCONFIG_CONFIG "$tmpdir/boot/config-$version"
- # Not all arches include the boot path in KBUILD_IMAGE
- if [ -e $KBUILD_IMAGE ]; then
- cp $KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
- else
- cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/boot/vmlinuz-$version"
- fi
+fi
+# Not all arches include the boot path in KBUILD_IMAGE
+if [ -e $KBUILD_IMAGE ]; then
+ cp $KBUILD_IMAGE "$tmpdir/$installed_image_path"
+else
+ cp arch/$ARCH/boot/$KBUILD_IMAGE "$tmpdir/$installed_image_path"
fi
if grep -q '^CONFIG_MODULES=y' $KCONFIG_CONFIG ; then
--
1.8.3.rc1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters
2013-06-14 9:46 [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging Anisse Astier
` (2 preceding siblings ...)
2013-06-14 9:46 ` [PATCH v5 3/4] deb-pkg: fix installed image path on parisc, mips and powerpc Anisse Astier
@ 2013-06-14 9:46 ` Anisse Astier
2013-06-14 15:37 ` maximilian attems
2013-06-14 13:58 ` [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging maximilian attems
4 siblings, 1 reply; 15+ messages in thread
From: Anisse Astier @ 2013-06-14 9:46 UTC (permalink / raw)
To: linux-kbuild
Cc: debian-kernel, kernel-team, Ben Hutchings, Michal Marek,
maximilian attems, Anisse Astier
We now provide the installed image path to the kernel hooks.
This should allow the package to better integrate with debian hooks, and
should not be too disruptive of hooks supporting only one parameter.
Signed-off-by: Anisse Astier <anisse@astier.eu>
Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
---
scripts/package/builddeb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 0dbada8..06cd0c7 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -184,7 +184,7 @@ set -e
# Pass maintainer script parameters to hook scripts
export DEB_MAINT_PARAMS="\$*"
-test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
+test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d
exit 0
EOF
chmod 755 "$tmpdir/DEBIAN/$script"
--
1.8.3.rc1
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters
2013-06-14 9:46 ` [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters Anisse Astier
@ 2013-06-14 15:37 ` maximilian attems
0 siblings, 0 replies; 15+ messages in thread
From: maximilian attems @ 2013-06-14 15:37 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Ben Hutchings,
Michal Marek
On Fri, Jun 14, 2013 at 11:46:57AM +0200, Anisse Astier wrote:
> We now provide the installed image path to the kernel hooks.
>
> This should allow the package to better integrate with debian hooks, and
> should not be too disruptive of hooks supporting only one parameter.
>
> Signed-off-by: Anisse Astier <anisse@astier.eu>
> Reviewed-by: Ben Hutchings <ben@decadent.org.uk>
Acked-by: maximilian attems <max@stro.at>
> ---
> scripts/package/builddeb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
> index 0dbada8..06cd0c7 100644
> --- a/scripts/package/builddeb
> +++ b/scripts/package/builddeb
> @@ -184,7 +184,7 @@ set -e
> # Pass maintainer script parameters to hook scripts
> export DEB_MAINT_PARAMS="\$*"
>
> -test -d $debhookdir/$script.d && run-parts --arg="$version" $debhookdir/$script.d
> +test -d $debhookdir/$script.d && run-parts --arg="$version" --arg="/$installed_image_path" $debhookdir/$script.d
> exit 0
> EOF
> chmod 755 "$tmpdir/DEBIAN/$script"
> --
> 1.8.3.rc1
>
>
> --
> To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: http://lists.debian.org/1371203217-19572-5-git-send-email-anisse@astier.eu
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging
2013-06-14 9:46 [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging Anisse Astier
` (3 preceding siblings ...)
2013-06-14 9:46 ` [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters Anisse Astier
@ 2013-06-14 13:58 ` maximilian attems
2013-06-14 15:01 ` Anisse Astier
4 siblings, 1 reply; 15+ messages in thread
From: maximilian attems @ 2013-06-14 13:58 UTC (permalink / raw)
To: Anisse Astier
Cc: linux-kbuild, debian-kernel, kernel-team, Ben Hutchings,
Michal Marek
On Fri, Jun 14, 2013 at 11:46:53AM +0200, Anisse Astier wrote:
> These little fixes should bring debian packaging closer to the way it's done in debian.
>
> Changes in:
> v2:
> - only build debug packages when CONFIG_DEBUG_INFO=y
> - build debug package last.
> - more verbose debug package description
> - put package in section debug
> v3:
> - remove duplicate code from v2
> v4:
> - fixes thanks to Ben Hutchings' review
> - use KCONFIG_CONFIG instead of .config
> - use installed path specific to each architecture instead of hard-coded
> /boot/vmlinuz-$version, based on
> http://anonscm.debian.org/viewvc/kernel/dists/wheezy/linux/debian/rules.real?view=markup
> v5:
> - fixes thanks to Ben Hutchings' review
> - don't use $objtree as it's redundant in build scripts
> - add symbolic links to vmlinux to work with other tools than perf
> - pick-up reviewed-by from ml for patch 3 and 4
>
>
> Anisse Astier (4):
> deb-pkg: use KCONFIG_CONFIG instead of .config file directly
> deb-pkg: split debug symbols in their own package
> deb-pkg: fix installed image path on parisc, mips and powerpc
> deb-pkg: add a hook argument to match debian hooks parameters
>
> scripts/package/builddeb | 91 ++++++++++++++++++++++++++++++++++++++++--------
> 1 file changed, 76 insertions(+), 15 deletions(-)
Thanks, whole series seems good to me,
Acked those that seem really worthwile.
Thanks for caring of parisc and stuff.
Rereading, I didn't see the motivation for the last change,
explained in the commit message?
IRC this distinction was done on purpose to allow distribution
specific linux images to run different hooks.
--
maks
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging
2013-06-14 13:58 ` [PATCH v5 0/4] deb-pkg: bring it a little closer to debian packaging maximilian attems
@ 2013-06-14 15:01 ` Anisse Astier
0 siblings, 0 replies; 15+ messages in thread
From: Anisse Astier @ 2013-06-14 15:01 UTC (permalink / raw)
To: maximilian attems
Cc: linux-kbuild, debian-kernel, kernel-team, Ben Hutchings,
Michal Marek
Hi Maximilian,
Thanks a lot for your review.
On Fri, 14 Jun 2013 13:58:39 +0000, maximilian attems <max@stro.at> wrote :
> On Fri, Jun 14, 2013 at 11:46:53AM +0200, Anisse Astier wrote:
> > These little fixes should bring debian packaging closer to the way it's done in debian.
> >
> > Changes in:
> > v2:
> > - only build debug packages when CONFIG_DEBUG_INFO=y
> > - build debug package last.
> > - more verbose debug package description
> > - put package in section debug
> > v3:
> > - remove duplicate code from v2
> > v4:
> > - fixes thanks to Ben Hutchings' review
> > - use KCONFIG_CONFIG instead of .config
> > - use installed path specific to each architecture instead of hard-coded
> > /boot/vmlinuz-$version, based on
> > http://anonscm.debian.org/viewvc/kernel/dists/wheezy/linux/debian/rules.real?view=markup
> > v5:
> > - fixes thanks to Ben Hutchings' review
> > - don't use $objtree as it's redundant in build scripts
> > - add symbolic links to vmlinux to work with other tools than perf
> > - pick-up reviewed-by from ml for patch 3 and 4
> >
> >
> > Anisse Astier (4):
> > deb-pkg: use KCONFIG_CONFIG instead of .config file directly
> > deb-pkg: split debug symbols in their own package
> > deb-pkg: fix installed image path on parisc, mips and powerpc
> > deb-pkg: add a hook argument to match debian hooks parameters
> >
> > scripts/package/builddeb | 91 ++++++++++++++++++++++++++++++++++++++++--------
> > 1 file changed, 76 insertions(+), 15 deletions(-)
>
> Thanks, whole series seems good to me,
> Acked those that seem really worthwile.
> Thanks for caring of parisc and stuff.
>
> Rereading, I didn't see the motivation for the last change,
> explained in the commit message?
> IRC this distinction was done on purpose to allow distribution
> specific linux images to run different hooks.
>
The motivation for the last patch was that I had hooks that only worked
with two arguments. As pointed by Ben Hutchings in his review, this is
contrary to the policy of the debian kernel handbook, as every hook must
support both the one-argument and two-argument cases.
My hooks have since been fixed, but I felt the patch would still be
useful for other persons working on derivatives that might not have read
the handbook and have scripts lying around using the two arguments-only.
Anisse
^ permalink raw reply [flat|nested] 15+ messages in thread