- 07 1月, 2015 1 次提交
-
-
由 Sedat Dilek 提交于
lsb_release command is a good choice to determine the distribution name for the changelog file in the generated Debian packages [1]. Its installation is no precondition. In Debian it is still not essential or build-essential. Ben gave some helpful informations and detailed explanations in [2]. There he also suggested to have an option to explicitly set the distribution name (see $KDEB_CHANGELOG_DIST variable). Embedded the improvement as suggested by Thorsten (see [3]): "This is suboptimal: if KDEB_CHANGELOG_DIST is defined, lsb_release is not necessary. The following snippet also omits using its output if it fails but still produces any:" Dealing with this issue I learned about "The Colon in the Shell." and possible pitfalls in this area (see [4,5]). Furthermore, refreshed my knowledge about redirecting outputs with the echo command (see [5]). Special thanks to Thorsten, I enjoyed the IRC session with you. Cooked together the snippets of Ben and Thorsten (see [2,3]). Tested against Linux v3.19-rc2. Thanks goes to Alexander, Ben, maximilian and Thorsten for the very vital help. [1] https://lkml.org/lkml/2012/4/23/516 [2] http://marc.info/?l=linux-kbuild&m=142022188322321&w=2 [3] http://marc.info/?l=linux-kbuild&m=142023476825460&w=2 [4] http://blog.brlink.eu/index.html#i70 [5] https://www.mirbsd.org/permalinks/wlog-10_e20141209-tg.htm [6] http://stackoverflow.com/questions/23489934/echo-2-some-text-what-does-it-mean-in-shell-scripting CC: Alexander Wirt <formorer@debian.org> Suggested-by: NBen Hutchings <ben@decadent.org.uk> Suggested-by: NThorsten Glaser <tg@mirbsd.org> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Acked-by: Nmaximilian attems <max@stro.at> [ dileks: Reviewed his suggested diff in RFC v4 ] Reviewed-by: NThorsten Glaser <tg@debian.org> Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 03 1月, 2015 1 次提交
-
-
由 Sedat Dilek 提交于
Happy new 2015! I have combined two patches which I had already sent to linux-kbuild ML. Today, I prefer "builddeb" as a label for such patches. [1] http://marc.info/?l=linux-kbuild&m=133521955904706 [2] http://marc.info/?l=linux-kbuild&m=133521955004705 CC: Ben Hutchings <ben@decadent.org.uk> CC: maximilian attems <max@stro.at> Signed-off-by: NSedat Dilek <sedat.dilek@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 07 10月, 2014 1 次提交
-
-
由 Asbjoern Sloth Toennesen 提交于
The -isp option has been deprecated, after it became the default behaviour back in 2006. Since dpkg 1.17.11, dpkg-gencontrol emits a warning on -isp usage. References: https://bugs.debian.org/215233Signed-off-by: NAsbjoern Sloth Toennesen <asbjorn@asbjorn.biz> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 12 9月, 2014 1 次提交
-
-
由 Michael Neuling 提交于
The Debian powerpc little endian architecture is called ppc64el. This is the default architecture used by Ubuntu for powerpc. The below checks the kernel config to see if we are compiling little endian and sets the Debian arch appropriately. Signed-off-by: NMichael Neuling <mikey@neuling.org> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 26 8月, 2014 1 次提交
-
-
由 Michal Marek 提交于
Since the conversion of objtree to use relative pathnames (commit 7e1c0477, "kbuild: Use relative path for $(objtree)"), the debug info files have been ending up in /debian/dbgtmp/ in the regular linux-image package instead of the debug files package. Fix up the paths so that the debug files end up in the -dbg package. This is based on a similar patch by Darrick. Reported-and-tested-by: N"Darrick J. Wong" <darrick.wong@oracle.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 20 8月, 2014 1 次提交
-
-
由 Michal Marek 提交于
The Makefiles call the respective interpreter explicitly, but this makes it easier to use the scripts manually. Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 19 6月, 2014 1 次提交
-
-
由 Fathi Boudra 提交于
The kernel headers package (linux-headers) doesn't include several header files required to build out-of-tree modules. It makes the package unusable on e.g. ARM architecture: /usr/src/linux-headers-3.14.0/arch/arm/include/asm/memory.h:24:25: fatal error: mach/memory.h: No such file or directory #include <mach/memory.h> ^ compilation terminated. Signed-off-by: NFathi Boudra <fathi.boudra@linaro.org> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 18 6月, 2014 1 次提交
-
-
由 Michal Marek 提交于
When $srctree or $objtree are relative paths, we cannot change directory and refer to them in the same subshell. Do the redirection outside of the subshell to fix this. Reported-and-tested-by: NIlya Dryomov <idryomov@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 10 6月, 2014 1 次提交
-
-
由 Ben Hutchings 提交于
The Debian s390x architecture has 64-bit userland whereas s390 has 32-bit userland. A 64-bit kernel can be used with either. Now that Debian supports multiarch and officially supports s390x, it makes more sense to assign a 64-bit kernel package to s390x. Reported-by: NStephen Powell <zlinuxman@wowway.com> References: https://bugs.debian.org/750925Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 30 4月, 2014 1 次提交
-
-
由 Masahiro Yamada 提交于
Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 24 4月, 2014 2 次提交
-
-
由 Fathi Boudra 提交于
Signed-off-by: NFathi Boudra <fathi.boudra@linaro.org> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Fathi Boudra 提交于
In cross-build environment, we expect to use the cross-compiler objcopy instead of the host objcopy. It fixes following build failures: objcopy --only-keep-debug lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko /srv/build/linux/debian/dbgtmp/usr/lib/debug/lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko objcopy: Unable to recognise the format of the input file `lib/modules/3.14/kernel/net/ipv6/xfrm6_mode_tunnel.ko' Signed-off-by: NFathi Boudra <fathi.boudra@linaro.org> Cc: stable <stable@vger.kernel.org> # 3.12+ Fixes: 810e8437 ('deb-pkg: split debug symbols in their own package') Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 04 1月, 2014 2 次提交
-
-
由 Ben Hutchings 提交于
These commands will mysteriously fail: $ make ARCH=arm versatile_defconfig [...] $ make ARCH=arm deb-pkg [...] make[1]: *** [deb-pkg] Error 1 make: *** [deb-pkg] Error 2 The Debian architecture selection for these kernel architectures does 'grep FOO=y $KCONFIG_CONFIG && echo bar', and after 'set -e' this aborts the script if grep does not find the given config symbol. Fixes: 10f26fa6 ('build, deb-pkg: select userland architecture based on UTS_MACHINE') Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Ben Hutchings 提交于
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: cd8d60a2 ('kbuild: create linux-headers package in deb-pkg') Reported-and-tested-by: N"Niew, Sh." <shniew@gmail.com> Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 18 11月, 2013 1 次提交
-
-
由 Ben Hutchings 提交于
The kernel postinst hook for initramfs-tools will build an initramfs on installation unless $INITRD is set to 'No'. make-kpkg generates a postinst script that sets this variable appropriately, but we don't. Set it based on CONFIG_BLK_DEV_INITRD. This should also work with dracut when <http://bugs.debian.org/729622> is fixed. Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 16 8月, 2013 1 次提交
-
-
由 Heinrich Schuchardt 提交于
scripts/package/builddeb is used to create Debian packages. Currently the firmware package always gets the same version number irrespective of the Kernel version. The paths inside the firmware package depend on the Kernel version. With the patch supplied the Kernel version becomes part of the Debian firmware package number. Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de> Cc: Ben Hutchings <ben@decadent.org.uk> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 24 7月, 2013 4 次提交
-
-
由 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: NAnisse Astier <anisse@astier.eu> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Anisse Astier 提交于
Signed-off-by: NAnisse Astier <anisse@astier.eu> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 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: NAnisse Astier <anisse@astier.eu> Cc: Ben Hutchings <ben@decadent.org.uk> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Anisse Astier 提交于
Signed-off-by: NAnisse Astier <anisse@astier.eu> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 28 6月, 2012 2 次提交
-
-
由 maximilian attems 提交于
I discovered that make deb-pkg does not add Makefile_32.cpu from arch/x86 directory when doing i386 kernel build and package build. Fix it by greedily adding all Makefiles. Reported-by: NWitold Baryluk <baryluk@smp.if.uj.edu.pl> Signed-off-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 maximilian attems 提交于
That way they don't file conflict with official firmware package: trying to overwrite '/lib/firmware/qlogic/1040.bin', which is also in package firmware-qlogic 0.35 .. Reported-by: NMichael Prokop <mika@debian.org> Signed-off-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 27 5月, 2012 1 次提交
-
-
由 Lekensteyn 提交于
After 303395ac, some headers are autogenerated. Include these autogenerated headers (mainly unistd_32_ia32.h) in out-of-tree builds to allow DKMS modules to be built succesfully. Signed-off-by: NPeter Lekensteyn <lekensteyn@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 25 2月, 2012 3 次提交
-
-
由 Joerg Roedel 提交于
The out-of-tree build is broken in 'make deb-pkg'. The header checks and the header install works on the source and not on the object tree. While fixing this also replace the direct 'make' invocations with the $MAKE variable to be consistent within the script. Cc: maximilian attems <max@stro.at> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: debian-kernel@lists.debian.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Joerg Roedel 提交于
For user-mode Linux the other packages are not required. So only build the package with the linux-image in it. Cc: maximilian attems <max@stro.at> Cc: debian-kernel@lists.debian.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com> Tested-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Joerg Roedel 提交于
The Link to the kernel header files in the debian packages point to the original build directory. This is a bad choice if the packages were installed on a different machine. Fix this in by manually re-creating the link in the builddeb script. Cc: maximilian attems <max@stro.at> Cc: debian-kernel@lists.debian.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: NJoerg Roedel <joerg.roedel@amd.com> Reviewed-by: NBen Hutchings <ben@decadent.org.uk> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 19 2月, 2012 1 次提交
-
-
由 Ben Hutchings 提交于
The current use of /tmp for file lists is insecure. Put them under $objtree/debian instead. Signed-off-by: NBen Hutchings <ben@decadent.org.uk> Cc: stable@vger.kernel.org # 2.6.39+ Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 04 2月, 2011 1 次提交
-
-
由 Nicolas de Pesloüan 提交于
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: NNicolas de Pesloüan <nicolas.2p.debian@free.fr> Tested-by: NNikolai Kondrashov <spbnick@gmail.com> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 15 1月, 2011 1 次提交
-
-
由 maximilian attems 提交于
Fix x86 centric path to allow building kernel-header packages for other architecture. Signed-off-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 08 1月, 2011 1 次提交
-
-
由 maximilian attems 提交于
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: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 07 1月, 2011 1 次提交
-
-
由 maximilian attems 提交于
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: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 29 12月, 2010 1 次提交
-
-
由 Theodore Ts'o 提交于
Create a linux-headers-$KVER.deb package which can be used to build external modules without having the source tree around. Signed-off-by: N"Theodore Ts'o" <tytso@mit.edu> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 20 12月, 2010 1 次提交
-
-
由 Asbjoern Sloth Toennesen 提交于
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: NAsbjoern Sloth Toennesen <asbjorn@asbjorn.biz> Reviewed-by: NWANG Cong <xiyou.wangcong@gmail.com> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 25 11月, 2010 1 次提交
-
-
由 Asbjoern Sloth Toennesen 提交于
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: NAsbjoern Sloth Toennesen <asbjorn@asbjorn.biz> Acked-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 11 11月, 2010 1 次提交
-
-
由 maximilian attems 提交于
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: NBastian Blank <waldi@debian.org> Signed-off-by: Nmaximilian attems <max@stro.at> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 06 9月, 2010 1 次提交
-
-
由 Guillem Jover 提交于
Avoid an error when doing cp over the image when it does not contain the full path to the file. Signed-off-by: NGuillem Jover <guillem@hadrons.org> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 03 6月, 2010 3 次提交
-
-
由 Rogério Brito 提交于
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: NRogério Brito <rbrito@ime.usp.br> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Rogério Brito 提交于
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: NRogério Brito <rbrito@ime.usp.br> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Rogério Brito 提交于
This helps when the user sees information of the packages on package managers like aptitude. Signed-off-by: NRogério Brito <rbrito@ime.usp.br> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 07 3月, 2010 1 次提交
-
-
由 FEJES Jozsef 提交于
This patch creates the standard md5sums file for 'make deb-pkg' just like the dh_md5sums debhelper script. Signed-off-by: NJozsef Fejes <fejes@joco.name> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-