[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: linux-image-3.11-2-armmp_3.11.8-1_armhf not include AHCI_IMX



On Thu, 2013-12-05 at 05:37 +0800, Niew, Sh. wrote:
> On Thu, Dec 5, 2013 at 1:37 AM, Ian Campbell <ijc@hellion.org.uk> wrote:
> > On Thu, 2013-12-05 at 01:12 +0800, Niew, Sh. wrote:
> >> On Wed, Dec 4, 2013 at 4:33 PM, Ian Campbell <ijc@hellion.org.uk> wrote:
> >> > I've only just pushed the enablement of AHCI_IMX to SVN trunk, so it
> >> > won't be included in 3.12-1~exp1 which is already released.
> >> >
> >> > If you are able to rebuild from svn then please do give it a go,
> >> > otherwise we can either wait for next week when this stuff should be
> >> > uploaded or I could try and find somewhere to put some binaries for you.
> >>
> >> how can i get it from svn? with `apt-get source linux` command?
> >
> > No, it is the version control system where the packaging is prepared.
> > More info at https://wiki.debian.org/DebianKernel
> >
> > You may also find
> > http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-common-official-vcs useful.
> 
> I follow the steps in handbook:
> 1. svn co svn://anonscm.debian.org/svn/kernel/dists/trunk/linux
> 2. apt-get source -d linux
> 3. debian/rules orig
> 
> after the third step it said:
> debian/rules:59: *** Cannot find orig tarball linux_3.12.2.orig.tar.xz.  Stop.
> 
> What i misunderstood? I don't know about subversion also the debian
> packaging do.
> If can, please kindly guide me.

See
<http://kernel-handbook.alioth.debian.org/ch-common-tasks.html#s-gen-orig>

> BTW, i read that in file debian/README.Debian say:
> "We recommend using the 'make deb-pkg' target provided by the upstream
> kernel source.",
> but i always use make-kpkg to build kernel package either native or
> cross-compile,
> i remember once i tried to cross-compile with 'make deb-pkg' but failed.

This should work but I haven't tried it before.

Hmm, it looks like this patch is needed:

---
Subject: deb-pkg: Fix cross-building linux-headers package

builddeb generates a control file that says the linux-headers package
can only be built for the build system primary architecture.  This
breaks cross-building configurations.  We should use $debarch for this
instead.

Since $debarch is not yet set when generating the control file, set
Architecture: any and use control file variables to fill in the
description.

Fixes: cd8d60a20a45 ('kbuild: create linux-headers package in deb-pkg')
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 scripts/package/builddeb | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 90e521f..301acdc 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -62,7 +62,7 @@ create_package() {
 	fi
 
 	# Create the package
-	dpkg-gencontrol -isp $forcearch -p$pname -P"$pdir"
+	dpkg-gencontrol -isp $forcearch -Vkernel:debarch="${debarch:-$(dpkg --print-architecture)}" -p$pname -P"$pdir"
 	dpkg --build "$pdir" ..
 }
 
@@ -288,15 +288,14 @@ mkdir -p "$destdir"
 (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)
 
 cat <<EOF >> debian/control
 
 Package: $kernel_headers_packagename
 Provides: linux-headers, linux-headers-2.6
-Architecture: $arch
-Description: Linux kernel headers for $KERNELRELEASE on $arch
- This package provides kernel header files for $KERNELRELEASE on $arch
+Architecture: any
+Description: Linux kernel headers for $KERNELRELEASE on \${kernel:debarch}
+ This package provides kernel header files for $KERNELRELEASE on \${kernel:debarch}
  .
  This is useful for people who need to build external modules
 EOF
---

Ben.

-- 
Ben Hutchings
Knowledge is power.  France is bacon.

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: