- Jun 24, 2011
-
-
matt mooney authored
Specify --git-dir when building perf targets to allow out-of-tree builds using O=<build-dir>. The shell command in `git archive' had to be modified to allow proper file name expansion of the files listed in MANIFEST. Signed-off-by:
matt mooney <mfm@muteddisk.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- May 24, 2011
-
-
Arun Sharma authored
To compile binaries which depend on new kernel interfaces, we need a kernel-headers RPM Signed-off-by:
Arun Sharma <asharma@fb.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Michal Marek authored
The better fix would be to stop using the parent directory (principle of least surprise), but as long as we use it, use it consistently. Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- May 04, 2011
-
-
Arun Sharma authored
Removing the '-' results in hard to read filenames such as: kernel-2.6.35.2000042g76e4caf-28.x86_64.rpm kernel-2.6.35.2_000042_g76e4caf-28.x86_64.rpm is easier to read. Signed-off-by:
Arun Sharma <asharma@fb.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Mar 31, 2011
-
-
Lucas De Marchi authored
Fixes generated by 'codespell' and manually reviewed. Signed-off-by:
Lucas De Marchi <lucas.demarchi@profusion.mobi>
-
- Mar 09, 2011
-
-
Zdenek Kaspar authored
Signed-off-by:
Zdenek Kaspar <zkaspar82@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Feb 04, 2011
-
-
Nicolas de Pesloüan authored
When building linux-headers package using deb-pkg, builddeb erroneously assume current directory is the source tree. This is not true if building in another directory, using make O=... deb-pkg. This patch fix this problem. Signed-off-by:
Nicolas de Pesloüan <nicolas.2p.debian@free.fr> Tested-by:
Nikolai Kondrashov <spbnick@gmail.com> Acked-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Jan 14, 2011
-
-
maximilian attems authored
Fix x86 centric path to allow building kernel-header packages for other architecture. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Jan 07, 2011
-
-
maximilian attems authored
hdrpackage and headerpackage are not intuitive names, use proposed alternatives by Michel Marek. While touching them move the mkdir of the kernel_headers dir up and fix it for paranoid umask. CC: Theodore Ts'o <tytso@mit.edu> Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
maximilian attems authored
userland dev likes latest incarnation of that userland API. make it easy to also build it on make deb-pkg invocation: dpkg-deb: building package `linux-libc-dev' in `../linux-libc-dev_2.6.32-rc6-4_amd64.deb'. Last year patch rebased on top of latest deb-pkg changes. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Dec 29, 2010
-
-
Theodore Ts'o authored
Create a linux-headers-$KVER.deb package which can be used to build external modules without having the source tree around. Signed-off-by:
"Theodore Ts'o" <tytso@mit.edu> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Dec 20, 2010
-
-
Asbjoern Sloth Toennesen authored
Usefull if building for sparc64 userland, because the sparc and sparc64 userlands use the same 64-bit kernel, making it impossible to always select the correct userland architecture for the resulting debian package. Might also be usefull, if you want a i386 userland with a amd64 kernel. Example usage: make KBUILD_DEBARCH=i386 deb-pkg LKML-reference: <alpine.DEB.2.02.1011051437500.13287@aurora.sdinet.de> Signed-off-by:
Asbjoern Sloth Toennesen <asbjorn@asbjorn.biz> Reviewed-by:
WANG Cong <xiyou.wangcong@gmail.com> Acked-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Nov 25, 2010
-
-
Asbjoern Sloth Toennesen authored
Instead of creating the debian package for the compiling userland, create it for a userland matching the kernel thats being compiled. This patch supports all Lenny release architectures, and Linux-based architecture candidates for Squeeze. If it can't find a proper Debian userspace it displays a warning, and fallback to let deb-gencontrol use the host's userspace arch. Eg. with this patch the following make command: make ARCH=i386 deb-pkg will output an i386 Debian package instead of an amd64 one, when run on an amd64 machine. Signed-off-by:
Asbjoern Sloth Toennesen <asbjorn@asbjorn.biz> Acked-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Nov 11, 2010
-
-
maximilian attems authored
umask 077 make deb-pkg <snipp ..> dpkg-deb: building package `linux-image-2.6.36+' in `../linux-image-2.6.36+_2.6.36+-4_amd64.deb'. dpkg-deb: control directory has bad permissions 700 (must be >=0755 and <=0775) make[1]: *** [deb-pkg] Error 2 Reported-by:
Bastian Blank <waldi@debian.org> Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Oct 13, 2010
-
-
Nishanth Aravamudan authored
Same fix as in 13797b77 is needed for the "new" line invoking _smp_mflags for modules_install. Without the fix, `make binrpm-pkg` fails with: + make '%{_smp_mflags}' KBUILD_SRC= modules_install make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. make[2]: *** No rule to make target `%{_smp_mflags}'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.8S9B9e (%install) Signed-off-by:
Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Sep 06, 2010
-
-
Guillem Jover authored
Avoid an error when doing cp over the image when it does not contain the full path to the file. Signed-off-by:
Guillem Jover <guillem@hadrons.org> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Jul 21, 2010
-
-
Michal Marek authored
make rpm was broken by commit 09155120: make clean set -e; cd ..; ln -sf /usr/src/iwlwifi-2.6 kernel-2.6.35rc4wl /bin/sh /usr/src/iwlwifi-2.6/scripts/setlocalversion --scm-only > /usr/src/iwlwifi-2.6/.scmversion cat: .scmversion: input file is output file make[1]: *** [rpm] Error 1 Reported-and-tested-by:
"Zheng, Jiajia" <jiajia.zheng@intel.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Jun 18, 2010
-
-
Michal Marek authored
Now that we run scripts/setlocalversion during every build, it makes sense to move all the localversion logic there. This cleans up the toplevel Makefile and also makes sure that the script is called only once in 'make prepare' (previously, it would be called every time due to a variable expansion in an ifneq statement). No user-visible change is intended, unless one runs the setlocalversion script directly. Reported-by:
Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: David Rientjes <rientjes@google.com> Cc: Greg Thelen <gthelen@google.com> Cc: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Jun 05, 2010
-
-
Arnaldo Carvalho de Melo authored
Useful for when people want to try some version of the perf tools and don't wants to download the kernel tarball. Here is a session using this new target: [root@emilia linux-2.6-tip]# make help | grep -i perf perf-tar-src-pkg - Build perf-2.6.35-rc1.tar source tarball perf-targz-src-pkg - Build perf-2.6.35-rc1.tar.gz source tarball perf-tarbz2-src-pkg - Build perf-2.6.35-rc1.tar.bz2 source tarball [root@emilia linux-2.6-tip]# make perf-tarbz2-src-pkg TAR [root@emilia linux-2.6-tip]# ls -la perf-2.6.35-rc1.tar.bz2 -rw-r--r-- 1 root root 295731 May 31 11:18 perf-2.6.35-rc1.tar.bz2 [root@emilia linux-2.6-tip]# tar xf perf-2.6.35-rc1.tar.bz2 [root@emilia linux-2.6-tip]# cd perf-2.6.35-rc1 [root@emilia perf-2.6.35-rc1]# ls arch HEAD include lib tools [root@emilia perf-2.6.35-rc1]# cd tools/perf [root@emilia perf]# make -j9 2>&1 | tail CC arch/x86/util/dwarf-regs.o CC util/probe-finder.o CC util/newt.o CC util/scripting-engines/trace-event-perl.o CC scripts/perl/Perf-Trace-Util/Context.o CC perf.o CC builtin-help.o AR libperf.a LINK perf rm .perf.dev.null [root@emilia perf]# ./perf record -a sleep 1 [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.262 MB perf.data (~11457 samples) ] [root@emilia perf]# ./perf report | head -12 # Events: 6K cycles # # Overhead Command Shared Object Symbol # ........ ............... .................. ...... # 4.73% perf [kernel.kallsyms] [k] format_decode 4.49% perf libc-2.12.so [.] _IO_file_underflow_internal 4.38% init [kernel.kallsyms] [k] mwait_idle 3.29% perf [kernel.kallsyms] [k] vsnprintf 2.38% init [kernel.kallsyms] [k] sched_clock_local 2.35% init [kernel.kallsyms] [k] apic_timer_interrupt 1.86% sirq-timer/5 [kernel.kallsyms] [k] find_busiest_group [root@emilia perf]# Acked-by:
Michal Marek <mmarek@suse.cz> Acked-by:
Sam Ravnborg <sam@ravnborg.org> Cc: David S. Miller <davem@davemloft.net> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Michal Marek <mmarek@suse.cz> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <20100528185357.GA28009@ghostprotocols.net> Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
-
- Jun 03, 2010
-
-
Rogério Brito authored
To follow the way that Official Debian kernel packages are made, put the generated packages in the right section, the kernel section. This also avoids polluting the admin section. Signed-off-by:
Rogério Brito <rbrito@ime.usp.br> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Rogério Brito authored
The packages generated by the builddeb script conform to the Debian Policy version 3.8.4. Make this explicit in the generated packages. Signed-off-by:
Rogério Brito <rbrito@ime.usp.br> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Rogério Brito authored
This helps when the user sees information of the packages on package managers like aptitude. Signed-off-by:
Rogério Brito <rbrito@ime.usp.br> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Mar 29, 2010
-
-
Gilles Espinasse authored
Signed-off-by:
Gilles Espinasse <g.esp@free.fr> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
-
- Mar 07, 2010
-
-
FEJES Jozsef authored
This patch creates the standard md5sums file for 'make deb-pkg' just like the dh_md5sums debhelper script. Signed-off-by:
Jozsef Fejes <fejes@joco.name> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Feb 02, 2010
-
-
John Saalwaechter authored
The mkspec script hardcodes "/var/tmp" into the generated rpm spec file's BuildRoot. The user, however, may have a custom setting for %_tmppath, which should be used in BuildRoot. This patch changes mkspec's BuildRoot output to appropriately use %_tmppath. Signed-off-by:
John Saalwaechter <saalwaechter@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Dec 12, 2009
-
-
Jonathan Nieder authored
Running "make deb-pkg" requires setting KBUILD_PKG_ROOTCMD or becoming root oneself or it errors out. Unless already running as root or KBUILD_PKG_ROOTCMD is already set, use fakeroot as a good default. With this patch applied, you can run "make oldconfig deb-pkg" as an ordinary user to build a binary package for an updated kernel tree and it should just work. fakeroot is too zealous by default in treating files as owned by root. Its wrapped stat() sets st_uid and st_gid to 0 for all files, which causes Git to go on a wild goose chase if CONFIG_LOCALVERSION_AUTO is set, checking if any file's content has changed along with its stat information. Avoid this by telling fakeroot to use the actual owner and group for preexisting files, by passing it the -u option. Signed-off-by:
Jonathan Nieder <jrnieder@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Jonathan Nieder authored
Let the deb-pkg target acquire (fake) root privileges before running commands that need them. Without such privileges, deb-pkg errors out because chown fails. The new KBUILD_PKG_ROOTCMD variable, if defined, is used as a command to run other commands with possibly fake elevated privileges. Since this is not needed for the tar-pkg and rpm-pkg targets, it is only used by deb-pkg. If it is not defined, the behavior is as before, and the user will have to rerun make as root. In other words, as a shortcut, instead of running 'make oldconfig && make && fakeroot -u make deb-pkg', one can use the single command 'make oldconfig deb-pkg KBUILD_PKG_ROOTCMD="fakeroot -u"'. Suggested-by:
Ryan Anderson <ryan@michonline.com> Signed-off-by:
Jonathan Nieder <jrnieder@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
Michal Marek authored
Use the --owner= and --group= options to make sure the entries in the built tar file are owned by root. Without this change, a careless sysadmin using the tar-pkg target can easily end up installing a kernel that is writable by the unprivileged user account used to build the kernel. Test that these options are understood before using them so that non-GNU versions of tar can still be used if the operator is appropriately cautious. Signed-off-by:
Jonathan Nieder <jrnieder@gmail.com> Signed-off-by:
Michal Marek <mmarek@suse.cz>
-
- Oct 11, 2009
-
-
Frans Pop authored
The binrpm-pkg target (binary RPM only) fails when called with KBUILD_OUTPUT set. This patch makes it work. For the rpm-pkg target (source + binary RPM), building with KBUILD_OUTPUT set is not possible and also not needed as the actual build is done in a temporary directory anyway, so check that KBUILD_OUTPUT is not set in that case to avoid later errors. Signed-off-by:
Frans Pop <elendil@planet.nl> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jul 17, 2009
-
-
maximilian attems authored
bash versus dash and posh disagree on expanding $@ within double quotes: export x="$@" see http://bugs.debian.org/381091 for details just use the arglist with $*. dpkg: error processing linux-image-2.6.31-rc1_2.6.31-rc1-18_i386.deb (--install): subprocess pre-installation script returned error exit status 2 export: 6: 2.6.31-rc1-18: bad variable name fixes http://bugzilla.kernel.org/show_bug.cgi?id=13567 seen on Ubuntu as there dash is the default sh, versus bash on Debian. Reported-by:
Pauli <suokkos@gmail.com> Cc: Frans Pop <elendil@planet.nl> Signed-off-by:
maximilian attems <max@stro.at> Acked-By:
Andres Salomon <dilinger@collabora.co.uk>
-
- Jun 26, 2009
-
-
maximilian attems authored
In the series for 2.6.31 it was noticed to ship the copyright, but the generated changelog got lost somehow. As bonus the generated linux-image deb packages are Lenny lintian clean. Cc: Frans Pop <elendil@planet.nl> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
- Jun 09, 2009
-
-
maximilian attems authored
Latest Debian policy is 3.8.1. Even if we are not yet compliant to it strive for the latest. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Frans Pop <elendil@planet.nl> Acked-by:
Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
maximilian attems authored
Section "base" has been removed, the base is defined by Priority field. For Squeeze the section should be "kernel", but as that's not yet supported for Sarge and Etch we stay with admin for now. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Frans Pop <elendil@planet.nl> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
maximilian attems authored
kernel-image naming has been dropped for the Lenny release and was only transitional for Etch. As it builds modules it provides linux-modules-$version. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Frans Pop <elendil@planet.nl> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
maximilian attems authored
The binary package that make deb-pkg creates is a linux-image. To be fixed may also be the addition of $DEB_ARCH. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Frans Pop <elendil@planet.nl> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Frans Pop authored
The Source: field is defined as the source package in the package archive from which a binary packages are built. As deb-pkg does not generate a source package, we should avoid to use any existing source packages here. Signed-off-by:
Frans Pop <elendil@planet.nl> Acked-by:
maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
maximilian attems authored
Try harder to find email and maintainer name. Debian's own devscripts all use DEBEMAIL or DEBFULLNAME prior to an eventual EMAIL or NAME environment variable. Match their logic. "Anonymous" sounds nicer then "Kernel Compiler" if no name is found. Signed-off-by:
maximilian attems <max@stro.at> Signed-off-by:
Frans Pop <elendil@planet.nl> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Frans Pop authored
On Thursday 23 April 2009, Frans Pop wrote: Add a basic debian/copyright to the binary packages. Based on an earlier patch from Maximilian Attems. Signed-off-by:
Frans Pop <elendil@planet.nl> Acked-by:
maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Frans Pop authored
Signed-off-by:
Frans Pop <elendil@planet.nl> Acked-by:
maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-
Frans Pop authored
Hook scripts in the default directory /etc/kernel are also executed by official Debian kernel packages as well as kernel packages created using make-kpkg. Allow to specify an alternative hook scripts directory by exporting the environment variable KDEB_HOOKDIR. Signed-off-by:
Frans Pop <elendil@planet.nl> Acked-by:
maximilian attems <max@stro.at> Cc: Andres Salomon <dilinger@debian.org> Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
-