- 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 2 次提交
-
-
由 Michal Marek 提交于
Commit 7e1c0477 (kbuild: Use relative path for $(objtree)) assumes that the build process does not change its working directory. make tar-pkg was a couterexample, fix this by changing directory only for the tar command and not for the whole script, which at one point references the now relative $(objtree). Reported-and-tested-by: N"J. Bruce Fields" <bfields@fieldses.org> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 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 2 次提交
-
-
由 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>
-
由 Masahiro Yamada 提交于
Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
-
- 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>
-
- 07 11月, 2013 1 次提交
-
-
由 David Ahern 提交于
When building perf out of tree: $ make perf-tar-src-pkg $ tar -xf perf-<ver>.tar -C /tmp $ cd /tmp/perf<ver> $ make -C tools/perf you get this warning message: make[1]: *** No rule to make target `kernelversion'. Stop. Fix it by saving the perf version in the tar file and using that for the out of tree builds. v2: removed short form request and fixed up version string from usual output. Signed-off-by: NDavid Ahern <dsahern@gmail.com> Suggested-by: NIngo Molnar <mingo@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1383753335-25782-1-git-send-email-dsahern@gmail.comSigned-off-by: NArnaldo Carvalho de Melo <acme@redhat.com>
-
- 26 8月, 2013 1 次提交
-
-
由 Stuart Longland 提交于
A lot of 64-bit systems supported by Linux/MIPS have boot firmware or bootloaders that only understand 32-bit ELF files, and as such, the vmlinux.32 target exists to support these systems. Therefore, it'd be nice if the tar-pkg target recognised this, and included the right version when packaging up a binary of the kernel. This updates buildtar to support MIPS targets. MIPS may use 'vmlinux' or 'vmlinux.32' depending on the target system. This uses 'vmlinux.32' in preference to 'vmlinux' where present (although I should check which is newer), including either file as /boot/vmlinux-${version}. Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1673/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
-
- 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>
-
- 23 7月, 2013 3 次提交
-
-
由 Mike Marciniszyn 提交于
Change the spec file to generate a kernel-devel module allowing for compilation of external kernel modules. This patch requires a new minimum RPM level of 4.0.3. Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Mike Marciniszyn 提交于
Prior to this patch, firmware files were being installed in /lib/firmware with a potential conflict with already installed kernels. firmware files are now installed in /lib/firmware/<release> and packaged with the rest of the modules. Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Mike Marciniszyn 提交于
/sbin/installkernel is used to insure grub hooks are inserted and the initramfs is created on the target system. The invokation installkernel will work with any kernel as long as: - /sbin/installkernel exists - the kernel and sysem map files are readable Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 24 6月, 2013 1 次提交
-
-
由 Mike Marciniszyn 提交于
The following issue can be reproduced with Linus' tree on an x86_64 server. >+ cp /home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2.x86_64/boot/vmlinuz-3.9.2 >cp: missing destination file operand after >/home/user/rpmbuild-test/BUILDROOT/kernel-3.9.2-1.x86_64/boot/vmlinuz-3.9.2' >Try `cp --help' for more information. >error: Bad exit status from /var/tmp/rpm-tmp.R4o0iI (%install) Here are the commands to reproduce: make defconfig make rpm-pkg Use the resulting src rpm to build as follows: mkdir ~/rpmbuild-test cd ~/rpmbuild-test rpmbuild --rebuild --define "_topdir `pwd`" -vv ~/rpmbuild/SRPMS/kernel-3.10.0_rc1+-1.src.rpm The issue is because the %install script uses $KBUILD_IMAGE and it hasn't been set since it is only available in the kbuild system and not in the %install script. This patch adds a Makefile target to emit the image_name that can be used and modifies the mkspec to use the dynamic name in %install. Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 16 5月, 2013 1 次提交
-
-
由 Luiz Capitulino 提交于
Commit 65013203 dropped the rpm spec as a prerequisite for the binrpm-pkg target but forgot to update $< usage, which causes the rule to break. This commit fixes that by replacing $< with the spec name. Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 18 4月, 2013 4 次提交
-
-
由 Michal Marek 提交于
Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Michal Marek 提交于
The *pkg targets are always run, so it makes no sense to cache the generated specfile. This also fixes build errors when the specfile becomes out of date, without the Makefile noticing it: $ make rpm works $ echo yadadada >localversion-test $ make rpm fails, because kernel.spec assumes the old kernel release string Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Michal Marek 提交于
Now that we only package explicitly listed files to the tarball, there is no need to abuse the parent directory. Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Michal Marek 提交于
The source tree can contain lots of uninteresting data like tag or cscope files, packaging which slows down make rpm needlessly. It can also break the build, if the tree contains an unrelated file named *.spec. The downside of this change is that new subdirectories have to be added to the KBUILD_ALLDIRS variable in the top-level Makefile. The upside is that the behavior is more predictable. Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 08 4月, 2013 2 次提交
-
-
由 Borislav Petkov 提交于
When dealing with multiple sub-arches (like 32- and 64-bit on x86, for example) generating a bunch of kernel tar archives with the same name but for different sub-arches could get confusing and error-prone. Also, the build process could overwrite otherwise unrelated builds and you probably don't want that. So, add the architecture to the archive name for more clarity and less shoot-yourself-in-the-foot practices. Signed-off-by: NBorislav Petkov <bp@suse.de> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Bin Wang 提交于
KBUILD_OUTPUT is always empty here, so it is useless to test it. But while use O=.., objtree and srctree will be different. I compare them instead. Signed-off-by: NBin Wang <wbin00@gmail.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 22 2月, 2013 1 次提交
-
-
由 David R. Bild 提交于
'make rpm-pkg' and 'make binrpm-pkg' fail when the kernel source is read-only. Specifically, when the RPM spec generated by scripts/package/mkspec is run, KBUILD_SRC happens to be set to the source location and thus the invocation of 'make headers_install' fails when an internal call to 'filechk' tries to write a file into the source tree. The fix is to clear KBUILD_SRC for the 'make headers_install' invocation in the spec file, as is already done for the 'make modules_install' invocation. Signed-off-by: NDavid R. Bild <drbild@umich.edu> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
- 27 9月, 2012 2 次提交
-
-
由 Andi Kleen 提交于
For large kernel configurations (like a distribution kernel) targz-pkg takes a quite long time to just do the compression. I clocked it at 15+mins for a SUSE kernel like config on a fast system. And tarxz and bzip2 are even slower. The main reason is that the script that is doing the taring sets the highest compression level (-9). When I change it to just use the defaults the gzip time for the same kernel goes down to ~3 mins. I haven't tested xz and bzip, but I expect those to be much faster too. I'm not willing to wait that long for a small compression gain. So just change the script to use the defaults. Signed-off-by: NAndi Kleen <ak@linux.intel.com> Reviewed-by: NFengguang Wu <fengguang.wu@intel.com> Signed-off-by: NMichal Marek <mmarek@suse.cz>
-
由 Michal Marek 提交于
There were reports of users destroying their Fedora installs by a kernel tarball that replaces the /lib -> /usr/lib symlink. Let's remove the toplevel directories from the tarball to prevent this from happening. Reported-by: NAndi Kleen <andi@firstfloor.org> Suggested-by: NBen Hutchings <ben@decadent.org.uk> Cc: <stable@kernel.org> 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>
-
- 30 10月, 2011 1 次提交
-
-
由 Paul Menzel 提交于
Signed-off-by: NPaul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-