From: Ben Hutchings <ben@decadent.org.uk>
To: Anisse Astier <anisse@astier.eu>
Cc: linux-kbuild@vger.kernel.org, debian-kernel@lists.debian.org,
kernel-team@lists.ubuntu.com, Michal Marek <mmarek@suse.cz>,
maximilian attems <max@stro.at>
Subject: Re: [PATCH v5 1/4] deb-pkg: use KCONFIG_CONFIG instead of .config file directly
Date: Sun, 23 Jun 2013 17:51:01 +0100 [thread overview]
Message-ID: <1372006261.21189.0.camel@deadeye.wl.decadent.org.uk> (raw)
In-Reply-To: <20130617154921.221997cd@serenity>
[-- 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 --]
next prev parent reply other threads:[~2013-06-23 16:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
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 13:54 ` maximilian attems
2013-06-15 3:11 ` Ben Hutchings
2013-06-17 13:49 ` Anisse Astier
2013-06-23 16:51 ` Ben Hutchings [this message]
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
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 ` [PATCH v5 4/4] deb-pkg: add a hook argument to match debian hooks parameters 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
2013-06-14 15:01 ` Anisse Astier
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=1372006261.21189.0.camel@deadeye.wl.decadent.org.uk \
--to=ben@decadent.org.uk \
--cc=anisse@astier.eu \
--cc=debian-kernel@lists.debian.org \
--cc=kernel-team@lists.ubuntu.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=max@stro.at \
--cc=mmarek@suse.cz \
/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